tuple_deviationtuple_deviationTupleDeviationTupleDeviationtuple_deviation (Operator)

Name

tuple_deviationtuple_deviationTupleDeviationTupleDeviationtuple_deviation — Return the standard deviation of the elements of a tuple.

Signature

tuple_deviation( : : Tuple : Deviation)

Herror tuple_deviation(const Hlong Tuple, double* Deviation)

Herror T_tuple_deviation(const Htuple Tuple, Htuple* Deviation)

void TupleDeviation(const HTuple& Tuple, HTuple* Deviation)

HTuple HTuple::TupleDeviation() const

static void HOperatorSet.TupleDeviation(HTuple tuple, out HTuple deviation)

HTuple HTuple.TupleDeviation()

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

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

Description

tuple_deviationtuple_deviationTupleDeviationTupleDeviationTupleDeviationtuple_deviation calculates the standard deviation of all elements of the input tuple TupleTupleTupleTupletupletuple. It returns the deviation as a floating point number in the output parameter DeviationDeviationDeviationDeviationdeviationdeviation. 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_deviationtuple_deviationTupleDeviationTupleDeviationTupleDeviationtuple_deviation, which can be used in an expression in the following syntax:

Deviation := deviation(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.

DeviationDeviationDeviationDeviationdeviationdeviation (output_control)  number(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Standard deviation of tuple elements.

Alternatives

tuple_meantuple_meanTupleMeanTupleMeanTupleMeantuple_mean, tuple_sumtuple_sumTupleSumTupleSumTupleSumtuple_sum, tuple_mintuple_minTupleMinTupleMinTupleMintuple_min, tuple_maxtuple_maxTupleMaxTupleMaxTupleMaxtuple_max, tuple_lengthtuple_lengthTupleLengthTupleLengthTupleLengthtuple_length, tuple_mediantuple_medianTupleMedianTupleMedianTupleMediantuple_median

Module

Foundation