powered by
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)
distance between X and PX
a data.frame where the first column is only used
another data.frame where the first column is only used
if(require('moments')){uni_dist(rnorm(100), rpois(100, 2))}
Run the code above in your browser using DataLab