findDensityPeakClusters: Detect clusters in a DensityPeakity Cluster obejct

Description Usage Arguments Examples

View source: R/weightedClustSuite.R

Description

Detect clusters in a DensityPeakity Cluster obejct

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
findDensityPeakClusters(x, ...)

## S3 method for class 'ClusteringObject'
findDensityPeakClusters(
  x,
  rho,
  delta,
  plot = FALSE,
  peaks = NULL,
  verbose = FALSE,
  ...
)

Arguments

rho

The threshold for local density when detecting cluster peaks

delta

The threshold for minimum distance to higher density when detecting cluster peaks

plot

Logical. Should a decision plot be shown after cluster detection

peaks

A numeric vector indicates the index of density peaks used for clustering. This vector should be retrieved from the decision plot with caution. No checking involved.

verbose

Logical. Should the running details be reported

Examples

1
2
3
4
5
6
7
irisDist <- dist(iris[,1:4])
irisClust <- ClustObj(irisDist, gaussian=TRUE)
plot(irisClust) # Inspect clustering attributes to define thresholds

irisClust <- findDensityPeakClusters(irisClust, rho=2, delta=2)
plotMDS(irisClust)
split(iris[,5], irisClust$clusters)

DhanujG/weightedClustSuite documentation built on March 3, 2021, 12:29 a.m.