Calculate parabola that fits best the input data points.
Public Member Functions | |
| ParabolicFit2D (const Vector2Ds &data) | |
| Constructor. | |
| double | get_a () const |
| get a value (a*x^2) | |
| double | get_b () const |
| get b value (b*x) | |
| double | get_c () const |
| get c value (constant) | |
| double | get_fit_error () const |
| fit error | |
| 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)
| double IMP::algebra::ParabolicFit2D::get_b | ( | ) | const |
get b value (b*x)
| double IMP::algebra::ParabolicFit2D::get_c | ( | ) | const |
get c value (constant)
| double IMP::algebra::ParabolicFit2D::get_fit_error | ( | ) | const |
fit error