ILNumerics - Technical Application Development
Assembly: ILNumerics.Toolboxes.Statistics (in ILNumerics.Toolboxes.Statistics.dll) Version: 5.5.0.0 (5.5.7503.3146)
Mean of non-NaN elements along specified dimension.
Mean of array along specified 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: ILNumericsInArraySingle
Input array. - dim (Optional)
- Type: SystemInt32
[Optional] Index of the dimension to work along. If omitted operates along the first non singleton dimension (i.e. != 1).
Return Value
Type: RetArraySingleMean of non-NaN elements along specified dimension.
Remarks
The return array has the same shape as A, but the selected dimension is reduced to length 1. If A is scalar, an scalar array will be returned. On empty input, the output will be empty.
If A contains an all NaN vector along the specified dimension the resulting value will by NaN (as the nansum of these elements is 0 divided by 0 elements).
[ILNumerics Statistics Toolbox]
See Also