Computes the variance of the matrix columns.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static DoubleComplexVector Variance( DoubleComplexMatrix A ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Variance ( _ A As DoubleComplexMatrix _ ) As DoubleComplexVector |
| Visual C++ |
|---|
public: static DoubleComplexVector^ Variance( DoubleComplexMatrix^ A ) |
Parameters
- A
- Type: CenterSpace.NMath.Core..::.DoubleComplexMatrix
A matrix.
Return Value
A new vector.
Remarks
v[j] = (System.Math.pow(A[0,j] - mean, 2) + System.Math.pow(A[i,j] - mean, 2) + ... ) / n
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if A has zero rows. |