Click or drag to resize

NMathFunctionsNaNSumIf(IDFColumn, FuncInt32, Boolean) Method

Calculates the sum of the elements in a column that return true when a given logical function is applied to values that are not missing.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static int NaNSumIf(
	IDFColumn data,
	Func<int, bool> function
)

Parameters

data  IDFColumn
A column.
function  FuncInt32, Boolean
A function that takes an integer and returns a boolean.

Return Value

Int32
The sum of the elements where function returns true.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if data is not a DFIntColumn or cannot be converted to integers.
See Also