Click or drag to resize

NMathFunctionsCountIf(Int32, FuncInt32, Boolean) Method

Calculates how many elements in an array 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(
	int[] data,
	Func<int, bool> function
)

Parameters

data  Int32
An array of integers.
function  FuncInt32, Boolean
A function that takes an integer and returns a boolean.

Return Value

Int32
A count.
See Also