ILNumerics - Technical Application Development
Assembly: ILNumerics.Toolboxes.Statistics (in ILNumerics.Toolboxes.Statistics.dll) Version: 5.5.0.0 (5.5.7503.3146)
Sum of elements along specified of first non singleton dimension, ignoring nan values.
Sums the elements along first non singleton dimension ignoring NaN values.
[ILNumerics Statistics Toolbox]
Namespace: ILNumerics.Toolboxes
Assembly: ILNumerics.Toolboxes.Statistics (in ILNumerics.Toolboxes.Statistics.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax
Parameters
- A
- Type: ILNumericsInArraycomplex
Input array. - dim (Optional)
- Type: SystemInt32
[Optional] Index of the dimension to operate along. If omitted operates along the first non singleton dimension (i.e. != 1).
Return Value
Type: RetArraycomplexSum of elements along specified of first non singleton dimension, ignoring nan values.
Remarks
The array returned will have the same size as A, with the specified or first non singleton dimension reduced to the length 1. It will contain the sum of all elements along that dimension after removing NaN values respectively.
If A contains an all NaN vector along dim , the resulting sum will be 0 - not NaN! This corresponds to the sum of an empty vector.
[ILNumerics Statistics Toolbox]
See Also