Click or drag to resize

NMathFunctionsCountIf(IDFColumn, FuncInt32, Boolean) Method

Calculates how many elements in a column return true when a logical function is applied.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static int CountIf(
	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
A count.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if data is not a DFIntColumn or cannot be converted to integers.
See Also