edistance.details: To show the Euclidean distance formula.

Description Usage Arguments Details Value Author(s) Examples

View source: R/euclideanDistance.details.R

Description

To show the Euclidean distance formula and to calculate the Euclidean distance of two clusters.

Usage

1

Arguments

x

is a numeric vectoror a matrix. It represents the values of a cluster.

y

is a numeric vectoror a matrix. It represents the values of a cluster.

Details

This function is part of the hierarchical clusterization method. The function calculates the Euclidean distance value from x and y.

Value

Euclidean distance value and formula.

Author(s)

Roberto Alcántara roberto.alcantara@edu.uah.es

Juan José Cuadrado jjcg@uah.es

Universidad de Alcalá de Henares

Examples

1
2
3
4
5
6
7
8
9
x <- c(1,2)
y <- c(1,3)

cluster1 <- matrix(x,ncol=2)
cluster2 <- matrix(y,ncol=2)

edistance(x,y)

edistance(cluster1,cluster2)

LearnClust documentation built on Nov. 30, 2020, 1:09 a.m.