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