DensityPeakClusters: Extract DensityPeak cluster membership from a...

Description Usage Arguments Details Value

View source: R/weightedClustSuite.R

Description

This function allows the user to extract the RL Dense cluster membership of all the observations in the given ClusteringObject object. The output can be formatted in two ways as described below. Halo observations can be chosen to be removed from the output.

Usage

1
2
3
4
DensityPeakClusters(x, ...)

## S3 method for class 'ClusteringObject'
DensityPeakClusters(x, as.list = FALSE, halo.rm = TRUE, ...)

Arguments

x

The ClusteringObject object. findDensityPeakClusters() must have been performed prior to this call to avoid throwing an error.

...

Currently ignored

as.list

Should the output be in the list format. Defaults to FALSE

halo.rm

Logical. should halo observations be removed. Defaults to TRUE

Details

Two formats for the output are available. Either a vector of integers denoting for each observation, which cluster the observation belongs to. If halo observations are removed, these are set to NA. The second format is a list with a vector for each group containing the index for the member observations in the group. If halo observations are removed their indexes are omitted. The list format correspond to the following transform of the vector format split(1:length(clusters), clusters), where clusters are the cluster information in vector format.

Value

A vector or list with cluster memberships for the observations in the initial distance matrix


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