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