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.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public DFIntColumn Apply( string name, StatsFunctions..::.LogicalIntFunction function ) |
| Visual Basic (Declaration) |
|---|
Public Function Apply ( _ name As String, _ function As StatsFunctions..::.LogicalIntFunction _ ) As DFIntColumn |
| Visual C++ |
|---|
public: DFIntColumn^ Apply( String^ name, StatsFunctions..::.LogicalIntFunction^ function ) |
Parameters
- name
- Type: System..::.String
Name for the new column.
- function
- Type: CenterSpace.NMath.Stats..::.StatsFunctions..::.LogicalIntFunction
A delegate object representing a function that takes a single int 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.