Click or drag to resize

NMathFunctionsCountIf(Double, FuncDouble, 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(
	double[] data,
	Func<double, bool> function
)

Parameters

data  Double
An array of doubles.
function  FuncDouble, Boolean
A function that takes a double and returns a boolean.

Return Value

Int32
A count.
See Also