154 double minF(
double ax,
double bx,
double cx,
272 return ((bMinMaxFlg == 1.0) ?
true :
false);
Class supports Brents zeroF and minF functions that finds the root of or minimum (maximum) of a provi...
void setTolerance(double tol)
Sets the tolerance value.
Brents< F > & operator=(const Brents< F > &zb)
Assignment Operator.
double zeroF(double ax, double bx)
function zeroF - obtains a function zero within the given range.
Brents(F &f, double tol)
Standard Constructor.
Brents()
Default Constructor.
void setMinimumSearch()
Sets the search method to a minimum (the default).
F & getF()
Returns a reference to the functional.
void setF(F &f)
Sets the functional to f.
bool isMinimumSearch() const
Returns true if the search method is a minimum.
double getTolerance() const
Returns the tolerance value.
virtual ~Brents()
Destructor.
const F & getF() const
Returns a const reference to the functional.
double minF(double ax, double bx, double cx, double &xmin)
Returns the functional minimum between the input abscissas ax and cx at the internall defined functio...
void setMaximumSearch()
Sets the search method to a maximum.
Brents(const Brents< F > &zb)
Copy Constructor.