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

Manages Gaussian initial guesses and fits Gaussian curves to the histogram. More...

#include <FitterGaussian.h>

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

Public Member Functions

 FitterGaussian ()
 
virtual QString getSolutionStatistics () const
 
void setPeak (double peakValue)
 
void setCenter (double centerValue)
 
void setFWHM (double fwhmValue)
 
virtual bool doFit ()
 
virtual void toAscii (QTextStream &stream) const
 
virtual ~FitterGaussian ()
 
virtual void clearFit ()
 
- Public Member Functions inherited from casa::Fitter
 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
 
bool isFit () const
 
QString getErrorMessage () const
 
QString getStatusMessage () const
 
virtual ~Fitter ()
 

Private Member Functions

double getPeak () const
 
double getCenter () const
 
double getFWHM () const
 
bool estimateCenterPeak ()
 
bool estimateFWHM ()
 
int getPeakIndex () const
 

Private Attributes

double peak
 
double center
 
double fwhm
 
bool peakSpecified
 
bool centerSpecified
 
bool fwhmSpecified
 
float solutionPeak
 
float solutionCenter
 
float solutionFWHM
 

Additional Inherited Members

- Protected Member Functions inherited from casa::Fitter
QString formatResultLine (QString label, float value, bool endLine=true) const
 
float getMean () const
 
void resetDataWithLimits ()
 
- Protected Attributes inherited from casa::Fitter
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
 

Detailed Description

Manages Gaussian initial guesses and fits Gaussian curves to the histogram.

Definition at line 37 of file FitterGaussian.h.

Constructor & Destructor Documentation

casa::FitterGaussian::FitterGaussian ( )
virtual casa::FitterGaussian::~FitterGaussian ( )
virtual

Member Function Documentation

virtual void casa::FitterGaussian::clearFit ( )
virtual

Reimplemented from casa::Fitter.

virtual bool casa::FitterGaussian::doFit ( )
virtual

Implements casa::Fitter.

bool casa::FitterGaussian::estimateCenterPeak ( )
private
bool casa::FitterGaussian::estimateFWHM ( )
private
double casa::FitterGaussian::getCenter ( ) const
private
double casa::FitterGaussian::getFWHM ( ) const
private
double casa::FitterGaussian::getPeak ( ) const
private
int casa::FitterGaussian::getPeakIndex ( ) const
private
virtual QString casa::FitterGaussian::getSolutionStatistics ( ) const
virtual

Implements casa::Fitter.

void casa::FitterGaussian::setCenter ( double  centerValue)
void casa::FitterGaussian::setFWHM ( double  fwhmValue)
void casa::FitterGaussian::setPeak ( double  peakValue)
virtual void casa::FitterGaussian::toAscii ( QTextStream &  stream) const
virtual

Reimplemented from casa::Fitter.

Member Data Documentation

double casa::FitterGaussian::center
private

Definition at line 58 of file FitterGaussian.h.

bool casa::FitterGaussian::centerSpecified
private

Definition at line 61 of file FitterGaussian.h.

double casa::FitterGaussian::fwhm
private

Definition at line 59 of file FitterGaussian.h.

bool casa::FitterGaussian::fwhmSpecified
private

Definition at line 62 of file FitterGaussian.h.

double casa::FitterGaussian::peak
private

Definition at line 57 of file FitterGaussian.h.

bool casa::FitterGaussian::peakSpecified
private

Definition at line 60 of file FitterGaussian.h.

float casa::FitterGaussian::solutionCenter
private

Definition at line 64 of file FitterGaussian.h.

float casa::FitterGaussian::solutionFWHM
private

Definition at line 65 of file FitterGaussian.h.

float casa::FitterGaussian::solutionPeak
private

Definition at line 63 of file FitterGaussian.h.


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