| DFNumericColumnApply(String, FuncDouble, Double, Double, DoubleVector) Method |
Returns a new column with the given name and same size as this column,
whose values are the result of applying the given binary function to
each element of this column.
The first parameter to the binary function is an element of self; the
second parameter is the corresponding element of the passed vector.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DFNumericColumn Apply(
string name,
Func<double, double, double> function,
DoubleVector v
)
Public Function Apply (
name As String,
function As Func(Of Double, Double, Double),
v As DoubleVector
) As DFNumericColumn
public:
DFNumericColumn^ Apply(
String^ name,
Func<double, double, double>^ function,
DoubleVector^ v
)
member Apply :
name : string *
function : Func<float, float, float> *
v : DoubleVector -> DFNumericColumn
Parameters
- name String
-
Name for the new column.
- function FuncDouble, Double, Double
-
A delegate object representing a function that
takes two double parameters and returns a double.
- v DoubleVector
- A vector of parameters to function.
Return Value
DFNumericColumnA column with the same name and size as self and with
c[i] = function( this[i], v[i] )Exceptions See Also