class LineFitterCwt

Fitter for a straight line in two dimentions.

Public Methods

double a()
Execute fitting.
double chi2()
Return y of the center of gravity.
void fit()
Updates weights.
inline double LineFitterCwt::a()
Return slope.
inline double LineFitterCwt::chi2()
Return the chi2.
inline double LineFitterCwt::sa()
Return variance of the slope.
inline void LineFitterCwt::set_weight( const std::vector& weight )
Update weights.
inline void LineFitterCwt::set_xcoor( const std::vector& x_coor )
Update x-coordinates.
inline void LineFitterCwt::set_ycoor( const std::vector& y_coor )
Update y-coordinates.
inline double LineFitterCwt::sg()
Return variance of y of center of gravity.
inline double LineFitterCwt::xg()
Return x of center of gravity.
inline double LineFitterCwt::yg()
Return y of center of gravity.
double sa()
Return the chi2.
void set_weight( const std::vector& weight )
Updates y-coordinates.
void set_xcoor( const std::vector& x_coor )
Constructor. Immediately fits a line through the given coordinates.
void set_ycoor( const std::vector& y_coor )
Updates x-coordinates.
double sg()
Return the variance of the slope.
double xg()
Return the slope of the line.
double yg()
Return x of the center of gravity.

Private Fields

double _a
Return the variance of the center of gravity.
double _chi2
variance of y of center of gravity.
double _sa
y of center of gravity.
double _sg
variance of the slope.
bool _suppress_zero
Vector of weights.
std::vector _weight
Vector of y-coordinates.
std::vector _xcoor
Chi2.
double _xg
Slope.
std::vector _ycoor
Vector of x-coordinates.
double _yg
x of center of gravity.

Documentation

Fitter for a straight line in two dimentions.
void set_xcoor( const std::vector& x_coor )
Constructor. Immediately fits a line through the given coordinates.

void set_ycoor( const std::vector& y_coor )
Updates x-coordinates.

void set_weight( const std::vector& weight )
Updates y-coordinates.

void fit()
Updates weights.

double a()
Execute fitting.

double xg()
Return the slope of the line.

double yg()
Return x of the center of gravity.

double chi2()
Return y of the center of gravity.

double sa()
Return the chi2.

double sg()
Return the variance of the slope.

double _a
Return the variance of the center of gravity.

double _xg
Slope.

double _yg
x of center of gravity.

double _sa
y of center of gravity.

double _sg
variance of the slope.

double _chi2
variance of y of center of gravity.

std::vector _xcoor
Chi2.

std::vector _ycoor
Vector of x-coordinates.

std::vector _weight
Vector of y-coordinates.

bool _suppress_zero
Vector of weights.

inline double LineFitterCwt::a()
Return slope.

inline double LineFitterCwt::chi2()
Return the chi2.

inline double LineFitterCwt::sa()
Return variance of the slope.

inline void LineFitterCwt::set_weight( const std::vector& weight )
Update weights.

inline void LineFitterCwt::set_xcoor( const std::vector& x_coor )
Update x-coordinates.

inline void LineFitterCwt::set_ycoor( const std::vector& y_coor )
Update y-coordinates.

inline double LineFitterCwt::sg()
Return variance of y of center of gravity.

inline double LineFitterCwt::xg()
Return x of center of gravity.

inline double LineFitterCwt::yg()
Return y of center of gravity.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de