| DoubleFunctionalDelegate(Int32, FuncDoubleVector, Double, Double) Constructor |
Constructs a DoubleFunctionalDelegate object from the given delegate
and uses the given central difference delta value for estimating the
gradient using a central difference algorithm.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DoubleFunctionalDelegate(
int xDimension,
Func<DoubleVector, double> functional,
double gradientCenteralDiffDelta
)
Public Sub New (
xDimension As Integer,
functional As Func(Of DoubleVector, Double),
gradientCenteralDiffDelta As Double
)
public:
DoubleFunctionalDelegate(
int xDimension,
Func<DoubleVector^, double>^ functional,
double gradientCenteralDiffDelta
)
new :
xDimension : int *
functional : Func<DoubleVector, float> *
gradientCenteralDiffDelta : float -> DoubleFunctionalDelegate
Parameters
- xDimension Int32
- The dimension of the domain of the functional.
- functional FuncDoubleVector, Double
- The delegate for evaluating the functional.
- gradientCenteralDiffDelta Double
- Delta value used for approximating the
gradient using a central difference algorithm. The centeral difference algorithm
will be used to approximate the graidient if no gradient delegate is provided.
See Also