Constructs a Bracket instance for the given function, starting from the given pair of points.

Namespace:  CenterSpace.NMath.Analysis
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public Bracket(
	OneVariableFunction f,
	double x0,
	double x1
)
Visual Basic (Declaration)
Public Sub New ( _
	f As OneVariableFunction, _
	x0 As Double, _
	x1 As Double _
)
Visual C++
public:
Bracket(
	OneVariableFunction^ f, 
	double x0, 
	double x1
)

Parameters

f
Type: CenterSpace.NMath.Core..::.OneVariableFunction
A function of one variable.
x0
Type: System..::.Double
A starting point.
x1
Type: System..::.Double
A starting point.

Remarks

Searches in the downhill direction from points x0 and x1 and finds a new pair that bracket a minimum of function f.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrows an exception if x0 >= x1 or if a bracket cannot be found..

See Also