Computes the Hotelling's T2 statistic for a new sample.
Namespace:
CenterSpace.NMath.StatsAssembly: 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
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.MismatchedSizeException | Thrown if the sample's length is not consistent with the model. |