conditional_resample_multinomial

function conditional_resample_multinomial(w:Real[_], b:Integer) -> (Integer[_], Integer)

Conditional resample with multinomial resampling.

  • w: Log-weight vector.
  • b: Index of the conditioned particle.

Returns: a tuple giving the ancestor vector and new index of the conditioned particle.