ILNumerics Ultimate VS

Statisticsnansum Method (InArraySingle, Int32)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
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

public static RetArray<float> nansum(
	InArray<float> A,
	int dim = -1
)

Parameters

A
Type: ILNumericsInArraySingle
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: RetArraySingle
Sum 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

Reference