Computes the Hotelling's T2 statistic for a new sample.

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

Syntax

C#
public double HotellingsT2(
	DoubleVector newSample
)
Visual Basic (Declaration)
Public Function HotellingsT2 ( _
	newSample As DoubleVector _
) As Double
Visual C++
public:
double HotellingsT2(
	DoubleVector^ newSample
)

Parameters

newSample
Type: CenterSpace.NMath.Core..::.DoubleVector
The new sample.

Return Value

Hotelling's T2 statistic for the sample.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.MismatchedSizeExceptionThrown if the sample's length is not consistent with the model.

See Also