IMP logo
Public Member Functions
IMP::algebra::LinearFit2D Class Reference

Detailed Description

Calculate line that fits best the input data points (Linear least squares)

List of all members.

Public Member Functions

 LinearFit2D (const Vector2Ds &data, const Floats &error_bars=Floats())
 Constructor.
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

Constructor & Destructor Documentation

IMP::algebra::LinearFit2D::LinearFit2D ( const Vector2Ds data,
const Floats &  error_bars = Floats() 
)

Constructor.

Parameters:
[in]datavector of pairs (VectorD<2>) with x and their corresponding y values (linear least squares)
[in]error_barsvector of pairs (VectorD<3>) with x, corresponding y values and y errors (weighted linear least squares)

Member Function Documentation

double IMP::algebra::LinearFit2D::get_a ( ) const

get a value (a*x)

double IMP::algebra::LinearFit2D::get_b ( ) const

get b value (constant)

double IMP::algebra::LinearFit2D::get_fit_error ( ) const

fit error

void IMP::algebra::LinearFit2D::show ( std::ostream &  out = std::cout) const

show equation


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

Generated on Tue May 22 2012 23:33:25 for IMP by doxygen 1.8.1