This function performs coupled resampling based on transport The parameters are given as a list with keys * epsilon, which determines the approximation in the solution of the transport problem * and desired_alpha, which determines implicitly the number of iterations performed by the iterative algorithm.
1 2 | CR_transport(xparticles1, xparticles2, normweights1, normweights2,
parameters = list(epsilon = 0.1, desired_alpha = 0.9))
|
Two vectors of ancestors, column-binded in a matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.