net.obsearch.pivots.kmeans.impl
Class IncrementalKMeansPPPivotSelectorByte<O extends OBByte>

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

public class IncrementalKMeansPPPivotSelectorByte<O extends OBByte>
extends 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
IncrementalKMeansPPPivotSelectorByte(Pivotable<O> pivotable)
          Creates a new IncrementalKMeansPPPivotSelectorByte that will accept pivots accepted by pivotable and will use index as the source of data.
 
Method Summary
 PivotResult generatePivots(int pivotsCount, cern.colt.list.LongArrayList elements, 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

IncrementalKMeansPPPivotSelectorByte

public IncrementalKMeansPPPivotSelectorByte(Pivotable<O> pivotable)
Creates a new IncrementalKMeansPPPivotSelectorByte 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 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 OBByte>
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.