Package io.virtdata.lfsrs
Class MetaShift.Masks
- java.lang.Object
-
- io.virtdata.lfsrs.MetaShift.Masks
-
- Enclosing class:
- MetaShift
public static class MetaShift.Masks extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Masks()
-
Method Summary
All Methods Static Methods Concrete Methods 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)
-
-
-
Method Detail
-
forPeriodAndBank
public static MetaShift.GaloisData forPeriodAndBank(long period, int bank)
-
forPeriodAndBankModulo
public static MetaShift.GaloisData forPeriodAndBankModulo(long period, int bankModulo)
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)
-
-