Package boofcv.misc

Class MovingAverage


  • public class MovingAverage
    extends java.lang.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 Detail

      • MovingAverage

        public MovingAverage()
      • MovingAverage

        public MovingAverage​(double decay)
    • Method Detail

      • 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()