Class MSASmoothing

    • Field Detail

      • stepSize

        protected double stepSize
        Step size
    • Constructor Detail

      • MSASmoothing

        public MSASmoothing​(IdGroupingToken groupId)
        Constructor
        Parameters:
        groupId - contiguous id generation within this group for instances of this class
    • Method Detail

      • update

        public void update​(int iterationIndex)
        Update stepSize to 1/iterationIndex
        Specified by:
        update in class Smoothing
        Parameters:
        iterationIndex - index of current iteration
        See Also:
        Smoothing.update(int)
      • applySmoothing

        public double applySmoothing​(double previousValue,
                                     double proposedValue)
        #Apply smoothing based on the current step size
        Specified by:
        applySmoothing in class Smoothing
        Parameters:
        previousValue - previous value
        proposedValue - proposed value
        Returns:
        smoothedValue smoothed value
      • applySmoothing

        public double[] applySmoothing​(double[] previousValues,
                                       double[] proposedValues,
                                       int numberOfValues)
        #Apply smoothing based on the current step size
        Specified by:
        applySmoothing in class Smoothing
        Parameters:
        previousValues - array of previous values
        proposedValues - array of proposed values
        numberOfValues - number of proposed values
        Returns:
        smoothedValues array of smoothed values