55 if(fa * fb > 0.)
throw Exception(
"NumTools::uniRoot(). Initial interval values are not of opposite sign.");
56 double c = (a + b) / 2.;
58 while(abs(fb - fa) > tolerance)
82 size_t n = parameters.
size();
85 for(
unsigned int i = 0; i < n; i++)
86 for(
unsigned int j = 0; j < n; j++)
88 (*hessian)(i,j) =
function.d2f(variables[i], parameters);
90 (*hessian)(i,j) =
function.d2f(variables[i], variables[j], parameters);
This class allows to perform a correspondence analysis.
This is the function abstract class.
This class is designed to facilitate the manipulation 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 is the abstract class for second order derivable functions.