13 #include "msdevstudio/MSconfig.h"
22 #ifdef ITERATOR_MEMBER_DEFECT
30 Quadratic::Quadratic ( )
35 Quadratic::Quadratic (
double intercept,
double linear,
double quad )
39 m_parms[0] = intercept;
44 void Quadratic::initialize ()
48 m_parm_names.push_back (
"Intercept" );
49 m_parm_names.push_back (
"Linear" );
50 m_parm_names.push_back (
"Quad" );
60 double Quadratic::operator () (
double x )
const
62 return m_parms[0] + x * ( m_parms[1] + x * m_parms[2] );
76 m_parms[1] = ( max_y - min_y ) / ( max_x - min_x );
77 m_parms[0] = max_y - m_parms[1] * max_x;
78 m_parms[2] = m_parms[1] / ( 5.0 * ( max_x - min_x ) );
81 double Quadratic::derivByParm (
int i,
double x )
const
Quadratic class interface.
FunctionHelper class interface.
virtual double minValue() const =0
Returns the smallest value in the data set.
virtual double minCoord() const =0
Returns the smallest coordinate value along the X axis in the data set.
numeric::array clone(numeric::array arr)
virtual double maxValue() const =0
Returns the largest value in the data set.
A function that can be added to a DataRep and used in a fitter.
An abstract base class to help FunctionBase objects perform some operations.
virtual double maxCoord() const =0
Returns the largest coordinate value along the X axis in the data set.
A function that can be used with a fitter.