getCluster: To get the clusters with minimal distance.

Description Usage Arguments Details Value Author(s) Examples

View source: R/getCluster.R

Description

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

Usage

1
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

1
2
3
matrixExample <- matrix(c(1:10), ncol=2)

getCluster(2,matrixExample)

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