 | EWMACalculateAlpha Method |
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'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).
Namespace: Akka.ClusterAssembly: Akka.Cluster (in Akka.Cluster.dll) Version: 1.0.8.21 (1.0.8.21)
Syntaxpublic static double CalculateAlpha(
TimeSpan halfLife,
TimeSpan collectInterval
)
static member CalculateAlpha :
halfLife : TimeSpan *
collectInterval : TimeSpan -> float
Parameters
- halfLife
- Type: SystemTimeSpan
[Missing <param name="halfLife"/> documentation for "M:Akka.Cluster.EWMA.CalculateAlpha(System.TimeSpan,System.TimeSpan)"]
- collectInterval
- Type: SystemTimeSpan
[Missing <param name="collectInterval"/> documentation for "M:Akka.Cluster.EWMA.CalculateAlpha(System.TimeSpan,System.TimeSpan)"]
Return Value
Type:
Double[Missing <returns> documentation for "M:Akka.Cluster.EWMA.CalculateAlpha(System.TimeSpan,System.TimeSpan)"]
See Also