combineCluster: Combine clusters function

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/combineCluster.R

Description

Combine clusters from two different clustering

Usage

1

Arguments

x

Object of class pam. Output of getClusters.

y

Object of class pam. Output of getClusters.

Details

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.

Value

Object of class 'pam'. See pam.object for details

Author(s)

Fernando Pérez-Sanz (fernando.perez8@um.es)

Miriam Riquelme-Pérez (miriam.riquelmep@gmail.com)

See Also

getClusters, plotCluster

Examples

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)

tscR documentation built on Nov. 8, 2020, 5:53 p.m.