Skip to content

Commit 0a4fd17

Browse files
committed
renamed state_from_transition to updatestate!!
1 parent 7fa8de0 commit 0a4fd17

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/AbstractMCMC.jl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,14 @@ The `MCMCSerial` algorithm allows users to sample serially, with no thread or pr
8080
struct MCMCSerial <: AbstractMCMCEnsemble end
8181

8282
"""
83-
state_from_transiton(state, transition_prev[, state_prev])
83+
updatestate!!(state, transition_prev[, state_prev])
8484
8585
Return new instance of `state` using information from `transition_prev` and, optionally, `state_prev`.
8686
8787
Defaults to `setparameters!!(state, parameters(transition_prev))`.
8888
"""
89-
function state_from_transition(state, transition_prev, state_prev)
90-
return state_from_transition(state, transition_prev)
91-
end
92-
93-
function state_from_transition(state, transition)
94-
return setparameters!!(state, parameters(transition))
95-
end
89+
updatestate!!(state, transition_prev, state_prev) = updatestate!!(state, transition_prev)
90+
updatestate!!(state, transition) = setparameters!!(state, parameters(transition))
9691

9792
"""
9893
setparameters!!(state, parameters)

0 commit comments

Comments
 (0)