IMP logo

IMP::algebra::LinearFit Class Reference


Detailed Description

Calculate line that fits best the input data points.

Public Member Functions

double get_a () const
 get a value (a*x)
double get_b () const
 get b value (constant)
double get_fit_error (double x) const
 fit error
 LinearFit (const std::vector< algebra::VectorD< 2 > > &data)
 Constructor.
void show (std::ostream &out=std::cout) const
 show equation

Constructor & Destructor Documentation

IMP::algebra::LinearFit::LinearFit ( const std::vector< algebra::VectorD< 2 > > &  data  ) 

Constructor.

Parameters:
[in] data vector of pairs (VectorD<2>) with x and their corresponding y values


The documentation for this class was generated from the following files:

Generated on Mon Mar 8 23:08:47 2010 for IMP by doxygen 1.5.8