-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add docs for Methods and Solve methods #21
Conversation
This reverts commit b4dfe9b.
Thanks! For the doc style, please follow Games.jl rather than QuantEcon.jl (refer in particular to QuantEcon/GameTheory.jl#25). |
I got it. Later on, I'm going to change doc style based on |
I rewrite docs for |
@tokupooh Thanks!
|
@oyamad Sure. I'll fix them. By the way, do we need same documents for different methods ? In this pull request, I add explanation for each methods, but Julia does not provide it for all methods. Should I follow their doc style? |
Yes, please provide a docstring to each method. (We can elaborate later if necessary.) |
I fix my docs for In addition, explanation is consitent internally. |
This reverts commit 0d9333f.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Just a few more comments.
src/cdp.jl
Outdated
Implement the Bellman equation collocation method as described in Mirand and | ||
Fackler (2002), Chapter 9. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not remove this blank line here and above.
src/cdp.jl
Outdated
for k in N:-1:1]... | ||
) * cdp.discount * w | ||
A[i, :] -= ckron([vec(evalbase(cdp.interp.basis.params[k], s_next[k])) | ||
for k in N:-1:1]...) * cdp.discount * w |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will you revert this change back to the original?
src/cdp.jl
Outdated
- `res::CDPSolveResult`: Object that contains result of dynamic programming | ||
- `s_init::Real`: initial value of state variable | ||
- `ts_length::Integer`: Length of simulation | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this docstring.
src/cdp.jl
Outdated
- `res::CDPSolveResult`: Object that contains result of dynamic programming | ||
- `s_init::Real`: initial value of state variable | ||
- `ts_length::Integer`: Length of simulation | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this docstring.
src/cdp.jl
Outdated
simulate(res::CDPSolveResult, s_init::Vector, ts_length::Integer) = | ||
simulate(Random.GLOBAL_RNG, res, s_init, ts_length) | ||
simulate(Random.GLOBAL_RNG, res, s_init, ts_length) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not remove the indentation.
Thanks for comments. I correct them. |
This pull request adds some documents for Methods and Solve methods in
cdp.jl
.Later I will add docs for Types, contructors and Simulate methods.
Document style is based on
QuantEcon.jl
.