| NMathFunctionsSumIf(Int32, FuncDouble, Boolean, Int32) Method |
Calculates the sum of elements in one array based on evaluating a logical function on
corresponding elements in another data.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static int SumIf(
int[] data,
Func<double, bool> function,
int[] sum
)
Public Shared Function SumIf (
data As Integer(),
function As Func(Of Double, Boolean),
sum As Integer()
) As Integer
public:
static int SumIf(
array<int>^ data,
Func<double, bool>^ function,
array<int>^ sum
)
static member SumIf :
data : int[] *
function : Func<float, bool> *
sum : int[] -> int
Parameters
- data Int32
- Evaluation data.
- function FuncDouble, Boolean
- A function that takes a double and returns a boolean.
- sum Int32
- Sum data.
Return Value
Int32A sum.
Exceptions See Also