mdAgglomerative {LearnClust} | R Documentation |
Matrix distance by distance and approach type.
Description
To calculate the matrix distance by using distance
and approach
type.
Usage
mdAgglomerative(list, distance, approach)
Arguments
list |
is a clusters list. |
distance |
is a literal. The distance type to be used. |
approach |
is a literal. The approach type to be used. |
Details
This function is part of the hierarchical clusterization method. The function calculates the matrix distance by using the distance and approach type given.
The list
parameter will be a list with the clusters as rows and columns.
The function avoids distances equal 0 and undefined clusters.
Value
A matrix distance.
Author(s)
Roberto Alcántara roberto.alcantara@edu.uah.es
Juan José Cuadrado jjcg@uah.es
Universidad de Alcalá de Henares
Examples
data <- c(1,2,1,3,1,4,1,5,1,6)
clusters <- toList(data)
mdAgglomerative(clusters, 'EUC', 'MAX')
mdAgglomerative(clusters, 'CHE', 'AVG')
[Package LearnClust version 1.1 Index]