Click or drag to resize

NMathFunctionsMean(Int32) Method

Calculates the arithmetic mean of the given data.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double Mean(
	int[] data
)

Parameters

data  Int32
An array of doubles.

Return Value

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