comirva.audio.util.lsh.test
Class TestData

java.lang.Object
  extended by comirva.audio.util.lsh.test.TestData

public class TestData
extends Object


Field Summary
(package private)  Random rand
           
(package private)  Hashtable space
           
 
Constructor Summary
TestData(int dimension, int distance, int border, Hashtable table, boolean debug)
           
 
Method Summary
 void compare(Map nnResult, ArrayList<float[]> resultsBF)
           
 float[] createInnerTestData(float[] queryPoint)
           
 float[] createOuterTestData(float[] queryPoint)
           
 ArrayList<float[]> findClosestBruteForce(float[] vector)
           
 int getActualNeighbor()
           
 String getRuntim()
           
 void showStat()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

space

Hashtable space

rand

Random rand
Constructor Detail

TestData

public TestData(int dimension,
                int distance,
                int border,
                Hashtable table,
                boolean debug)
Method Detail

compare

public void compare(Map nnResult,
                    ArrayList<float[]> resultsBF)

createOuterTestData

public float[] createOuterTestData(float[] queryPoint)

createInnerTestData

public float[] createInnerTestData(float[] queryPoint)

getActualNeighbor

public int getActualNeighbor()

findClosestBruteForce

public ArrayList<float[]> findClosestBruteForce(float[] vector)

showStat

public void showStat()

getRuntim

public String getRuntim()

toString

public String toString()
Overrides:
toString in class Object