Click or drag to resize
Akka.NETEWMACalculateAlpha 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.Cluster
Assembly: Akka.Cluster (in Akka.Cluster.dll) Version: 1.0.8.21 (1.0.8.21)
Syntax
public static double CalculateAlpha(
	TimeSpan halfLife,
	TimeSpan collectInterval
)

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