Package akka.cluster.metrics
Class EWMA$
- java.lang.Object
 - 
- akka.cluster.metrics.EWMA$
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable
public class EWMA$ extends java.lang.Object implements java.io.Serializable- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description EWMA$() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublealpha(scala.concurrent.duration.FiniteDuration halfLife, scala.concurrent.duration.FiniteDuration collectInterval)Calculate the alpha (decay factor) used inakka.cluster.EWMAfrom specified half-life and interval between observations.EWMAapply(double value, double alpha)scala.Option<scala.Tuple2<java.lang.Object,java.lang.Object>>unapply(EWMA x$0) 
 - 
 
- 
- 
Field Detail
- 
MODULE$
public static final EWMA$ MODULE$
Static reference to the singleton instance of this Scala object. 
 - 
 
- 
Method Detail
- 
alpha
public double alpha(scala.concurrent.duration.FiniteDuration halfLife, scala.concurrent.duration.FiniteDuration collectInterval)Calculate the alpha (decay factor) used inakka.cluster.EWMAfrom 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’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<java.lang.Object,java.lang.Object>> unapply(EWMA x$0)
 
 - 
 
 -