ancestors

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

Sample an ancestry vector for a vector of log-weights.