Learn R Programming

nullabor (version 0.3.12)

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)

Value

distance between X and PX

Arguments

X

a data.frame where the first column is only used

PX

another data.frame where the first column is only used

Examples

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

Run the code above in your browser using DataLab