public class IncrementalLifetimeSparseClusterer extends IncrementalSparseClusterer
IncrementalSparseClusterer which also has a notion of a lifetime.
A lifetime is the number of windows which a given item is allowed to live before it
must be clustered.
By default this value is 3, meaning if 3 windows pass and a given row was not in a valid cluster,
it is classified as noise and removed from clustering. More specifically it is added to a cluster
of its own in isolationthreshold| Constructor and Description |
|---|
IncrementalLifetimeSparseClusterer(SparseMatrixClusterer<? extends IndexClusters> clusterer,
int window) |
IncrementalLifetimeSparseClusterer(SparseMatrixClusterer<? extends IndexClusters> clusterer,
int window,
double threshold,
int lifetime) |
IncrementalLifetimeSparseClusterer(SparseMatrixClusterer<? extends IndexClusters> clusterer,
int window,
int lifetime) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
detectInactive(IndexClusters oldClusters,
IndexClusters newClusters,
gnu.trove.set.TIntSet inactiveRows,
List<int[]> completedClusters)
Given the old and new clusters, make a decision as to which rows are now inactive,
and therefore which clusters are now completed
|
calculateStability, cluster, performClusteringpublic IncrementalLifetimeSparseClusterer(SparseMatrixClusterer<? extends IndexClusters> clusterer, int window)
clusterer - the underlying clustererwindow - public IncrementalLifetimeSparseClusterer(SparseMatrixClusterer<? extends IndexClusters> clusterer, int window, int lifetime)
clusterer - the underlying clustererwindow - lifetime - public IncrementalLifetimeSparseClusterer(SparseMatrixClusterer<? extends IndexClusters> clusterer, int window, double threshold, int lifetime)
clusterer - the underlying clustererwindow - threshold - lifetime - protected void detectInactive(IndexClusters oldClusters, IndexClusters newClusters, gnu.trove.set.TIntSet inactiveRows, List<int[]> completedClusters)
IncrementalSparseClustererdetectInactive in class IncrementalSparseClusterer