Herror ::tuple_sum (
    const HTuple &Tuple,
    double *Sum
)
Herror ::tuple_sum (
    const HTuple &Tuple,
    HTuple *Sum
)

Return the sum of all elements of a tuple.

::tuple_sum returns the sum of all elements of the input tuple Tuple. All elements of Tuple either have to be strings or numbers (integer or floating point numbers). It is not allowed to mix strings with numerical values. The result parameter Sum will contain a floating point number, if at least one element of Tuple is a floating point number. If all elements of Tuple are integer numbers the resulting sum will also be an integer number. If Tuple contains strings, the concatenation will be used for building the sum.


Parameters

Tuple (input_control)
number(-array) -> HTuple.long / double / char *
Input tuple.

Sum (output_control)
number(-array) -> (HTuple.) double *
Sum of tuple elements.


Alternatives

::tuple_mean, ::tuple_deviation, ::tuple_min, ::tuple_max, ::tuple_length


Module

Operators not requiring licensing



Copyright © 1996-2002 MVTec Software GmbH