org.gcube.indexmanagement.featureindexlibrary.vafile.algo
Class ComputeBoundsLU

java.lang.Object
  extended by org.gcube.indexmanagement.featureindexlibrary.vafile.algo.ComputeBoundsLU

public class ComputeBoundsLU
extends Object

Computes the lower and upper bounds of the query point to all grid cells

Author:
UoA

Constructor Summary
ComputeBoundsLU(float[][] partitionPoints, int buckets)
          Creates a new instance
 
Method Summary
 float getLowerBound(byte[] bitString)
          Teh lower bound of the bit string
 float getUpperBound(byte[] bitString)
          The upper bound of the bit string
 void preCompute(float[] vector)
          precompute the upper lower distance differences for the query vector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputeBoundsLU

public ComputeBoundsLU(float[][] partitionPoints,
                       int buckets)
Creates a new instance

Parameters:
partitionPoints - Teh partition points
buckets - The buckets
Method Detail

getLowerBound

public float getLowerBound(byte[] bitString)
Teh lower bound of the bit string

Parameters:
bitString - The bit string
Returns:
The lower bound

getUpperBound

public float getUpperBound(byte[] bitString)
The upper bound of the bit string

Parameters:
bitString - The bit string
Returns:
The upper bound

preCompute

public void preCompute(float[] vector)
                throws Exception
precompute the upper lower distance differences for the query vector

Parameters:
vector - The query vector
Throws:
Exception - An error


Copyright © 2012. All Rights Reserved.