ddc {ddc}R Documentation

Execute DDC to cluster the dataset

Description

Execute DDC to cluster the dataset

Usage

ddc(dist_matrix, standard_matrix, label_matrix, end_cluster_num = NULL, ...)

Arguments

dist_matrix

the created dist matrix

standard_matrix

the original data matrix

label_matrix

the matrix including events and labels

end_cluster_num

the max number of cluster when the procedue ends

...

including: mc.cores(cores used in parallel), the dtw parameters like step.pattern, keep, mc.cores

Value

the cluster array as a result, including 'Centroid', 'Elements' and 'DBAValue' for each cluster

Examples


original_data <- data.frame("1"=c(1, 2, 1), "2"=c(5,6,7), 
   "3"=c(4, 5, 8), "4"=c(3, 1, 9))
standard_matrix <- createStandardMatrix(data = original_data)
label_matrix <- createLabelMatrix(data = original_data)
dist_matrix <- createDistMatrix(standard_matrix = standard_matrix)
result <- ddc(dist_matrix=dist_matrix, standard_matrix=standard_matrix,
   label_matrix=label_matrix, end_cluster_num=2)


[Package ddc version 1.0.1 Index]