MultiPeakFit Class Reference

#include <MultiPeakFit.h>

Inheritance diagram for MultiPeakFit:

Fit Filter GaussFit LorentzFit

List of all members.

Public Types

enum  PeakProfile { Gauss, Lorentz }

Public Member Functions

void enablePeakCurves (bool on)
 MultiPeakFit (ApplicationWindow *parent, Graph *g=0, PeakProfile profile=Gauss, int peaks=1)
int peaks ()
void setNumPeaks (int n)
void setPeakCurvesColor (int colorIndex)

Static Public Member Functions

static QStringList generateExplanationList (int order)
static QString generateFormula (int order, PeakProfile profile)
static QStringList generateParameterList (int order)

Private Member Functions

void generateFitCurve (double *par)
 Adds the result curve to the plot.
void guessInitialValues ()
 Used by the GaussFit and LorentzFit derived classes to calculate initial values for the parameters.
void insertPeakFunctionCurve (double *x, double *y, int peak)
 Inserts a peak function curve into the plot.
QString logFitInfo (double *par, int iterations, int status, const QString &plotName)
 Output string added to the result log.
void storeCustomFitResults (double *par)
 Customs and stores the fit results according to the derived class specifications. Used by exponential fits.

Static Private Member Functions

static QString peakFormula (int peakIndex, PeakProfile profile)

Private Attributes

int d_peaks
 Number of peaks.
int d_peaks_color
 Color index for the peak curves.
PeakProfile d_profile
 The peak profile.
bool generate_peak_curves
 Tells weather the peak curves should be displayed together with the best line fit.


Member Enumeration Documentation

enum MultiPeakFit::PeakProfile

Enumerator:
Gauss 
Lorentz 


Constructor & Destructor Documentation

MultiPeakFit::MultiPeakFit ( ApplicationWindow parent,
Graph g = 0,
PeakProfile  profile = Gauss,
int  peaks = 1 
)


Member Function Documentation

void MultiPeakFit::enablePeakCurves ( bool  on  )  [inline]

QStringList MultiPeakFit::generateExplanationList ( int  order  )  [static]

void MultiPeakFit::generateFitCurve ( double *  par  )  [private, virtual]

Adds the result curve to the plot.

Reimplemented from Fit.

QString MultiPeakFit::generateFormula ( int  order,
PeakProfile  profile 
) [static]

QStringList MultiPeakFit::generateParameterList ( int  order  )  [static]

void MultiPeakFit::guessInitialValues (  )  [private, virtual]

Used by the GaussFit and LorentzFit derived classes to calculate initial values for the parameters.

Reimplemented from Fit.

void MultiPeakFit::insertPeakFunctionCurve ( double *  x,
double *  y,
int  peak 
) [private]

Inserts a peak function curve into the plot.

QString MultiPeakFit::logFitInfo ( double *  par,
int  iterations,
int  status,
const QString &  plotName 
) [private, virtual]

Output string added to the result log.

Reimplemented from Fit.

QString MultiPeakFit::peakFormula ( int  peakIndex,
PeakProfile  profile 
) [static, private]

int MultiPeakFit::peaks (  )  [inline]

void MultiPeakFit::setNumPeaks ( int  n  ) 

void MultiPeakFit::setPeakCurvesColor ( int  colorIndex  )  [inline]

void MultiPeakFit::storeCustomFitResults ( double *  par  )  [private, virtual]

Customs and stores the fit results according to the derived class specifications. Used by exponential fits.

Reimplemented from Fit.


Member Data Documentation

int MultiPeakFit::d_peaks [private]

Number of peaks.

int MultiPeakFit::d_peaks_color [private]

Color index for the peak curves.

PeakProfile MultiPeakFit::d_profile [private]

The peak profile.

bool MultiPeakFit::generate_peak_curves [private]

Tells weather the peak curves should be displayed together with the best line fit.


The documentation for this class was generated from the following files:
Generated on Mon Oct 15 06:11:43 2007 for QtiPlot by  doxygen 1.5.3