Returns the mean of the elements of a vector.

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Shared Function Mean ( _
	data As Vector _
) As Double
C#
public static double Mean (
	Vector data
)
C++
public:
static double Mean (
	Vector^ data
)

Parameters

data (Extreme.Mathematics.LinearAlgebra.Vector)
A Vector.

Return Value

The mean of the elements of data.

Exceptions

ExceptionCondition
ArgumentNullExceptiondata is nullNothingnullptr.