| DFStringColumnApply(String, FuncDouble, Boolean) Method |
Returns a new numeric 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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DFNumericColumn Apply(
string name,
Func<double, bool> function
)
Public Function Apply (
name As String,
function As Func(Of Double, Boolean)
) As DFNumericColumn
public:
DFNumericColumn^ Apply(
String^ name,
Func<double, bool>^ function
)
member Apply :
name : string *
function : Func<float, bool> -> DFNumericColumn
Parameters
- name String
-
Name for the new column.
- function FuncDouble, Boolean
-
A delegate object representing a function that takes a single double
parameter and returns a bool.
Return Value
DFNumericColumn
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.
An attempt will be made to convert each value in this column to a
double to perform the operation. No data in this column will
be changed.
See Also