casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
casa::Fitter Class Referenceabstract

Base class for classes performing histogram fits. More...

#include <Fitter.h>

Inheritance diagram for casa::Fitter:
casa::FitterGaussian casa::FitterPoisson

Public Member Functions

 Fitter ()
 
void setData (casacore::Vector< casacore::Float > xValues, casacore::Vector< casacore::Float > yValues)
 
virtual void restrictDomain (double xMin, double xMax)
 
virtual void clearDomainLimits ()
 
void setUnits (QString units)
 
casacore::Vector< casacore::FloatgetFitValues () const
 
casacore::Vector< casacore::FloatgetFitValuesX () const
 
virtual bool doFit ()=0
 
virtual void clearFit ()
 
virtual void toAscii (QTextStream &out) const
 
bool isFit () const
 
virtual QString getSolutionStatistics () const =0
 
QString getErrorMessage () const
 
QString getStatusMessage () const
 
virtual ~Fitter ()
 

Protected Member Functions

QString formatResultLine (QString label, float value, bool endLine=true) const
 
float getMean () const
 
void resetDataWithLimits ()
 

Protected Attributes

float solutionChiSquared
 
bool solutionConverged
 
casacore::Vector< casacore::FloatactualXValues
 
casacore::Vector< casacore::FloatactualYValues
 
casacore::Vector< casacore::FloatfitValues
 
double domainMin
 
double domainMax
 
QString errorMsg
 
QString statusMsg
 
QString units
 
bool dataFitted
 

Private Attributes

casacore::Vector< casacore::FloatxValues
 
casacore::Vector< casacore::FloatyValues
 

Detailed Description

Base class for classes performing histogram fits.

Definition at line 38 of file Fitter.h.

Constructor & Destructor Documentation

casa::Fitter::Fitter ( )
virtual casa::Fitter::~Fitter ( )
virtual

Member Function Documentation

virtual void casa::Fitter::clearDomainLimits ( )
virtual
virtual void casa::Fitter::clearFit ( )
virtual

Reimplemented in casa::FitterGaussian, and casa::FitterPoisson.

virtual bool casa::Fitter::doFit ( )
pure virtual
QString casa::Fitter::formatResultLine ( QString  label,
float  value,
bool  endLine = true 
) const
protected
QString casa::Fitter::getErrorMessage ( ) const
casacore::Vector<casacore::Float> casa::Fitter::getFitValues ( ) const
casacore::Vector<casacore::Float> casa::Fitter::getFitValuesX ( ) const
float casa::Fitter::getMean ( ) const
protected
virtual QString casa::Fitter::getSolutionStatistics ( ) const
pure virtual
QString casa::Fitter::getStatusMessage ( ) const
bool casa::Fitter::isFit ( ) const
void casa::Fitter::resetDataWithLimits ( )
protected
virtual void casa::Fitter::restrictDomain ( double  xMin,
double  xMax 
)
virtual

Reimplemented in casa::FitterPoisson.

void casa::Fitter::setData ( casacore::Vector< casacore::Float xValues,
casacore::Vector< casacore::Float yValues 
)
void casa::Fitter::setUnits ( QString  units)
virtual void casa::Fitter::toAscii ( QTextStream &  out) const
virtual

Reimplemented in casa::FitterGaussian, and casa::FitterPoisson.

Member Data Documentation

casacore::Vector<casacore::Float> casa::Fitter::actualXValues
protected

Definition at line 62 of file Fitter.h.

casacore::Vector<casacore::Float> casa::Fitter::actualYValues
protected

Definition at line 63 of file Fitter.h.

bool casa::Fitter::dataFitted
protected

Definition at line 70 of file Fitter.h.

double casa::Fitter::domainMax
protected

Definition at line 66 of file Fitter.h.

double casa::Fitter::domainMin
protected

Definition at line 65 of file Fitter.h.

QString casa::Fitter::errorMsg
protected

Definition at line 67 of file Fitter.h.

casacore::Vector<casacore::Float> casa::Fitter::fitValues
protected

Definition at line 64 of file Fitter.h.

float casa::Fitter::solutionChiSquared
protected

Definition at line 59 of file Fitter.h.

bool casa::Fitter::solutionConverged
protected

Definition at line 60 of file Fitter.h.

QString casa::Fitter::statusMsg
protected

Definition at line 68 of file Fitter.h.

QString casa::Fitter::units
protected

Definition at line 69 of file Fitter.h.

casacore::Vector<casacore::Float> casa::Fitter::xValues
private

Definition at line 75 of file Fitter.h.

casacore::Vector<casacore::Float> casa::Fitter::yValues
private

Definition at line 76 of file Fitter.h.


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