Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

LSQFit Class Reference

#include <LSQFit.h>

Inheritance diagram for LSQFit:

ClusterFit List of all members.

Public Methods

 LSQFit ()
 LSQFit (const LSQFit& fit)
virtual ~LSQFit ()
void clear ()
float position (float s)
float slope ()
float chiSquare () const
float scatter () const
float maxResidual (int* index)
unsigned int numDataPoints () const
int compareFits (const LSQFit& fit)
Point getHit (unsigned int i)
unsigned int getHitIndex (unsigned int i)
float doFit ()
int addData (float x, float z, float wx)
int addData (unsigned int idx, float x, float z, float wx)
int removeData (unsigned int index)
float truncateFit ()
virtual void printOn (std::ostream& os = std::cout) const

Protected Attributes

float x0
float slopeX
float chisq
float rmsResid
std::vector< FitDatadataList

Constructor & Destructor Documentation

LSQFit::LSQFit ( )
 

Definition at line 28 of file LSQFit.cxx.

LSQFit::LSQFit ( const LSQFit & fit )
 

Definition at line 32 of file LSQFit.cxx.

LSQFit::~LSQFit ( ) [virtual]
 

Definition at line 45 of file LSQFit.cxx.


Member Function Documentation

int LSQFit::addData ( unsigned int idx,
float x,
float z,
float wx )
 

Definition at line 177 of file LSQFit.cxx.

int LSQFit::addData ( float x,
float z,
float wx )
 

Definition at line 168 of file LSQFit.cxx.

Referenced by ClusterFit::ClusterFit().

float LSQFit::chiSquare ( ) const [inline]
 

Definition at line 218 of file LSQFit.h.

void LSQFit::clear ( )
 

Definition at line 52 of file LSQFit.cxx.

Referenced by ~LSQFit().

int LSQFit::compareFits ( const LSQFit & fit )
 

Definition at line 83 of file LSQFit.cxx.

float LSQFit::doFit ( )
 

Definition at line 113 of file LSQFit.cxx.

Referenced by ClusterFit::ClusterFit(), and truncateFit().

Point LSQFit::getHit ( unsigned int i )
 

Definition at line 101 of file LSQFit.cxx.

unsigned int LSQFit::getHitIndex ( unsigned int i )
 

Definition at line 107 of file LSQFit.cxx.

float LSQFit::maxResidual ( int * index )
 

Definition at line 58 of file LSQFit.cxx.

Referenced by truncateFit().

unsigned int LSQFit::numDataPoints ( ) const
 

Definition at line 77 of file LSQFit.cxx.

float LSQFit::position ( float s ) [inline]
 

Definition at line 202 of file LSQFit.h.

void LSQFit::printOn ( std::ostream & os = std::cout ) const [virtual]
 

Definition at line 211 of file LSQFit.cxx.

int LSQFit::removeData ( unsigned int index )
 

Definition at line 185 of file LSQFit.cxx.

Referenced by truncateFit().

float LSQFit::scatter ( ) const [inline]
 

Definition at line 226 of file LSQFit.h.

float LSQFit::slope ( ) [inline]
 

Definition at line 210 of file LSQFit.h.

float LSQFit::truncateFit ( )
 

Definition at line 198 of file LSQFit.cxx.


Member Data Documentation

float LSQFit::chisq [protected]
 

Definition at line 282 of file LSQFit.h.

std::vector< FitData > LSQFit::dataList [protected]
 

Definition at line 287 of file LSQFit.h.

float LSQFit::rmsResid [protected]
 

Definition at line 283 of file LSQFit.h.

float LSQFit::slopeX [protected]
 

Definition at line 281 of file LSQFit.h.

float LSQFit::x0 [protected]
 

Definition at line 280 of file LSQFit.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:20:47 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000