58 throw Exception(
"NumTools::uniRoot(). Initial interval values are not of opposite sign.");
59 double c = (a + b) / 2.;
61 while (abs(fb - fa) > tolerance)
85 size_t n = parameters.
size();
88 for (
unsigned int i = 0; i < n; i++)
90 for (
unsigned int j = 0; j < n; j++)
93 (*hessian)(i, j) =
function.d2f(variables[i], parameters);
95 (*hessian)(i, j) =
function.d2f(variables[i], variables[j], parameters);
This is the abstract class for second order derivable functions.
Exception base class. Overload exception constructor (to control the exceptions mechanism)....
This is the function abstract class.
virtual double f(const ParameterList ¶meters)
Get the value of the function according to a given set of parameters.
The parameter list object.
virtual std::vector< std::string > getParameterNames() const
Get all parameter names in the list.
virtual void addParameter(const Parameter ¶m)
Add a new parameter at the end of the list.
This class is designed to facilitate the manipulation of parameters.