| NMathFunctionsNaNSumIf(DoubleVector, FuncDouble, Boolean, DoubleVector) Method |
Calculates the sum of elements in one vector based on evaluating a logical function on
corresponding elements in another vector that are not NaN.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static double NaNSumIf(
DoubleVector data,
Func<double, bool> function,
DoubleVector sum
)
Public Shared Function NaNSumIf (
data As DoubleVector,
function As Func(Of Double, Boolean),
sum As DoubleVector
) As Double
public:
static double NaNSumIf(
DoubleVector^ data,
Func<double, bool>^ function,
DoubleVector^ sum
)
static member NaNSumIf :
data : DoubleVector *
function : Func<float, bool> *
sum : DoubleVector -> float
Parameters
- data DoubleVector
- Evaluation vector.
- function FuncDouble, Boolean
- A function that takes a double and returns a boolean.
- sum DoubleVector
- Sum vector.
Return Value
DoubleA sum.
Exceptions Exception | Condition |
---|
MismatchedSizeException |
Thrown if data and sum do not have the same number of elements that are
not NaN.
|
See Also