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.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public DFNumericColumn Apply(
	string name,
	NMathFunctions..::.DoubleBinaryFunction function,
	DoubleVector v
)
Visual Basic (Declaration)
Public Function Apply ( _
	name As String, _
	function As NMathFunctions..::.DoubleBinaryFunction, _
	v As DoubleVector _
) As DFNumericColumn
Visual C++
public:
DFNumericColumn^ Apply(
	String^ name, 
	NMathFunctions..::.DoubleBinaryFunction^ function, 
	DoubleVector^ v
)

Parameters

name
Type: System..::.String
Name for the new column.
function
Type: CenterSpace.NMath.Core..::.NMathFunctions..::.DoubleBinaryFunction
A delegate object representing a function that takes two double parameters and returns a double.
v
Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of parameters to function.

Return Value

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

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.MismatchedSizeExceptionThrown if the passed vector is not the same length as this column.

See Also