public final class ThresholdFuncBitmap extends UpdateableBitmapFunction
| Modifier and Type | Field and Description |
|---|---|
private int[] |
bufCounters |
private long[] |
buffers |
private int |
bufferUsed |
private int |
min |
private static int[] |
zeroes64 |
b, hammingWeight, litWeight, litwlist, rw| Constructor and Description |
|---|
ThresholdFuncBitmap(int min)
Construction a threshold function with a given threshold
|
| Modifier and Type | Method and Description |
|---|---|
private void |
andLiterals(BitmapStorage out,
int runBegin,
int runLength) |
void |
dispatch(BitmapStorage out,
int runBegin,
int runEnd)
Writes out the answer.
|
private void |
generalLiterals(int deficit,
BitmapStorage out,
int runBegin,
int runLength) |
private void |
orLiterals(BitmapStorage out,
int runBegin,
int runLength) |
private long |
threshold2buf(int t,
long[] buf,
int bufUsed) |
private static long |
threshold3(int t,
long[] buffers,
int bufUsed) |
private long |
threshold4(int T,
long[] buf,
int bufUsed) |
clearLiteral, fillWithLiterals, getLiterals, getNumberOfLiterals, resize, setLiteral, setOne, setZeroprivate final int min
private long[] buffers
private int bufferUsed
private final int[] bufCounters
private static final int[] zeroes64
public ThresholdFuncBitmap(int min)
min - thresholdpublic void dispatch(BitmapStorage out, int runBegin, int runEnd)
UpdateableBitmapFunctiondispatch in class UpdateableBitmapFunctionout - output bufferrunBegin - beginning of the runrunEnd - end of the runprivate long threshold2buf(int t,
long[] buf,
int bufUsed)
private static long threshold3(int t,
long[] buffers,
int bufUsed)
private long threshold4(int T,
long[] buf,
int bufUsed)
private void orLiterals(BitmapStorage out, int runBegin, int runLength)
private void andLiterals(BitmapStorage out, int runBegin, int runLength)
private void generalLiterals(int deficit,
BitmapStorage out,
int runBegin,
int runLength)