nullabor (version 0.3.1)

uni_dist: Distance for univariate data

Description

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

Usage

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

Run this code
# NOT RUN {
if(require('moments')){uni_dist(rnorm(100), rpois(100, 2))}
# }

Run the code above in your browser using DataLab