Calculates how many elements in a vector return true when a logical function is applied to the elements that are not NaN.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public static int NaNCountIf(
	DoubleVector data,
	StatsFunctions..::.LogicalDoubleFunction function
)
Visual Basic (Declaration)
Public Shared Function NaNCountIf ( _
	data As DoubleVector, _
	function As StatsFunctions..::.LogicalDoubleFunction _
) As Integer
Visual C++
public:
static int NaNCountIf(
	DoubleVector^ data, 
	StatsFunctions..::.LogicalDoubleFunction^ function
)

Parameters

data
Type: CenterSpace.NMath.Core..::.DoubleVector
A vector.
function
Type: CenterSpace.NMath.Stats..::.StatsFunctions..::.LogicalDoubleFunction
A function that takes a double and returns a boolean.

Return Value

A count.

See Also