Click or drag to resize

Bracket Constructor

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

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public Bracket(
	OneVariableFunction f,
	double x0,
	double x1
)

Parameters

f  OneVariableFunction
A function of one variable.
x0  Double
A starting point.
x1  Double
A starting point.
Exceptions
ExceptionCondition
InvalidArgumentExceptionThrows an exception if x0 >= x1 or if a bracket cannot be found..
Remarks
Searches in the downhill direction from points x0 and x1 and finds a new pair that bracket a minimum of function f.
See Also