Stats.Median 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
Median(Double[]) | Returns the median of the elements of an array. |
Median(Int32[]) | Returns the median of the elements of an array. |
Median<T>(IList<T>) | Returns the median of the elements of an array. |
Median<T>(Vector<T>) | Returns the median of the elements of a vector. |
Median(Double[])
Returns the median of the elements of an array.
public static double Median(
double[] values
)
Parameters
- values Double[]
- A Double array.
Return Value
DoubleThe median of the elements of values.
Exceptions
ArgumentNullException | values is null. |
Median<T>(IList<T>)
Returns the median of the elements of an array.
public static T Median<T>(
IList<T> values
)
where T : Object, IComparable<T>
Parameters
- values IList<T>
- An Int32 array.
Type Parameters
- T
Return Value
TThe median of the elements of values.
Exceptions
ArgumentNullException | values is null. |
Median(Int32[])
Returns the median of the elements of an array.
public static double Median(
int[] values
)
Parameters
- values Int32[]
- An Int32 array.
Return Value
DoubleThe median of the elements of values.
Exceptions
ArgumentNullException | values is null. |
Median<T>(Vector<T>)
Returns the median of the elements of a vector.
public static T Median<T>(
this Vector<T> values
)
Parameters
- values Vector<T>
- A vector.
Type Parameters
- T
Return Value
TThe median 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. |