Returns a new column with the given name and size containing the items in this column that evaluate to true using the given logical function.

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

Syntax

C#
public DFNumericColumn Apply(
	string name,
	StatsFunctions..::.LogicalDoubleFunction function
)
Visual Basic (Declaration)
Public Function Apply ( _
	name As String, _
	function As StatsFunctions..::.LogicalDoubleFunction _
) As DFNumericColumn
Visual C++
public:
DFNumericColumn^ Apply(
	String^ name, 
	StatsFunctions..::.LogicalDoubleFunction^ function
)

Parameters

name
Type: System..::.String
Name for the new column.
function
Type: CenterSpace.NMath.Stats..::.StatsFunctions..::.LogicalDoubleFunction
A delegate object representing a function that takes a single double parameter and returns a bool.

Return Value

A new column with the given name containing the items in this column that evaluate to true using the given logical function.

Remarks

For example, if you apply a function that returns true if a number is greater than two to a column containing 1, 3, 4, 5, 3, 2, 4, a new column containing 3, 4, 5, 3, 4 is returned.

See Also