Stats.Mean Method
Definition
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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( | 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. |
Mean(DateTime[])
Returns the mean of the elements of an array of DateTime values.
public static DateTime Mean(
DateTime[] values
)
Parameters
- values DateTime[]
- A DateTime array.
Return Value
DateTimeThe mean of the elements of values.
Remarks
The mean is a DateTime value.
Exceptions
ArgumentNullException | values is null. |
Mean(Double[])
Returns the mean of the elements of an array.
public static double Mean(
double[] values
)
Parameters
- values Double[]
- A Double array.
Return Value
DoubleThe mean of the elements of values.
Exceptions
ArgumentNullException | values is null. |
Mean(IEnumerable<Double>)
Returns the mean of the elements of a sequence.
public static double Mean(
IEnumerable<double> values
)
Parameters
- values IEnumerable<Double>
- An object that implements IEnumerable<Double>.
Return Value
DoubleThe mean of the elements of values.
Exceptions
ArgumentNullException | values is null. |
Mean(Int32[])
Returns the mean of the elements of an array.
public static double Mean(
int[] values
)
Parameters
- values Int32[]
- An Int32 array.
Return Value
DoubleThe mean of the elements of values.
Remarks
The mean is a Double value.
Exceptions
ArgumentNullException | values is null. |
Mean<T>(Vector<T>)
Returns the mean of the elements of a vector.
public static double Mean<T>(
this Vector<T> values
)
Parameters
- values Vector<T>
- A vector.
Type Parameters
- T
Return Value
DoubleThe 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
ArgumentNullException | values is null. |