minDistance: Minimal distance

Description Usage Arguments Details Value Author(s) Examples

View source: R/minDistance.R

Description

Get the matrix minimal value.

Usage

1

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 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.

Value

Numeric value. Min 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

1
2
3
4
5
matrixExample <- matrix(c(1:10), nrow=2)

minDistance(1:10)

minDistance(matrixExample)

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