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

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

public class ComputeBoundsL
extends Object

Computes the Lower bounds of the query point to all grid cells

Author:
UoA

Constructor Summary
ComputeBoundsL(float[][] partitionPoints, int buckets)
          Creates a new instance
 
Method Summary
 float getLowerBound(byte[] bitString)
          Retrieves the lower bound of the given bitstring
 void preCompute(float[] vector)
          precmputes the dinstance differences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputeBoundsL

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

Parameters:
partitionPoints - The partition points
buckets - The buckets in the dimention
Method Detail

getLowerBound

public float getLowerBound(byte[] bitString)
Retrieves the lower bound of the given bitstring

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

preCompute

public void preCompute(float[] vector)
                throws Exception
precmputes the dinstance differences

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


Copyright © 2013. All Rights Reserved.