Calculates the sum of a given vector's elements that are not
equal to NaN.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static float NaNSum( FloatVector v ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function NaNSum ( _ v As FloatVector _ ) As Single |
| Visual C++ |
|---|
public: static float NaNSum( FloatVector^ v ) |
Parameters
- v
- Type: CenterSpace.NMath.Core..::.FloatVector
A vector.
Return Value
The sum of the elements in v that are not NaN.
Remarks
sum = v[0] + v[1] + v[2]... + v[n]