  | NMathFunctionsSumIf(DoubleVector, FuncDouble, Boolean) Method | 
            Calculates the sum of the elements in a vector that return true when a given
            logical function is applied.
            
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic static double SumIf(
	DoubleVector data,
	Func<double, bool> function
)
Public Shared Function SumIf ( 
	data As DoubleVector,
	function As Func(Of Double, Boolean)
) As Double
public:
static double SumIf(
	DoubleVector^ data, 
	Func<double, bool>^ function
)
static member SumIf : 
        data : DoubleVector * 
        function : Func<float, bool> -> float Parameters
- data  DoubleVector
 - A vector.
 - function  FuncDouble, Boolean
 - A function that takes a double and returns a boolean.
 
Return Value
DoubleThe sum of the elements where 
function returns 
true.
See Also