JCL Help:MedianUnsorted

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the median of an (unsorted) array of floats.


Pascal

 function MedianUnsorted(const X: TDynFloatArray): Float;


Parameters

Parameters Description
const X: TDynFloatArray The array for which you want the median value.


Return Value

The median value of the supplied array. If the array is empty an EMathError exception is raised.


Description

Median returns the median (2nd quartiles) of an array of floats. The supplied array cannot be empty. The median of a set of values is the value which evenly separates the set of values so that one half of the set is greater than the median.


About

Unit

JclStatistics


Donator

ESB Consultancy


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page