Name
tuple_mediantuple_medianTupleMediantuple_medianTupleMedianTupleMedian — Return the median of the elements of a tuple.
Herror tuple_median(const Hlong Tuple, Hlong* Median)
Herror T_tuple_median(const Htuple Tuple, Htuple* Median)
Herror tuple_median(const HTuple& Tuple, Hlong* Median)
tuple_mediantuple_medianTupleMediantuple_medianTupleMedianTupleMedian calculates the median of all elements of the
input tuple TupleTupleTupleTupleTupletuple and returns it in the output parameter
MedianMedianMedianMedianMedianmedian. The input tuple may only consist of numbers
(integer or floating point numbers). The median is defined as the
element with rank n/2 (see tuple_select_ranktuple_select_rankTupleSelectRanktuple_select_rankTupleSelectRankTupleSelectRank).
Exception: Empty input tuple
If the input tuple is empty, an exception is raised.
HDevelop In-line Operation
HDevelop provides an in-line operation for tuple_mediantuple_medianTupleMediantuple_medianTupleMedianTupleMedian,
which can be used in an expression in the following syntax:
Median := median(Tuple)
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Median of the tuple elements.
tuple_select_ranktuple_select_rankTupleSelectRanktuple_select_rankTupleSelectRankTupleSelectRank
tuple_meantuple_meanTupleMeantuple_meanTupleMeanTupleMean,
tuple_mintuple_minTupleMintuple_minTupleMinTupleMin,
tuple_maxtuple_maxTupleMaxtuple_maxTupleMaxTupleMax
Foundation