multinomial_resample

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

Sample an ancestry vector for a log-weight vector using multinomial resampling.