Package elki.clustering.silhouette
Class FasterMSC.Instance
- java.lang.Object
-
- elki.clustering.silhouette.FastMSC.Instance
-
- elki.clustering.silhouette.FasterMSC.Instance
-
protected class FasterMSC.Instance extends FastMSC.Instance
FasterMSC clustering instance for a particular data set.- Author:
- Erich Schubert
-
-
Field Summary
-
Fields inherited from class elki.clustering.silhouette.FastMSC.Instance
assignment, distQ, ids, output
-
-
Constructor Summary
Constructors Constructor Description Instance(DistanceQuery<?> distQ, DBIDs ids, WritableIntegerDataStore assignment)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
run(ArrayModifiableDBIDs medoids, int maxiter)
Run the FasterMSC optimization phase.-
Methods inherited from class elki.clustering.silhouette.FastMSC.Instance
assignToNearestCluster, doSwap, findBestSwap, silhouetteScores, updateRemovalLoss, updateThirdNearest
-
-
-
-
Constructor Detail
-
Instance
public Instance(DistanceQuery<?> distQ, DBIDs ids, WritableIntegerDataStore assignment)
Constructor.- Parameters:
distQ
- Distance queryids
- IDs to processassignment
- Cluster assignment
-
-
Method Detail
-
run
protected double run(ArrayModifiableDBIDs medoids, int maxiter)
Run the FasterMSC optimization phase.- Overrides:
run
in classFastMSC.Instance
- Parameters:
medoids
- Initial medoids listmaxiter
- Maximum number of iterations- Returns:
- final medoid Silhouette
-
-