Updates the test statistic with new sample data and population mean.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public void Update(
	DoubleVector data,
	double mu0
)
Visual Basic (Declaration)
Public Sub Update ( _
	data As DoubleVector, _
	mu0 As Double _
)
Visual C++
public:
void Update(
	DoubleVector^ data, 
	double mu0
)

Parameters

data
Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of observed values.
mu0
Type: System..::.Double
The population mean.

Remarks

The sample mean, sample standard deviation, and sample size are computed from the given data vector. Missing values are ignored.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentException Thrown if data has length of zero after removing missing values.

See Also