ClassesClassesClassesClasses | | | | Operators

tuple_cumultuple_cumulTupleCumultuple_cumulTupleCumulTupleCumul (Operator)


tuple_cumultuple_cumulTupleCumultuple_cumulTupleCumulTupleCumul — Calculate the cumulative sums of a tuple.


tuple_cumul( : : Tuple : Cumul)

Herror tuple_cumul(const Hlong Tuple, double* Cumul)

Herror T_tuple_cumul(const Htuple Tuple, Htuple* Cumul)

Herror tuple_cumul(const HTuple& Tuple, double* Cumul)

Herror tuple_cumul(const HTuple& Tuple, HTuple* Cumul)

void TupleCumul(const HTuple& Tuple, HTuple* Cumul)

HTuple HTuple::TupleCumul() const

void HOperatorSetX.TupleCumul(
[in] VARIANT Tuple, [out] VARIANT* Cumul)

VARIANT HTupleX.TupleCumul([in] VARIANT Tuple)

static void HOperatorSet.TupleCumul(HTuple tuple, out HTuple cumul)

HTuple HTuple.TupleCumul()


tuple_cumultuple_cumulTupleCumultuple_cumulTupleCumulTupleCumul returns the different cumulative sums of the corresponding elements of the input tuple TupleTupleTupleTupleTupletuple, i.e. the i-th element of the result tuple CumulCumulCumulCumulCumulcumul is the sum of the first i elements of the input tuple TupleTupleTupleTupleTupletuple. For example, if TupleTupleTupleTupleTupletuple contains the values [1,2,3,4], the output tuple CumulCumulCumulCumulCumulcumul will contain the values [1,3,6,10]. All elements of TupleTupleTupleTupleTupletuple must be numbers (integer or floating point numbers). Each element of the result tuple CumulCumulCumulCumulCumulcumul will contain a floating point number if at least one element of the caluculation is a floating point number. If all elements of the calculation are integer numbers the resulting sum in CumulCumulCumulCumulCumulcumul will also be an integer number.



TupleTupleTupleTupleTupletuple (input_control)  number(-array) HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Input tuple.

CumulCumulCumulCumulCumulcumul (output_control)  number(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Cumulative sum of the corresponding tuple elements.



See also

tuple_min2tuple_min2TupleMin2tuple_min2TupleMin2TupleMin2, tuple_max2tuple_max2TupleMax2tuple_max2TupleMax2TupleMax2, tuple_addtuple_addTupleAddtuple_addTupleAddTupleAdd



ClassesClassesClassesClasses | | | | Operators