public final class ThresholdFuncBitmap32 extends UpdateableBitmapFunction32
Modifier and Type | Field and Description |
---|---|
private int[] |
bufcounters |
private int[] |
buffers |
private int |
bufferUsed |
private int |
min |
private static int[] |
zeroes64 |
b, hammingWeight, litWeight, litwlist, rw
Constructor and Description |
---|
ThresholdFuncBitmap32(int min)
Construction a threshold function with a given threshold
|
Modifier and Type | Method and Description |
---|---|
private void |
andLiterals(BitmapStorage32 out,
int runBegin,
int runLength) |
void |
dispatch(BitmapStorage32 out,
int runBegin,
int runend)
Writes out the answer.
|
private void |
generalLiterals(int deficit,
BitmapStorage32 out,
int runBegin,
int runLength) |
private void |
orLiterals(BitmapStorage32 out,
int runBegin,
int runLength) |
private int |
threshold2buf(int t,
int[] buf,
int bufUsed) |
private static int |
threshold3(int t,
int[] buffers,
int bufUsed) |
private int |
threshold4(int t,
int[] buf,
int bufUsed) |
clearLiteral, fillWithLiterals, getLiterals, getNumberOfLiterals, resize, setLiteral, setOne, setZero
private final int min
private int[] buffers
private int bufferUsed
private final int[] bufcounters
private static final int[] zeroes64
public ThresholdFuncBitmap32(int min)
min
- thresholdpublic void dispatch(BitmapStorage32 out, int runBegin, int runend)
UpdateableBitmapFunction32
dispatch
in class UpdateableBitmapFunction32
out
- output bufferrunBegin
- beginning of the runrunend
- end of the runprivate int threshold2buf(int t, int[] buf, int bufUsed)
private static int threshold3(int t, int[] buffers, int bufUsed)
private int threshold4(int t, int[] buf, int bufUsed)
private void orLiterals(BitmapStorage32 out, int runBegin, int runLength)
private void andLiterals(BitmapStorage32 out, int runBegin, int runLength)
private void generalLiterals(int deficit, BitmapStorage32 out, int runBegin, int runLength)