IMP Reference Guide
2.6.2
The Integrative Modeling Platform
|
Calculate parabola that fits best the input data points. More...
#include <IMP/algebra/ParabolicFit.h>
Calculate parabola that fits best the input data points.
Definition at line 19 of file ParabolicFit.h.
Public Member Functions | |
ParabolicFit2D (const Vector2Ds &data) | |
Constructor. More... | |
double | get_a () const |
get a value (a*x^2) More... | |
double | get_b () const |
get b value (b*x) More... | |
double | get_c () const |
get c value (constant) More... | |
double | get_fit_error () const |
fit error More... | |
void | show (std::ostream &out=std::cout) const |
IMP::algebra::ParabolicFit2D::ParabolicFit2D | ( | const Vector2Ds & | data | ) |
Constructor.
[in] | data | vector of pairs (VectorD<2>) with x and their corresponding y values |
double IMP::algebra::ParabolicFit2D::get_a | ( | ) | const |
get a value (a*x^2)
Definition at line 32 of file ParabolicFit.h.
double IMP::algebra::ParabolicFit2D::get_b | ( | ) | const |
get b value (b*x)
Definition at line 35 of file ParabolicFit.h.
double IMP::algebra::ParabolicFit2D::get_c | ( | ) | const |
get c value (constant)
Definition at line 38 of file ParabolicFit.h.
double IMP::algebra::ParabolicFit2D::get_fit_error | ( | ) | const |
fit error
Definition at line 29 of file ParabolicFit.h.