  | NMathFunctionsSumIf(Int32, FuncInt32, 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
Syntaxpublic static int SumIf(
	int[] data,
	Func<int, bool> function,
	int[] sum
)
Public Shared Function SumIf ( 
	data As Integer(),
	function As Func(Of Integer, Boolean),
	sum As Integer()
) As Integer
public:
static int SumIf(
	array<int>^ data, 
	Func<int, bool>^ function, 
	array<int>^ sum
)
static member SumIf : 
        data : int[] * 
        function : Func<int, bool> * 
        sum : int[] -> int Parameters
- data  Int32
 - Evaluation data.
 - function  FuncInt32, Boolean
 - A function that takes an integer and returns a boolean.
 - sum  Int32
 - Sum data.
 
Return Value
Int32A sum.
Exceptions
See Also