matrixDistance {LearnClust} | R Documentation |
Matrix distance by distance type
Description
To calculate the matrix distance by using distance
type.
Usage
matrixDistance(list, distance)
Arguments
list |
is a clusters list. |
distance |
is a literal. |
Details
This function is part of the hierarchical clusterization method. The function calculates the matrix distance by using the distance 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.
Examples
data <- c(1:10)
clusters <- toList(data)
matrixDistance(clusters, 'EUC')
[Package LearnClust version 1.1 Index]