Skip to content

tuple_meanTupleMeanTupleMeantuple_meantuple_mean🔗

Short description🔗

tuple_meanTupleMeanTupleMeantuple_meantuple_mean — Return the mean value of a tuple of numbers.

Signature🔗

tuple_mean( number Tuple, out number Mean )void TupleMean( const HTuple& Tuple, HTuple* Mean )static void HOperatorSet.TupleMean( HTuple tuple, out HTuple mean )def tuple_mean( tuple: MaybeSequence[Union[float, int]] ) -> float

Herror tuple_mean( const Hlong Tuple, double* Mean )

Herror T_tuple_mean( const Htuple Tuple, Htuple* Mean )

HTuple HTuple::TupleMean( ) const

HTuple HTuple.TupleMean( )

Description🔗

tuple_meanTupleMean returns the mean value of all elements of the input tuple Tupletupletuple as a floating point number in the output parameter Meanmeanmean. 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_meanTupleMean, which can be used in an expression in the following syntax:

Mean := mean(Tuple)

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

Tupletupletuple (input_control) number(-array) → (integer / real)HTuple (Hlong / double)HTuple (int / long / double)MaybeSequence[Union[float, int]]Htuple (Hlong / double)

Input tuple.

Meanmeanmean (output_control) number → (real)HTuple (double)HTuple (double)floatHtuple (double)

Mean value of tuple elements.

Combinations with other operators🔗

Combinations

Alternatives

tuple_deviationTupleDeviation, tuple_sumTupleSum, tuple_minTupleMin, tuple_maxTupleMax, tuple_lengthTupleLength, tuple_medianTupleMedian

Module🔗

Foundation