Package boofcv.misc

Class MovingAverage

java.lang.Object
boofcv.misc.MovingAverage

public class MovingAverage
extends Object
Computes a moving average with a decay function decay variable sets how quickly the average is updated. 1.0 = static and no change. 0.0 = sets to most recent sample.
  • Constructor Details

    • MovingAverage

      public MovingAverage()
    • MovingAverage

      public MovingAverage​(double decay)
  • Method Details

    • reset

      public void reset()
    • update

      public double update​(double sample)
    • getAverage

      public double getAverage()
    • getDecay

      public double getDecay()
    • setDecay

      public void setDecay​(double decay)
    • isFirst

      public boolean isFirst()