Learn R Programming

LearnClust (version 1.1)

maxDistance.details: Maximal distance

Description

To explain how to get the matrix maximal value.

Usage

maxDistance.details(matrix)

Arguments

matrix

is a numeric matrix. It could be a numeric vector.

Value

Numeric value. Max value from a matrix. Explanation.

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.

Examples

Run this code
# NOT RUN {
matrixExample <- matrix(c(1:10), nrow=2)

maxDistance.details(1:10)

maxDistance.details(matrixExample)

# }

Run the code above in your browser using DataLab