Computes the mean of each of the matrix columns.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static DoubleComplexVector Mean( DoubleComplexMatrix A ) |
| Visual Basic (Declaration) |
|---|
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. |