StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
LinearFit< Number > Class Template Reference
Inheritance diagram for LinearFit< Number >:
PowerLawFit< Number >

Public Types

typedef std::map< Number, Number > Points
 

Public Member Functions

 LinearFit (Points *points)
 
 LinearFit (const LinearFit &fit)
 
const LinearFitoperator= (const LinearFit &fit)
 
virtual void fit ()
 
virtual void fit (Points *points)
 
const Number getSlope () const
 
const Number getIntercept () const
 
const Number getRegressionCoefficient () const
 

Protected Attributes

Points * _points
 
Number _a
 Slope.
 
Number _b
 Intercept.
 
Number _r
 Regression.
 

Detailed Description

template<typename Number>
class LinearFit< Number >

Definition at line 7 of file LinearFit.h.

Member Function Documentation

template<typename Number >
void LinearFit< Number >::fit ( Points *  points)
virtual

Perform linear fit on given points. Store reference to given points and call "fit()" to actually perform the fit.

Reimplemented in PowerLawFit< Number >, and PowerLawFit< double >.

Definition at line 61 of file LinearFit.h.


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