| NMathFunctionsCountIf(Int32, FuncDouble, Boolean) Method |
Calculates how many elements in an array return true when a logical function is applied.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static int CountIf(
int[] data,
Func<double, bool> function
)
Public Shared Function CountIf (
data As Integer(),
function As Func(Of Double, Boolean)
) As Integer
public:
static int CountIf(
array<int>^ data,
Func<double, bool>^ function
)
static member CountIf :
data : int[] *
function : Func<float, bool> -> int
Parameters
- data Int32
- An array of integers.
- function FuncDouble, Boolean
- A function that takes a double and returns a boolean.
Return Value
Int32A count.
Remarks Integer values will be promoted to floating-point values for the calculation.
The array will not be altered.
See Also