Skip to main content

particle_weights

Function particle_weights 

Source
pub fn particle_weights(
    trace: &Trace,
    num_objectives: usize,
) -> Option<Vec<f64>>
Expand description

Read a particle’s weight vector back off its trace (the stick-breaking sites), i.e. where on the front the particle lives. Returns None when the sites are absent (e.g. a prior-only trace).