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.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public DoubleFunctionalDelegate(
	int xDimension,
	Func<DoubleVector, double> functional,
	double gradientCenteralDiffDelta
)
Visual Basic (Declaration)
Public Sub New ( _
	xDimension As Integer, _
	functional As Func(Of DoubleVector, Double), _
	gradientCenteralDiffDelta As Double _
)
Visual C++
public:
DoubleFunctionalDelegate(
	int xDimension, 
	Func<DoubleVector^, double>^ functional, 
	double gradientCenteralDiffDelta
)

Parameters

xDimension
Type: System..::.Int32
The dimension of the domain of the functional.
functional
Type: System..::.Func<(Of <(DoubleVector, Double>)>)
The delegate for evaluating the functional.
gradientCenteralDiffDelta
Type: System..::.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