Public Member Functions | List of all members

#include <fitting.h>

Inheritance diagram for GammaVariateFunction:
Inheritance graph

Public Member Functions

void set_pars (float alphaval, float xmax, float ymax)
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

Class for fitting gamma variate function to a 1D curve

y= A*x^alpha*exp(-x/beta)

Definition at line 288 of file fitting.h.

Member Function Documentation

§ evaluate_df()

fvector GammaVariateFunction::evaluate_df ( float  x) const

Returns the first derivatives at position 'x'.

Implements ModelFunction.

§ evaluate_f()

float GammaVariateFunction::evaluate_f ( float  x) const

Returns the function value at position 'x'.

Implements ModelFunction.

§ get_fitpar()

fitpar& GammaVariateFunction::get_fitpar ( unsigned int  i)

Returns reference to the i'th fitting parameter.

Implements ModelFunction.

§ numof_fitpars()

unsigned int GammaVariateFunction::numof_fitpars ( ) const

Returns the number of independent fitting parameters.

Implements ModelFunction.

§ set_pars()

void GammaVariateFunction::set_pars ( float  alphaval,
float  xmax,
float  ymax 

Set parameters from a simplified set of parameters: xmax and ymax are the x- and y-values of the maximum (see Madsen, Phys. Med. Biol. 37, 1992)

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