Description Usage Arguments Details Value Author(s) Examples
View source: R/distances.details.R
To explain how to calculate distances between two clusters applying weights depending on the distance type.
1 | distances.details(cluster1, cluster2, distance, weight)
|
cluster1 |
is a matrix. |
cluster2 |
is a matrix. |
distance |
is a string. The distance type to apply. |
weight |
is a numeric vector. |
This function calculates distance applying distance type and applying each weight to its characteristic.
Distance type could be EUC, MAN, CAN, CHE or OCT.
Distance value applying weights. Explanation.
Roberto Alcántara roberto.alcantara@edu.uah.es
Juan José Cuadrado jjcg@uah.es
Universidad de Alcalá de Henares
1 2 3 4 5 6 7 8 9 | cluster1 <- matrix(c(2,3))
cluster2 <- matrix(c(4,5))
weight1 <- c(0.6,0.4)
weight2 <- c(2,4)
distances.details(cluster1, cluster2, 'MAN', weight1)
distances.details(cluster1, cluster2, 'CHE', weight2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.