Class MovingAverageInt

java.lang.Object
com.prineside.tdi2.utils.MovingAverageInt
All Implemented Interfaces:
KryoSerializable

public final class MovingAverageInt extends Object implements KryoSerializable
  • Constructor Details

    • MovingAverageInt

      public MovingAverageInt(int maxEntries)
  • Method Details

    • write

      public void write(Kryo kryo, Output output)
      Specified by:
      write in interface KryoSerializable
    • read

      public void read(Kryo kryo, Input input)
      Specified by:
      read in interface KryoSerializable
    • push

      public void push(int v)
    • getAverage

      public int getAverage()
    • getAverageFloat

      public float getAverageFloat()