Class MetaShift.Masks
java.lang.Object
io.nosqlbench.virtdata.library.basics.core.lfsrs.MetaShift.Masks
- Enclosing class:
- MetaShift
public static class MetaShift.Masks
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Masks() -
Method Summary
Modifier and Type Method Description static MetaShift.GaloisDataforPeriodAndBank(long period, int bank)static MetaShift.GaloisDataforPeriodAndBankModulo(long period, int bankModulo)Look up the valid Galois LFSR feedback register values for the required resamplePeriod.static long[]masksForBitWidth(int registerSize)
-
Constructor Details
-
Masks
public Masks()
-
-
Method Details
-
forPeriodAndBank
-
forPeriodAndBankModulo
Look up the valid Galois LFSR feedback register values for the required resamplePeriod.- Parameters:
period- The minimum cycle resamplePeriod requiredbankModulo- A deterministic selector which will always select the same pseudo random bank- Returns:
- A valid Galois LFSR feedback register
-
masksForBitWidth
public static long[] masksForBitWidth(int registerSize)
-