|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.aitools.iv.mds.util.FuzzySimilarityHashSet
public class FuzzySimilarityHashSet
Constructor Summary | |
---|---|
FuzzySimilarityHashSet(int n)
Creates a new instance of FuzzySimilarityHashSet. |
|
FuzzySimilarityHashSet(int n,
int s)
Creates a new instance of FuzzySimilarityHashSet. |
Method Summary | |
---|---|
void |
add(int index,
java.math.BigInteger[] hashes)
Adds an object. |
int[] |
getSimilar(int index,
java.math.BigInteger[] hashes)
Returns similar objects based on the hash values of input object. |
boolean |
isEmpty()
Returns if hashset is empty. |
int |
size()
Returns number of objects. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FuzzySimilarityHashSet(int n)
n
- number of hashfunctionspublic FuzzySimilarityHashSet(int n, int s)
n
- number of hashfunctionss
- number of samples to be returned if more are foundMethod Detail |
---|
public int size()
public boolean isEmpty()
public void add(int index, java.math.BigInteger[] hashes)
index
- index of objecthashes
- array of hash values of objectpublic int[] getSimilar(int index, java.math.BigInteger[] hashes)
index
- index of object for which similar ones should be foundhashes
- array of hash values of object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |