Learn R Programming

LearnClust (version 1.1)

minDistance.details: Minimal distance

Description

To explain how to get the matrix minimal value.

Usage

minDistance.details(matrix)

Arguments

matrix

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

Value

Numeric value. Min 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 minimal value. The function avoids distances equal 0, and initialize minimum value with an auxiliar function initMin, which gets the first matrix element with a valid distance.

Examples

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

minDistance(1:10)

minDistance.details(matrixExample)

# }

Run the code above in your browser using DataLab