View source: R/util_resampling.R
Runs an SSP resampling algorithm, taking a vector of normalized weights (length N) and a vector of uniform variables (length N) and returning a vector of ancestors (length N)
1 | ssp_resampling_n(normalized_weights, u_vector)
|
A vector of ancestors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.