net.obsearch.index.aesa.impl
Class AesaFloat.Computation
java.lang.Object
net.obsearch.index.aesa.impl.AesaFloat.Computation
- All Implemented Interfaces:
- Comparable<AesaFloat.Computation>
- Enclosing class:
- AesaFloat<O extends OBFloat>
protected class AesaFloat.Computation
- extends Object
- implements Comparable<AesaFloat.Computation>
AesaFloat.Computation
public AesaFloat.Computation(float distance,
int element)
- Creates a new computation
- Parameters:
distance
- distance elementsize
- max number of pivots in this index.
getObject
public int getObject()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
compareTo
public int compareTo(AesaFloat.Computation o)
- Specified by:
compareTo
in interface Comparable<AesaFloat.Computation>
selectPivot
public int selectPivot(BitSet computed)
- Randomly selects a pivot from this set.
- Returns:
Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.