Class ExponentiallyDecayedSum

java.lang.Object
com.illumon.numerics.movingaverages.ExponentiallyDecayedSum
All Implemented Interfaces:
Serializable

public class ExponentiallyDecayedSum
extends Object
implements Serializable
A sum where the values are decayed at an exponential rate to zero.
See Also:
Serialized Form
  • Constructor Details

    • ExponentiallyDecayedSum

      public ExponentiallyDecayedSum​(double decayRate, boolean enableTimestepOutOfOrderException)
      Creates a new exponentially decayed sum.
      Parameters:
      decayRate - rate in milliseconds to decay the sum.
      enableTimestepOutOfOrderException - true to allow an exception to be thrown when timesteps are not sequential.
  • Method Details