# resample

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

Resample

• w: Log weights.

Return: a pair the vectors, the first is the vector of ancestor indices, the second the vector of offspring counts.