net.obsearch.pivots.bustos.impl
Class IncrementalBustosNavarroChavezShort<O extends OBShort>
java.lang.Object
net.obsearch.pivots.AbstractIncrementalPivotSelector<O>
net.obsearch.pivots.bustos.AbstractIncrementalBustosNavarroChavez<O>
net.obsearch.pivots.bustos.impl.IncrementalBustosNavarroChavezShort<O>
- All Implemented Interfaces:
- IncrementalPivotSelector<O>
public class IncrementalBustosNavarroChavezShort<O extends OBShort>
- extends AbstractIncrementalBustosNavarroChavez<O>
- implements IncrementalPivotSelector<O>
IncrementalBustosNavarroChavezShort is an implementation
for OBShort objects
- Author:
- Arnoldo Jose Muller Molina
Method Summary |
protected double |
calculateMedian(long[] pivots,
long[] x,
long[] y,
Index<O> index)
Calculates the median of L-inf(x[i], y[i]) based on pivots |
protected void |
resetCache(int x)
Resets the internal cache. |
protected boolean |
validatePivots(long[] pivots,
long id,
Index<O> index)
Validates that the lower layers have been processing everything fine. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncrementalBustosNavarroChavezShort
public IncrementalBustosNavarroChavezShort(Pivotable<O> pivotable,
int l,
int m)
- Receives the object that accepts pivots as possible candidates. Selects l
pairs of objects to compare which set of pivots is better, and selects m
possible pivot candidates from the data set.
- Parameters:
pivotable
- l
- pairs of objects to selectm
- m possible pivot candidates to be randomly picked.
calculateMedian
protected double calculateMedian(long[] pivots,
long[] x,
long[] y,
Index<O> index)
throws com.sleepycat.je.DatabaseException,
IllegalIdException,
IllegalAccessException,
InstantiationException,
OBException
- Description copied from class:
AbstractIncrementalBustosNavarroChavez
- Calculates the median of L-inf(x[i], y[i]) based on pivots
- Specified by:
calculateMedian
in class AbstractIncrementalBustosNavarroChavez<O extends OBShort>
- Parameters:
pivots
- The pivots used to map the spacex
- The left part of the pairy
- The right part of the pair.index
- The underlying index (used to extract the objects and
calculate the distances)
- Throws:
com.sleepycat.je.DatabaseException
IllegalIdException
IllegalAccessException
InstantiationException
OBException
resetCache
protected void resetCache(int x)
- Description copied from class:
AbstractIncrementalBustosNavarroChavez
- Resets the internal cache.
- Specified by:
resetCache
in class AbstractIncrementalBustosNavarroChavez<O extends OBShort>
validatePivots
protected boolean validatePivots(long[] pivots,
long id,
Index<O> index)
throws com.sleepycat.je.DatabaseException,
IllegalIdException,
IllegalAccessException,
InstantiationException,
OBException
- Description copied from class:
AbstractIncrementalBustosNavarroChavez
- Validates that the lower layers have been processing everything fine.
- Specified by:
validatePivots
in class AbstractIncrementalBustosNavarroChavez<O extends OBShort>
- Parameters:
pivots
- the pivots that were selectedid
- Id of the objectindex
- Index from which we will load objects.
- Throws:
com.sleepycat.je.DatabaseException
IllegalIdException
IllegalAccessException
InstantiationException
OBException
Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.