Click or drag to resize

GoldenSectionFindExtremumSetInitialBracketingPoints Method (Double, Double, Double, Double, Double, Double)

Defines the initial bracketing interval using the provided variable values and corresponding function values.

Namespace:  AGI.Foundation.NumericalMethods.Advanced
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public void SetInitialBracketingPoints(
	double a,
	double fa,
	double b,
	double fb,
	double c,
	double fc
)

Parameters

a
Type: SystemDouble
The value of the independent variable at one of the limits of the bracketing interval.
fa
Type: SystemDouble
The function value when evaluated at a.
b
Type: SystemDouble
The value of the independent variable between the limits of the bracketing interval.
fb
Type: SystemDouble
The function value when evaluated at b.
c
Type: SystemDouble
The value of the independent variable at one of the limits of the bracketing interval.
fc
Type: SystemDouble
The function value when evaluated at c.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown when the two end points do not bracket the middle point.
ArgumentOutOfRangeException Thrown when the middle point does not indicate a local extremum.
Remarks
The function values fa, fb, and fc must indicate a local extremum such that at least one of them is not equal to the other two, and fb is either greater than or equal to or less than or equal to both fa and fc.
See Also