23 using namespace hippodraw;
29 m_max_iterations ( 100 )
35 : m_name ( fitter.m_name ),
36 m_max_iterations ( fitter.m_max_iterations )
153 const vector < int > &
164 string what (
"The " );
166 what +=
" minimizer does not support limits on parameters";
167 throw std::runtime_error ( what );
174 unsigned int index = UINT_MAX;
175 const vector < string > & names =
m_fcn -> getParmNames ();
176 unsigned int size = names.size();
177 for (
unsigned int i = 0; i <
size; i++ ) {
178 const string & pname = names [i];
179 if ( pname == name ) {
184 if ( index == UINT_MAX ) {
185 string what (
"No parameter named `" );
187 what +=
"' for this function.";
188 throw std::runtime_error ( what );
196 setLimits (
const std::string & name,
double lower,
double upper )
206 string what (
"This " );
208 what +=
" minimizer does not support setting step size.";
209 throw std::runtime_error ( what );
230 return m_fcn -> degreesOfFreedom();