Package elki.clustering.kmedoids
Class EagerPAM.Instance
- java.lang.Object
-
- elki.clustering.kmedoids.PAM.Instance
-
- elki.clustering.kmedoids.EagerPAM.Instance
-
protected static class EagerPAM.Instance extends PAM.Instance
Instance for a single dataset.- Author:
- Erich Schubert
-
-
Field Summary
-
Fields inherited from class elki.clustering.kmedoids.PAM.Instance
assignment, distQ, ids, nearest, second
-
-
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 EagerPAM optimization phase.-
Methods inherited from class elki.clustering.kmedoids.PAM.Instance
assignToNearestCluster, computeReassignmentCost
-
-
-
-
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 EagerPAM optimization phase.- Overrides:
run
in classPAM.Instance
- Parameters:
medoids
- Medoids listmaxiter
-- Returns:
- final cost
-
-