Class BooleanFunctionStats

java.lang.Object
com.knezevic.edaf.v3.problems.crypto.BooleanFunctionStats

public final class BooleanFunctionStats extends Object
Cached statistics for one boolean function truth table.
  • Method Details

    • of

      public static BooleanFunctionStats of(int n, int[] truthTable)
      Builds immutable stats object from binary truth table values {0,1}.
    • n

      public int n()
    • size

      public int size()
    • ones

      public int ones()
    • zeros

      public int zeros()
    • maxWalshAbs

      public int maxWalshAbs()
    • nonlinearity

      public double nonlinearity()
    • algebraicDegree

      public int algebraicDegree()
    • nonlinearityUpperBound

      public double nonlinearityUpperBound()
      Returns known upper bound for nonlinearity.