Merge pull request #143 from dota17/fixtypoForBloomfilter
Fix typos for the Bloom filter components
This commit is contained in:
commit
a02a0e6993
|
@ -32,7 +32,7 @@ import org.apache.commons.collections4.bloomfilter.hasher.StaticHasher;
|
|||
public class BitSetBloomFilter extends AbstractBloomFilter {
|
||||
|
||||
/**
|
||||
* The bitset that defines this BloomFilter.
|
||||
* The bitSet that defines this BloomFilter.
|
||||
*/
|
||||
private final BitSet bitSet;
|
||||
|
||||
|
|
|
@ -446,7 +446,7 @@ public abstract class AbstractBloomFilterTest {
|
|||
* Tests that merging bloom filters works as expected with a generic BloomFilter.
|
||||
*/
|
||||
@Test
|
||||
public final void mergeTest_GenenicBloomFilter() {
|
||||
public final void mergeTest_GenericBloomFilter() {
|
||||
mergeTest_BloomFilter(this::createGenericFilter);
|
||||
}
|
||||
|
||||
|
@ -598,7 +598,7 @@ public abstract class AbstractBloomFilterTest {
|
|||
* Tests that the xorCardinality calculations are correct with a generic BloomFilter.
|
||||
*/
|
||||
@Test
|
||||
public final void xorCardinalityTest_GenenicBloomFilter() {
|
||||
public final void xorCardinalityTest_GenericBloomFilter() {
|
||||
xorCardinalityTest(this::createGenericFilter);
|
||||
}
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@ public class ShapeTest {
|
|||
}
|
||||
|
||||
/**
|
||||
* Tests that if the number of hash functions is less than 1 an exception is thrown.
|
||||
* Tests that if the number of hash functions is less than 1 an IllegalArgumentException is thrown.
|
||||
*/
|
||||
@Test
|
||||
public void constructor_items_bits_BadNumberOfHashFunctionsTest() {
|
||||
|
@ -212,7 +212,7 @@ public class ShapeTest {
|
|||
}
|
||||
|
||||
/**
|
||||
* Tests that if the probability is less than or equal to 0 an IllegalArgumentException is thrown.
|
||||
* Tests that if the probability is less than or equal to 0 or more than or equal to 1 an IllegalArgumentException is thrown.
|
||||
*/
|
||||
@Test
|
||||
public void constructor_items_probability_BadProbabilityTest() {
|
||||
|
@ -392,7 +392,7 @@ public class ShapeTest {
|
|||
@Test
|
||||
public void constructor_probability_bits_hashTest() {
|
||||
/*
|
||||
* values from https://hur.st/bloomfilter/?n=5&p=.1&m=&k=
|
||||
* values from https://hur.st/bloomfilter/?n=5&p=.1&m=24&k=3
|
||||
*/
|
||||
final Shape filterConfig = new Shape(testFunction, 0.1, 24, 3);
|
||||
|
||||
|
|
Loading…
Reference in New Issue