Description Usage Arguments Details Value Author(s) Examples
If there is a giant or nuisance component in the clustering (which may have arisen from numerous narrow bridges in the dataset), this helper function splits it into k smaller clusters using kmeans.
1 | clsSplit(x, cls.spec, k)
|
x |
a cTurn object containing the clustering that requires splitting. |
cls.spec |
a vector enumerating the cluster(s) that require splitting. |
k |
the number of clusters to split apart the specified into. |
This is essentially a wrapper for the kmeans function, but deals with the nuts and bolts of retaining
the required structure of the input object, x
.
An object of class cTurn
. This will be the same object as x
, but with the $cluster
vector
now reflecting the desired split.
Alex Bird, alex.bird@boots.co.uk
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.