Calculates the sum of the elements in a vector 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 double SumIf( DoubleVector data, StatsFunctions..::.LogicalDoubleFunction function ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function SumIf ( _ data As DoubleVector, _ function As StatsFunctions..::.LogicalDoubleFunction _ ) As Double |
| Visual C++ |
|---|
public: static double SumIf( DoubleVector^ data, StatsFunctions..::.LogicalDoubleFunction^ function ) |
Parameters
- data
- Type: CenterSpace.NMath.Core..::.DoubleVector
A vector.
- function
- Type: CenterSpace.NMath.Stats..::.StatsFunctions..::.LogicalDoubleFunction
A function that takes a double and returns a boolean.