sample

Function sample 

Source
pub fn sample<MD, MV, W, R, S, E>(
    model: &MD,
    move_: &MV,
    walkers: W,
    schedule: S,
    execution: E,
) -> (Vec<MD::Params>, usize)
where MD: Model, MV: Move<MD::Params> + Send + Sync, W: Iterator<Item = (MD::Params, R)>, R: Rng + Send + Sync, S: Schedule<MD::Params>, E: Execution,
Expand description

Runs the sampler on the given model using the chosen move, schedule and execution strategy

A reasonable default for the move is Stretch.

A reasonable default for the schedule is MinChainLen.

A reasonable default for the execution is Serial.

The walkers iterator is used to initialise the ensemble of walkers by defining their initial parameter values and providing appropriately seeded PRNG instances.

The number of walkers must be non-zero, even and at least twice the number of parameters.

A vector of samples and the number of accepted moves are returned.