Public Member Functions | List of all members

#include <fitting.h>

Inheritance diagram for GaussianFunction:
Inheritance graph

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 Member Functions inherited from ModelFunction
Array< float, 1 > get_function (const Array< float, 1 > &xvals) const

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 243 of file fitting.h.

Member Function Documentation

§ evaluate_df()

fvector GaussianFunction::evaluate_df ( float  x) const

Returns the first derivatives at position 'x'.

Implements ModelFunction.

§ evaluate_f()

float GaussianFunction::evaluate_f ( float  x) const

Returns the function value at position 'x'.

Implements ModelFunction.

§ get_fitpar()

fitpar& GaussianFunction::get_fitpar ( unsigned int  i)

Returns reference to the i'th fitting parameter.

Implements ModelFunction.

§ numof_fitpars()

unsigned int GaussianFunction::numof_fitpars ( ) const

Returns the number of independent fitting parameters.

Implements ModelFunction.

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