net.obsearch.pivots.kmeans.impl
Class IncrementalKMeansPPPivotSelectorInt<O extends OBInt>

java.lang.Object
  extended by net.obsearch.pivots.AbstractIncrementalPivotSelector<O>
      extended by net.obsearch.pivots.kmeans.impl.IncrementalKMeansPPPivotSelectorInt<O>
Type Parameters:
O - Type of object of the index to be analyzed.

public class IncrementalKMeansPPPivotSelectorInt<O extends OBInt>
extends net.obsearch.pivots.AbstractIncrementalPivotSelector<O>

This pivot selector uses k-means++ to select "good" centers.

Since:
0.8
Author:
Arnoldo Jose Muller Molina

Field Summary
 
Fields inherited from class net.obsearch.pivots.AbstractIncrementalPivotSelector
pivotable, r
 
Constructor Summary
IncrementalKMeansPPPivotSelectorInt(net.obsearch.pivots.Pivotable<O> pivotable)
          Creates a new IncrementalKMeansPPPivotSelectorInt that will accept pivots accepted by pivotable and will use index as the source of data.
 
Method Summary
 net.obsearch.pivots.PivotResult generatePivots(int pivotsCount, cern.colt.list.LongArrayList elements, net.obsearch.Index<O> index)
           
 int getRetries()
           
 void setRetries(int retries)
           
 
Methods inherited from class net.obsearch.pivots.AbstractIncrementalPivotSelector
enableAcceptRepeated, generatePivots, getObject, mapId, max, select, selectO, selectUnique
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncrementalKMeansPPPivotSelectorInt

public IncrementalKMeansPPPivotSelectorInt(net.obsearch.pivots.Pivotable<O> pivotable)
Creates a new IncrementalKMeansPPPivotSelectorInt that will accept pivots accepted by pivotable and will use index as the source of data.

Parameters:
index - Index used to load and search objects
pivotable - Object used to determine which objects are suitable for being pivots.
Method Detail

generatePivots

public net.obsearch.pivots.PivotResult generatePivots(int pivotsCount,
                                                      cern.colt.list.LongArrayList elements,
                                                      net.obsearch.Index<O> index)
                                               throws net.obsearch.exception.OBException,
                                                      IllegalAccessException,
                                                      InstantiationException,
                                                      net.obsearch.exception.OBStorageException,
                                                      net.obsearch.exception.PivotsUnavailableException
Specified by:
generatePivots in class net.obsearch.pivots.AbstractIncrementalPivotSelector<O extends OBInt>
Throws:
net.obsearch.exception.OBException
IllegalAccessException
InstantiationException
net.obsearch.exception.OBStorageException
net.obsearch.exception.PivotsUnavailableException

getRetries

public int getRetries()

setRetries

public void setRetries(int retries)


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.