-
Notifications
You must be signed in to change notification settings - Fork 19
Add getparameters
and setparameters!!
#86
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
Changes from 15 commits
e2bdfb7
7fa8de0
0a4fd17
28bdf91
86a7826
e19cea7
d86499f
bce436d
21f4d56
de0e5b2
23b9119
b9f476c
f7b6096
4ca57b0
abebd59
d1d4642
c6c9554
d9f8585
600d36c
1bfbef1
d9480d1
3f861bf
ddb588c
d6ab10a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,34 @@ The `MCMCSerial` algorithm allows users to sample serially, with no thread or pr | |
""" | ||
struct MCMCSerial <: AbstractMCMCEnsemble end | ||
|
||
""" | ||
updatestate!!(state, transition_prev[, state_prev]) | ||
|
||
Return new instance of `state` using information from `transition_prev` and, optionally, `state_prev`. | ||
|
||
Defaults to `setvalues!!(state, values(transition_prev))`. | ||
""" | ||
updatestate!!(state, transition_prev, state_prev) = updatestate!!(state, transition_prev) | ||
updatestate!!(state, transition) = setvalues!!(state, Base.values(transition)) | ||
|
||
""" | ||
setvalues!!(state, values) | ||
|
||
Update the values of the `state` with `values` and return it. | ||
|
||
If `state` can be updated in-place, it is expected that this function returns `state` with updated | ||
values. Otherwise a new `state` object with the new `values` is returned. | ||
""" | ||
function setvalues!! end | ||
|
||
@doc """ | ||
values(transition) | ||
|
||
Return values in `transition`. | ||
""" | ||
Base.values | ||
|
||
|
||
|
||
torfjelde marked this conversation as resolved.
Show resolved
Hide resolved
|
||
include("samplingstats.jl") | ||
include("logging.jl") | ||
include("interface.jl") | ||
|
Uh oh!
There was an error while loading. Please reload this page.