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 |
IMP::algebra::LinearFit::LinearFit | ( | const std::vector< algebra::VectorD< 2 > > & | data | ) |
Constructor.
[in] | data | vector of pairs (VectorD<2>) with x and their corresponding y values |