Package elki.clustering.silhouette
Class FasterMSC.Instance2
- java.lang.Object
-
- elki.clustering.silhouette.FastMSC.Instance2
-
- elki.clustering.silhouette.FasterMSC.Instance2
-
protected class FasterMSC.Instance2 extends FastMSC.Instance2
FasterMSC clustering instance for k=2, simplified.- Author:
- Erich Schubert
-
-
Field Summary
-
Fields inherited from class elki.clustering.silhouette.FastMSC.Instance2
assignment, distQ, dm0, dm1, ids
-
-
Constructor Summary
Constructors Constructor Description Instance2(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.Instance2
assignToNearestCluster, doSwap, findBestSwap, silhouetteScores
-
-
-
-
Constructor Detail
-
Instance2
public Instance2(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.Instance2
- Parameters:
medoids
- Initial medoids listmaxiter
- Maximum number of iterations- Returns:
- final medoid Silhouette
-
-