Struct emcee::Step
[−]
[src]
pub struct Step<'a> { pub pos: Cow<'a, [Guess]>, pub lnprob: Cow<'a, [f64]>, pub iteration: usize, }
Struct representing the current iteration evaluation
This struct is used with sample
, which supplies a callback to
each loop step. An instance of this struct is passed to the callback.
Technical note: the pos
and lnprob
slices are implemented as Cow
wrapped objects, as during iteration, their contents are references (as the
values are stored with a longer lived lifetime in the sampler method),
whereas the function must return owned values.
Fields
pos: Cow<'a, [Guess]>
The current list of parameters, one for each walker
lnprob: Cow<'a, [f64]>
The log posterior probabilities of the values contained in pos
, one for each walker
iteration: usize
The current iteration number