Click or drag to resize

NMathFunctionsNaNSum(FloatVector) Method

Calculates the sum of a given vector's elements that are not equal to NaN.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static float NaNSum(
	FloatVector v
)

Parameters

v  FloatVector
A vector.

Return Value

Single
The sum of the elements in v that are not NaN.
Remarks
sum = v[0] + v[1] + v[2]... + v[n]
See Also