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

Description Usage Arguments Value

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

1
.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/diffexpR documentation built on Oct. 26, 2021, 5:08 p.m.