CLARA: CLARA clustering

Description Usage Arguments Details Value Author(s) Examples

Description

Implements CLARA clustering algorithm using pam

Usage

1
2
CLARA(x, k, nSamples = 5, sampleFrac = 0.1, swap = FALSE,
  pamonce = 0)

Arguments

x

(numeric matrix or dist) data

k

(positive integer) Number of clusters

nSamples

(positive integer, default: 5) Number of random samples

sampleFrac

(positive fraction, default: 0.1) Fraction of observations in a sample

swap

(flag, default: FALSE) Whether PAM should involve swap phase

pamonce

(One among 0, 1, 2, default: 0) See pamonce argument in pam

Details

CLARA implementation:

The PAM fitting on multiple subsets is parallelized with future.

Value

A list with three compoments:

Author(s)

Srikanth Komala Sheshachala (sri.teach@gmail.com)

Examples

1
2
3
4
set.seed(1)
clara(dist(mtcars), k = 4, sampleFrac = 0.4, nSamples = 10)
set.seed(2)
clara(stats::dist(mtcars, method = "maximum"), k = 4, sampleFrac = 0.4, nSamples = 10)

talegari/clusterfit documentation built on May 15, 2019, 6:29 p.m.