Added new filters and remove face detection(it didn't work)
This commit is contained in:
parent
41c474d2a5
commit
73be002969
18 changed files with 497 additions and 362 deletions
|
|
@ -76,9 +76,9 @@ public class BloomFilter<T extends Serializable> implements Set<T>, Serializable
|
|||
}
|
||||
|
||||
/**
|
||||
* @param o The Serializable object to search for
|
||||
* @return If the object contains in the filter or false
|
||||
* if the Object is not Serializable
|
||||
* @param o is the Serializable object to search for
|
||||
* @return If the object contains in the filter or
|
||||
* false if the Object is not Serializable
|
||||
*/
|
||||
public boolean contains(Object o) {
|
||||
try {
|
||||
|
|
@ -131,7 +131,7 @@ public class BloomFilter<T extends Serializable> implements Set<T>, Serializable
|
|||
}
|
||||
|
||||
/**
|
||||
* @return The false posetive probability of the current state of the filter
|
||||
* @return The false positive probability of the current state of the filter
|
||||
*/
|
||||
public double falsePosetiveProbability(){
|
||||
return Math.pow(0.6185, bits.size()/content_size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue