IMP logo
IMP Reference Guide  2.11.1
The Integrative Modeling Platform
IMP::algebra::ParabolicFit2D Class Reference

Calculate parabola that fits best the input data points. More...

#include <IMP/algebra/ParabolicFit.h>

+ Inheritance diagram for IMP::algebra::ParabolicFit2D:

Detailed Description

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
 

Constructor & Destructor Documentation

IMP::algebra::ParabolicFit2D::ParabolicFit2D ( const Vector2Ds data)

Constructor.

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

Member Function Documentation

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.


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