public sum(ignoreNaN as Boolean, where as Boolean[] = null) as Object
Masked/NaN-aware global sum, retaining the numeric type of this array.
| Parameter | Description |
|---|---|
ignoreNaN | Skip NaN values; false propagates them for floating data. |
where | Optional flat selection mask matching the source size. |
Typed scalar boxed as Object, as with sum(); no observations gives zero.
total = data.sum(ignoreNaN=true)