Returns a new column with the given name and same size as this column, whose values are the result of applying the given unary function to each element of this column.

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

Syntax

C#
public DFBoolColumn Apply(
	string name,
	NMathFunctions..::.BooleanUnaryFunction function
)
Visual Basic (Declaration)
Public Function Apply ( _
	name As String, _
	function As NMathFunctions..::.BooleanUnaryFunction _
) As DFBoolColumn
Visual C++
public:
DFBoolColumn^ Apply(
	String^ name, 
	NMathFunctions..::.BooleanUnaryFunction^ function
)

Parameters

name
Type: System..::.String
Name for the new column.
function
Type: CenterSpace.NMath.Core..::.NMathFunctions..::.BooleanUnaryFunction
A delegate object representing a function that takes a single bool parameter and returns a bool.

Return Value

A new column with the same name and size as self and with c[i]=function( this[i] ).

See Also