Euclidean {CPC}R Documentation

Euclidean Distance from Dimension Means

Description

Calculates two-dimensional Euclidean distance between all points and dimension means.

Usage

Euclidean(data)

Arguments

data

an n x 2 matrix or data frame.

Value

Returns a numeric vector of length 1.

Examples

data <- matrix(c(rnorm(50, 0, 1), rnorm(50, 5, 1)), ncol = 2, byrow = TRUE)

Euclidean(data)


[Package CPC version 2.6.0 Index]