Next: Parameters
Up: Reduction Operations
Previous: High-level Reduction Operations
Contents
It is often convenient to assign a weight to each value .
In this case, the basic reduction operations are redefined as follows.
- count:
- The number of values
- sum:
- The sum of the values
- product:
- The product of the values
- sum2:
- The sum of the squares of the values
- sumabs:
- The sum of the absolute values
- sumabs2:
- The sum of the squares of the absolute values
- min:
- The minimum of the values
- max:
- The maximum of the values
- maxabs:
- The maximum of the absolute values
The notation
means: ``The minimum of
where runs over all values where ''. The definition of
the high-level reduction operations does not change when weights are
present.
Next: Parameters
Up: Reduction Operations
Previous: High-level Reduction Operations
Contents
|