Operator Reference
tuple_mean (Operator)
tuple_mean
— Return the mean value of a tuple of numbers.
Signature
Description
tuple_mean
returns the mean value of all elements
of the input tuple Tuple
as a floating point
number in the output parameter Mean
. The input tuple
may only consist of numbers (integer or floating point numbers).
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_mean
,
which can be used in an expression in the following syntax:
Mean := mean(Tuple)
Execution Information
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
Tuple
(input_control) number(-array) →
(integer / real)
Input tuple.
Mean
(output_control) number →
(real)
Mean value of tuple elements.
Alternatives
tuple_deviation
,
tuple_sum
,
tuple_min
,
tuple_max
,
tuple_length
,
tuple_median
Module
Foundation