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