pub fn systematic_resample(
particles: &[f64],
weights: &[f64],
n_out: usize,
rng: &mut Lcg,
) -> Vec<f64>Expand description
Systematic resampling for particle filters.
Given particles and their (unnormalized) weights, draw n_out particles
with replacement proportional to weights.