Learn R Programming

ecp (version 1.5.3)

getBetween: GET BETWEEN DISTANCE

Description

Returns the energy distance between two sets of numerical data.

Usage

getBetween(alpha_, X_, Y_)

Arguments

alpha_
A weighting parameter used for calculating the energy distance. This value should be in (0,2].
X_
A n by d matrix of the n d-dimensional observations.
Y_
A m by d matrix of the m d-dimensional observations.

Value

  • The returned value is a real number indicating the energy distance between the two data sets.

Details

The matricies X_ and Y_ do not need to have the same number of rows, but they do require the same number of columns.

References

James NA, Matteson DS (2013). A Nonparametric Approach for Multiple Change Point Analysis of Multivariate Data.

James NA, Matteson DS (2013). ecp: An R Package for Nonparametric Multiple Change Point Analysis of Multivariate Data.

Rizzo ML, Szekely GL (2005). Hierarchical clustering via joint between-within distances: Extending ward's minimum variance method. Journal of Classification. pp. 151 - 183.

Rizzo ML, Szekely GL (2010). Disco analysis: A nonparametric extension of analysis of variance. The Annals of Applied Statistics. pp. 1034 - 1055.

See Also

e.agglo e.divisive

Examples

Run this code
set.seed(100)
X = matrix(rnorm(100),ncol=2)
Y = matrix(rnorm(126,1),ncol=2)
alpha = 1
between.distance = getBetween(alpha,X,Y)

Run the code above in your browser using DataLab