maxDistance {LearnClust} | R Documentation |
Maximal distance
Description
Get the matrix maximal value.
Usage
maxDistance(matrix)
Arguments
matrix |
is a numeric matrix. It could be a numeric vector. |
Details
This function is part of the hierarchical clusterization method. The function uses the numeric
vector or matrix matrix
given and return the maximal value.
The function avoids distances equal 0, and initialize maximal value with an auxiliar function initMax
,
which gets the first matrix element with a valid distance.
Value
numeric value. Max value from a matrix
Author(s)
Roberto Alcántara roberto.alcantara@edu.uah.es
Juan José Cuadrado jjcg@uah.es
Universidad de Alcalá de Henares
Examples
matrixExample <- matrix(c(1:10), nrow=2)
maxDistance(1:10)
maxDistance(matrixExample)
[Package LearnClust version 1.1 Index]