.wassPermProcedure {waddR} | R Documentation |
Permutation procedure that calculates the squared 2-Wasserstein distances for random shuffles of two input samples representing two conditions A and B, respectively (i.e. the elements of the pooled sample vector are randomly assigned to either condition A or condition B, where the sample sizes are as in the original samples).
.wassPermProcedure(x, y, permnum)
x |
sample (vector) representing the distribution of condition A |
y |
sample (vector) representing the distribution of condition B |
permnum |
number of permutations to be performed |
Vector with squared 2-Wasserstein distances computed for random shuffles of the two input samples