CalculateAlpha() public static 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).
public static CalculateAlpha ( System.TimeSpan halfLife, System.TimeSpan collectInterval ) : double
halfLife System.TimeSpan
collectInterval System.TimeSpan
return double
Exemplo n.º 1
0
 private PerformanceCounterMetricsCollector(Cluster cluster) : this(cluster.SelfAddress,
                                                                    EWMA.CalculateAlpha(cluster.Settings.MetricsMovingAverageHalfLife, cluster.Settings.MetricsInterval))
 {
 }