Package edu.berkeley.cs.jqf.fuzz.util
Class MapOfCounters
java.lang.Object
edu.berkeley.cs.jqf.fuzz.util.MapOfCounters
Maps integer keys to integer counts using a fixed-size table.
Hash collisions are completely ignored; therefore, the counts
are unreliable.
- Author:
- Rohan Padhye
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidincrement(int k1, int k2) org.eclipse.collections.api.list.primitive.IntListnonZeroCountsAtIndex(int idx)
-
Constructor Details
-
MapOfCounters
public MapOfCounters(int numCounters, int counterSize)
-
-
Method Details
-
clear
public void clear() -
increment
public void increment(int k1, int k2) -
nonZeroCountsAtIndex
public org.eclipse.collections.api.list.primitive.IntList nonZeroCountsAtIndex(int idx) -
nonEmptyCountersIndices
-