Click or drag to resize

NMathFunctionsSumIf(IDFColumn, FuncDouble, Boolean) Method

Calculates the sum of the elements in a column that return true when a given logical function is applied.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double SumIf(
	IDFColumn data,
	Func<double, bool> function
)

Parameters

data  IDFColumn
A column.
function  FuncDouble, Boolean
A function that takes a double and returns a boolean.

Return Value

Double
The sum of the elements where function returns true.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if data is not numeric.
See Also