Class EWMA$

java.lang.Object
org.apache.pekko.cluster.metrics.EWMA$
All Implemented Interfaces:
Serializable

public class EWMA$ extends Object implements Serializable
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final EWMA$
    Static reference to the singleton instance of this Scala object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    alpha(scala.concurrent.duration.FiniteDuration halfLife, scala.concurrent.duration.FiniteDuration collectInterval)
    Calculate the alpha (decay factor) used in EWMA from specified half-life and interval between observations.
    apply(double value, double alpha)
     
    scala.Option<scala.Tuple2<Object,Object>>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MODULE$

      public static final EWMA$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • EWMA$

      public EWMA$()
  • Method Details

    • alpha

      public double alpha(scala.concurrent.duration.FiniteDuration halfLife, scala.concurrent.duration.FiniteDuration collectInterval)
      Calculate the alpha (decay factor) used in EWMA from specified half-life and interval between observations. Half-life is the interval over which the weights decrease by a factor of two. The relevance of each data sample is halved for every passing half-life duration, i.e. after 4 times the half-life, a data sample&rsquo;s relevance is reduced to 6% of its original relevance. The initial relevance of a data sample is given by 1 – 0.5 ^ (collect-interval / half-life).
    • apply

      public EWMA apply(double value, double alpha)
    • unapply

      public scala.Option<scala.Tuple2<Object,Object>> unapply(EWMA x$0)