getCluster {LearnClust}R Documentation

To get the clusters with minimal distance.

Description

To get the clusters with the minimal distance value. By using the given distance, it gets the matrix index.

Usage

getCluster(distance, matrix)

Arguments

distance

is a number. It should be in the matrix.

matrix

is a numeric matrix.

Details

This function is part of the hierarchical clusterization method. The function uses the distance value and gets the clustersId with the minimal distance.

For the divisive algorithm, it chooses the distances from a distances list.

Value

numeric vector with two cluster indexs.

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), ncol=2)

getCluster(2,matrixExample)


[Package LearnClust version 1.1 Index]