Class Smoothing

    • Field Detail

      • MSA

        public static final String MSA
        short hand for configuring smoothing with MSA instance
    • Constructor Detail

      • Smoothing

        public Smoothing​(IdGroupingToken groupId)
        Base constructor
        Parameters:
        groupId - contiguous id generation within this group for instances of this class
      • Smoothing

        public Smoothing​(Smoothing other)
        Constructor
        Parameters:
        other - to copy
    • Method Detail

      • updateStep

        public abstract void updateStep​(int iterationIndex)
        Determine the stepsize for the passed in iteraction
        Parameters:
        iterationIndex - index of current iteration
      • execute

        public abstract double execute​(double previousValue,
                                       double proposedValue)
        Apply smoothing based on the current step size
        Parameters:
        previousValue - previous value
        proposedValue - proposed value
        Returns:
        smoothedValue smoothed value
      • execute

        public abstract double[] execute​(double[] previousValues,
                                         double[] proposedValues,
                                         int numberOfValues)
        Apply smoothing based on the current step size
        Parameters:
        previousValues - array of previous values
        proposedValues - array of proposed values
        numberOfValues - number of proposed values
        Returns:
        smoothedValues array of smoothed values