dot-wassPermProcedure: Permutation procedure that calculates the squared...

.wassPermProcedureR Documentation

Permutation procedure that calculates the squared 2-Wasserstein distances for random shuffles of two input samples representing two conditions

Description

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).

Usage

.wassPermProcedure(x, y, permnum)

Arguments

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

Value

Vector with squared 2-Wasserstein distances computed for random shuffles of the two input samples


goncalves-lab/waddR documentation built on June 29, 2023, 12:18 a.m.