Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/combineCluster.R
Combine clusters from two different clustering
1 | combineCluster(x, y)
|
x |
Object of class pam. Output of getClusters. |
y |
Object of class pam. Output of getClusters. |
This function combines the clusters obtained in getClusters with 'slope' distance and the ones obtained with Frechet distance, resulting in a new clustering combining both distances.
Object of class 'pam'. See pam.object
for details
Fernando Pérez-Sanz (fernando.perez8@um.es)
Miriam Riquelme-Pérez (miriam.riquelmep@gmail.com)
1 2 3 4 5 6 7 8 | data(tscR)
data <- tscR
time <- c(1,2,3)
dist_slope <- slopeDist(data, time)
dist_frechet <- frechetDistC(data, time)
slope.cluster <- getClusters(dist_slope, 3)
frechet.cluster <- getClusters(dist_frechet, 4)
comb.cluster <- combineCluster(slope.cluster, frechet.cluster)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.