.wassPermProcedure {waddR}R Documentation

.wassPermProcedure

Description

Permutation Procedure that calculates the squared 2-Wasserstein distance for random shuffles of two input distributions and returns them as a vector.

Usage

.wassPermProcedure(x, y, permnum)

Arguments

x

numeric vector representing distribution A

y

numeric vector representing distribution B

permnum

integer interpreted as the number of permutations to be performed

Value

vector with squared 2-Wasserstein distances computed on random shuffles of the two input vectors


[Package waddR version 1.2.0 Index]