Class Rate


  • public class Rate
    extends Object
    • Constructor Detail

      • Rate

        public Rate​(double ratio)
        Turn a counter into an exponentially smoothed rate over time.
        Parameters:
        ratio - the rate at which each update influences the curve; must be (0., 1.0)
    • Method Detail

      • update

        public double update​(long when,
                             long counter)
      • rate

        public double rate()