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,
                         boolean deepCopy)
        Constructor
        Parameters:
        other - to copy
        deepCopy - when true, create a deep copy, shallow copy otherwise
    • 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
      • deepClone

        public abstract Smoothing deepClone()
        deep clone on planit component should attempt to also update internal dependencies between deep cloned containers where possible
        Specified by:
        deepClone in interface IdAble
        Specified by:
        deepClone in class PlanitComponent<Smoothing>
        Returns:
        deep copy of entity