tuple_meantuple_meanTupleMeanTupleMeantuple_mean (Operator)

Name

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

Signature

tuple_mean( : : Tuple : Mean)

Herror tuple_mean(const Hlong Tuple, double* Mean)

Herror T_tuple_mean(const Htuple Tuple, Htuple* Mean)

void TupleMean(const HTuple& Tuple, HTuple* Mean)

HTuple HTuple::TupleMean() const

static void HOperatorSet.TupleMean(HTuple tuple, out HTuple mean)

HTuple HTuple.TupleMean()

def tuple_mean(tuple: MaybeSequence[Union[float, int]]) -> float

Description

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

Mean := mean(Tuple)

Execution Information

Parameters

TupleTupleTupleTupletupletuple (input_control)  number(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double)

Input tuple.

MeanMeanMeanMeanmeanmean (output_control)  number HTuplefloatHTupleHtuple (real) (double) (double) (double)

Mean value of tuple elements.

Alternatives

tuple_deviationtuple_deviationTupleDeviationTupleDeviationTupleDeviationtuple_deviation, tuple_sumtuple_sumTupleSumTupleSumTupleSumtuple_sum, tuple_mintuple_minTupleMinTupleMinTupleMintuple_min, tuple_maxtuple_maxTupleMaxTupleMaxTupleMaxtuple_max, tuple_lengthtuple_lengthTupleLengthTupleLengthTupleLengthtuple_length, tuple_mediantuple_medianTupleMedianTupleMedianTupleMediantuple_median

Module

Foundation