GaussianFunction Struct Reference
[Classes of the ODIN data processing framework (odindata library)]

#include <fitting.h>

Inheritance diagram for GaussianFunction:

Inheritance graph
[legend]
Collaboration diagram for GaussianFunction:

Collaboration graph
[legend]
List of all members.

Public Member Functions

float evaluate_f (float x) const
fvector evaluate_df (float x) const
unsigned int numof_fitpars () const
fitparget_fitpar (unsigned int i)

Public Attributes

fitpar A
fitpar x0
fitpar fwhm

Detailed Description

A function to fit an Gaussian curve to an 1D data set. It uses the function

A * exp( - 2 * ( (x-x0) / fwhm )^2 )

Definition at line 228 of file fitting.h.


Member Function Documentation

float GaussianFunction::evaluate_f ( float  x  )  const [virtual]

Returns the function value at position 'x'.

Implements ModelFunction.

fvector GaussianFunction::evaluate_df ( float  x  )  const [virtual]

Returns the first derivatives at position 'x'.

Implements ModelFunction.

unsigned int GaussianFunction::numof_fitpars (  )  const [virtual]

Returns the number of independent fitting parameters.

Implements ModelFunction.

fitpar& GaussianFunction::get_fitpar ( unsigned int  i  )  [virtual]

Returns reference to the i'th fitting parameter.

Implements ModelFunction.


The documentation for this struct was generated from the following file:
Generated on Sat Jun 14 12:31:31 2008 by  doxygen 1.5.1