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/diffexpR documentation built on June 5, 2023, 10:18 p.m.