Method Median
- Namespace
- Gamelogic.Extensions.Algorithms
- Assembly
- Gamelogic.Extensions.dll
Median(IEnumerable<float>)
Makes a copy of the list, and computes the median.
[Version(4, 5, 0)]
public static float Median(this IEnumerable<float> list)
Parameters
listIEnumerable<float>The list of values to evaluate.
Returns
- float
If you don't mind the elements being reordered, use MedianPartition(IList<float>) instead for better performance.