 | DoubleVectorTransform(FuncDouble, Double) Method |
Modifies the elements of this vector by applying the given unary function to
each element.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic DoubleVector Transform(
Func<double, double> function
)
Public Function Transform (
function As Func(Of Double, Double)
) As DoubleVector
public:
DoubleVector^ Transform(
Func<double, double>^ function
)
member Transform :
function : Func<float, float> -> DoubleVector
Parameters
- function FuncDouble, Double
- A delegate object representing a function that
takes a single double parameter and returns a double.
Return Value
DoubleVectorA reference to self.
RemarksUpon exit, this[i] = function(this[i]).
See Also