protected static class FastCLARANS.Assignment extends CLARANS.Assignment
Modifier and Type | Field and Description |
---|---|
(package private) double[] |
cost
Array for storing the per-medoid costs.
|
protected int |
lastbest
Last best medoid number
|
assignment, distQ, ids, medoids, miter, nearest, second, secondid
Constructor and Description |
---|
Assignment(DistanceQuery<?> distQ,
DBIDs ids,
int k)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected double |
computeCostDifferential(DBIDRef h)
Compute the reassignment cost, for one swap.
|
protected void |
performLastSwap(DBIDRef h)
Compute the reassignment cost, for one swap.
|
assignToNearestCluster, computeCostDifferential, recompute
double[] cost
protected int lastbest
public Assignment(DistanceQuery<?> distQ, DBIDs ids, int k)
distQ
- Distance queryids
- IDs to processk
- Number of medoidsprotected double computeCostDifferential(DBIDRef h)
h
- Current object to swap with any medoid.protected void performLastSwap(DBIDRef h)
h
- Current object to swap with the best medoidCopyright © 2019 ELKI Development Team. License information.