Computes the mean of each of the matrix columns.

Namespace:  CenterSpace.NMath.Core
Assembly:  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
)

Return Value

A vector.

Remarks

v[j] = (A[0,j] + A[1,j] + ... A[i,j]) / i

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentException Thrown if A has zero rows.

See Also