Creates an exponentially weighted moving average chart. The expected mean and standard deviation are computed from the sample data.

Namespace: Imsl.Chart2D.QC
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public EWMA(
	AxisXY axis,
	double[] x,
	double lambda
)
Visual Basic (Declaration)
Public Sub New ( _
	axis As AxisXY, _
	x As Double(), _
	lambda As Double _
)
Visual C++
public:
EWMA(
	AxisXY^ axis, 
	array<double>^ x, 
	double lambda
)

Parameters

axis
Type: Imsl.Chart2D..::.AxisXY
The AxisXY parent of this node
x
Type: array< System..::.Double >[]()[]
An array containing the data.
lambda
Type: System..::.Double
The decay parameter. It is usually between 0.2 and 0.3.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionis thrown if 0 \lt \lambda \le 1 does not hold.

See Also