Click or drag to resize

NMathFunctionsMean(DoubleVector) Method

Calculates the mean of a given vector's elements.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double Mean(
	DoubleVector v
)

Parameters

v  DoubleVector
A vector.

Return Value

Double
Mean.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if v has zero length.
Remarks
mean = (v[0] + v[1] + ...) / n
See Also