| NMathFunctionsIf(IDFColumn, FuncInt32, Boolean, Int32) Method |
Creates a new column by applying a logical function to the elements of a
column. Elements in the original column that return true are set to the given true value
in the new column; elements that return false are not changed.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static IDFColumn If(
IDFColumn data,
Func<int, bool> function,
int ifTrue
)
Public Shared Function If (
data As IDFColumn,
function As Func(Of Integer, Boolean),
ifTrue As Integer
) As IDFColumn
public:
static IDFColumn^ If(
IDFColumn^ data,
Func<int, bool>^ function,
int ifTrue
)
static member If :
data : IDFColumn *
function : Func<int, bool> *
ifTrue : int -> IDFColumn
Parameters
- data IDFColumn
- A column.
- function FuncInt32, Boolean
- A function that takes an integer and returns a boolean.
- ifTrue Int32
- Value in case of true.
Return Value
IDFColumnA new column.
Exceptions See Also