Stats.Mean Method

Definition

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Mean(DateTime[]) Returns the mean of the elements of an array of DateTime values.
Mean(Double[]) Returns the mean of the elements of an array.
Mean(IEnumerable<Double>) Returns the mean of the elements of a sequence.
Mean(Int32[]) Returns the mean of the elements of an array.
Mean<T>(Vector<T>) Returns the mean of the elements of a vector.

Stats.Mean(DateTime[])

Returns the mean of the elements of an array of DateTime values.
C#
public static DateTime Mean(
	DateTime[] values
)

Parameters

values  DateTime[]
A DateTime array.

Return Value

DateTime
The mean of the elements of values.

Remarks

The mean is a DateTime value.

Exceptions

ArgumentNullExceptionvalues is null.

Stats.Mean(Double[])

Returns the mean of the elements of an array.
C#
public static double Mean(
	double[] values
)

Parameters

values  Double[]
A Double array.

Return Value

Double
The mean of the elements of values.

Exceptions

ArgumentNullExceptionvalues is null.

Stats.Mean(IEnumerable<Double>)

Returns the mean of the elements of a sequence.
C#
public static double Mean(
	IEnumerable<double> values
)

Parameters

values  IEnumerable<Double>
An object that implements IEnumerable<Double>.

Return Value

Double
The mean of the elements of values.

Exceptions

ArgumentNullExceptionvalues is null.

Stats.Mean(Int32[])

Returns the mean of the elements of an array.
C#
public static double Mean(
	int[] values
)

Parameters

values  Int32[]
An Int32 array.

Return Value

Double
The mean of the elements of values.

Remarks

The mean is a Double value.

Exceptions

ArgumentNullExceptionvalues is null.

Stats.Mean<T>(Vector<T>)

Returns the mean of the elements of a vector.
C#
public static double Mean<T>(
	this Vector<T> values
)

Parameters

values  Vector<T>
A vector.

Type Parameters

T

Return Value

Double
The mean of the elements of values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

ArgumentNullExceptionvalues is null.

See Also