Click or drag to resize

NMathFunctionsNaNSumIf(Double, FuncDouble, Boolean) Method

Calculates the sum of the elements in an array that are not NaN 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 NaNSumIf(
	double[] data,
	Func<double, bool> function
)

Parameters

data  Double
An array of doubles.
function  FuncDouble, Boolean
A function that takes a double and returns a boolean.

Return Value

Double
A sum.
See Also