Class PrimitiveFunction.SampleDomain

  • Enclosing class:
    PrimitiveFunction

    public static final class PrimitiveFunction.SampleDomain
    extends java.lang.Object
    • Field Detail

      • myIncrement

        private final double myIncrement
      • myNumberOfSamples

        private final int myNumberOfSamples
      • myPeriod

        private final double myPeriod
    • Constructor Detail

      • SampleDomain

        public SampleDomain​(double period,
                            int nbSamples)
    • Method Detail

      • adjustToPowerOf2

        public PrimitiveFunction.SampleDomain adjustToPowerOf2()
        Adjusts the number of samples to the smallest power of 2 that is not less than the current number of samples.
      • argumant

        public double argumant​(int index)
      • arguments

        public double[] arguments()
      • increment

        public double increment()
      • period

        public double period()
      • size

        public int size()