net.obsearch.pivots.kmeans.impl
Class IncrementalKMeansPPPivotSelectorLong<O extends OBLong>
java.lang.Object
net.obsearch.pivots.AbstractIncrementalPivotSelector<O>
net.obsearch.pivots.kmeans.impl.IncrementalKMeansPPPivotSelectorLong<O>
- Type Parameters:
O
- Type of object of the index to be analyzed.
public class IncrementalKMeansPPPivotSelectorLong<O extends OBLong>
- extends AbstractIncrementalPivotSelector<O>
This pivot selector uses k-means++ to select "good" centers.
- Since:
- 0.8
- Author:
- Arnoldo Jose Muller Molina
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncrementalKMeansPPPivotSelectorLong
public IncrementalKMeansPPPivotSelectorLong(Pivotable<O> pivotable)
- Creates a new IncrementalKMeansPPPivotSelectorLong that will accept pivots
accepted by pivotable and will use index as the source of data.
- Parameters:
index
- Index used to load and search objectspivotable
- Object used to determine which objects are suitable for being pivots.
generatePivots
public PivotResult generatePivots(int pivotsCount,
cern.colt.list.LongArrayList elements,
Index<O> index)
throws OBException,
IllegalAccessException,
InstantiationException,
OBStorageException,
PivotsUnavailableException
- Specified by:
generatePivots
in class AbstractIncrementalPivotSelector<O extends OBLong>
- Throws:
OBException
IllegalAccessException
InstantiationException
OBStorageException
PivotsUnavailableException
getRetries
public int getRetries()
setRetries
public void setRetries(int retries)
Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.