|
IMP
2.0.1
The Integrative Modeling Platform
|
Calculate line that fits best the input data points (Linear least squares)
#include <IMP/algebra/LinearFit.h>
Inheritance diagram for IMP::algebra::LinearFit2D:Public Member Functions | |
| LinearFit2D (const Vector2Ds &data, const Floats &error_bars=Floats()) | |
| Constructor. More... | |
| double | get_a () const |
| get a value (a*x) | |
| double | get_b () const |
| get b value (constant) | |
| double | get_fit_error () const |
| fit error | |
| void | show (std::ostream &out=std::cout) const |
| show equation | |
Definition at line 19 of file LinearFit.h.
| IMP::algebra::LinearFit2D::LinearFit2D | ( | const Vector2Ds & | data, |
| const Floats & | error_bars = Floats() |
||
| ) |
| [in] | data | vector of pairs (VectorD<2>) with x and their corresponding y values (linear least squares) |
| [in] | error_bars | vector of pairs (VectorD<3>) with x, corresponding y values and y errors (weighted linear least squares) |