mdistance.details {LearnClust} | R Documentation |
To explain how to calculate the Manhattan distance.
Description
To explain how to calculate the Manhattan distance of two clusters.
Usage
mdistance.details(x, y)
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
Manhattan distance value from x
and y
.
Value
Manhattan 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
x <- c(1,2)
y <- c(1,3)
cluster1 <- matrix(x,ncol=2)
cluster2 <- matrix(y,ncol=2)
mdistance(x,y)
mdistance(cluster1,cluster2)
[Package LearnClust version 1.1 Index]