| DFNumericColumnTransform(FuncDouble) Method |
Modifies the elements of this column by applying the given no-argument function
to each element.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DFNumericColumn Transform(
Func<double> function
)
Public Function Transform (
function As Func(Of Double)
) As DFNumericColumn
public:
DFNumericColumn^ Transform(
Func<double>^ function
)
member Transform :
function : Func<float> -> DFNumericColumn
Parameters
- function FuncDouble
- A delegate object representing a function that
takes no parameters and returns a double.
Return Value
DFNumericColumnA reference to self.
Remarks For example:
RandGenMTwist rand = new RandGenMTwist();
DoubleVector randVec = new DoubleVector( 20, rand );
...
randVec.Transform( new NMathFunctions.DoubleFunction( rand.NextDouble );
...
See Also