C# 클래스 Akka.Cluster.EWMA

The exponentially weighted moving average (EWMA) approach captures short-term movements in volatility for a conditional volatility forecasting model. By virtue of its alpha, or decay factor, this provides a statistical streaming data model that is exponentially biased towards newer entries. http://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average An EWMA only needs the most recent forecast value to be kept, as opposed to a standard moving average model. INTERNAL API @param alpha decay factor, sets how quickly the exponential weighting decays for past data compared to new data, see http://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average @param value the current exponentially weighted moving average, e.g. Y(n - 1), or, the sampled value resulting from the previous smoothing iteration. This value is always used as the previous EWMA to calculate the new EWMA.
파일 보기 프로젝트 열기: rogeralsing/akka.net 1 사용 예제들

공개 메소드들

메소드 설명
CalculateAlpha ( System.TimeSpan halfLife, System.TimeSpan collectInterval ) : double

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).

EWMA ( double value, double alpha ) : System
operator ( ) : EWMA

메소드 상세

CalculateAlpha() 공개 정적인 메소드

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
리턴 double

EWMA() 공개 메소드

public EWMA ( double value, double alpha ) : System
value double
alpha double
리턴 System

operator() 공개 정적인 메소드

public static operator ( ) : EWMA
리턴 EWMA