public class SimpleClusterPivotChooser extends AbstractPivotChooser implements java.io.Serializable
counterBucketReadBuckets, counterObjectDistComp, counterPivotDistComp, counterPivotReadBuckets, preselectedPivots, sampleProviders
Constructor and Description |
---|
SimpleClusterPivotChooser(float maxClusterRadius)
Creates a new instance of SimpleClusterPivotChooser for the given maximal cluster radius.
|
Modifier and Type | Method and Description |
---|---|
protected LocalAbstractObject |
assignToPivot(LocalAbstractObject object)
Searches all the currently selected pivots for a pivot, where
the object can be accumulated.
|
protected void |
selectPivot(int count,
AbstractObjectIterator<? extends LocalAbstractObject> sampleSetIterator)
This method carries out the actual pivot selection and must be implemented by
subclasses.
|
addPivot, clear, deregisterSampleProvider, getLastPivot, getNextPivot, getPivot, getPivot, iterator, registerSampleProvider, removeLastPivot, selectPivot, selectPivot, size
public SimpleClusterPivotChooser(float maxClusterRadius)
maxClusterRadius
- the maximal cluster radiusprotected LocalAbstractObject assignToPivot(LocalAbstractObject object)
object
- the object to search the pivotsprotected void selectPivot(int count, AbstractObjectIterator<? extends LocalAbstractObject> sampleSetIterator)
AbstractPivotChooser
addPivot
method.selectPivot
in class AbstractPivotChooser
count
- Number of pivots to generatesampleSetIterator
- Iterator over the sample set of objects to choose new pivots from