The first four moments is calculated for data X and data PX. An euclidean distance is calculated between these moments for X and PX.

uni_dist(X, PX)

Arguments

X

a data.frame where the first column is only used

PX

another data.frame where the first column is only used

Value

distance between X and PX

Examples

if(require('moments')){uni_dist(rnorm(100), rpois(100, 2))}
#> Loading required package: moments
#> [1] 2.140755