Creates an array of boolean values determined by applying a logical function to the elements of a vector.

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

Syntax

C#
public static bool[] If(
	DoubleVector data,
	StatsFunctions..::.LogicalDoubleFunction function
)
Visual Basic (Declaration)
Public Shared Function If ( _
	data As DoubleVector, _
	function As StatsFunctions..::.LogicalDoubleFunction _
) As Boolean()
Visual C++
public:
static array<bool>^ If(
	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 boolean array.

See Also