combineCluster {tscR} | R Documentation |
Combine clusters from two different clustering
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)
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)