Calculates how many elements in an array return true when a logical function is applied.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public static int CountIf( int[] data, StatsFunctions..::.LogicalIntFunction function ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function CountIf ( _ data As Integer(), _ function As StatsFunctions..::.LogicalIntFunction _ ) As Integer |
| Visual C++ |
|---|
public: static int CountIf( array<int>^ data, StatsFunctions..::.LogicalIntFunction^ function ) |
Parameters
- data
- Type: array<
System..::.Int32
>[]()[]
An array of integers.
- function
- Type: CenterSpace.NMath.Stats..::.StatsFunctions..::.LogicalIntFunction
A function that takes an integer and returns a boolean.