Class MetaShift.Masks

  • Enclosing class:
    MetaShift

    public static class MetaShift.Masks
    extends java.lang.Object
    • Constructor Detail

      • Masks

        public Masks()
    • 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 required
        bankModulo - 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)