run: Run clustering for sscs object.

Description Usage Arguments Details Value

View source: R/sscs.R

Description

Run clustering algorithm for a given sscs object. The sscs object will be initialized using the specified number of clusters (nclusters) and any additional parameters (passed in '...', see init(...)). Clustering can be done repeatedly (specified by nreps), returning the best results. Computation will be distributed across the number of compute cores specified by ncores.

Usage

1
2
  run(sscs, nclusters=2, nreps=1, ncores=1, max.iterations=100,
      tolerance=0)

Arguments

sscs

Object of class 'sscs' created by new_sscs(...).

nclusters

Integer number of clusters >= 1.

nreps

Number of repeated runs (returns the best run).

ncores

Number of compute cores to distribute repeated runs across.

max.iterations

Maximum number of assignment update iterations per run.

tolerance

Numerical precision to use when updating cluster redundancy (see update_assignments)

...

Additional parameters to pass to init(...).

Details

Clustering is done by iteratively updating cluster assignments, stopping when assignments are stable (no change between iterations) or max.iterations is reached. Tolerance determines the numerical precision used for calculating cluster redundancies (see update_assignments).

Value

Returns an sscs object with updated cluster assignments, which can be accessed with the assignments(...) function.


crtwomey/sscs documentation built on Dec. 25, 2019, 8:03 a.m.