eLynx SDK v3.3.0
C++ image processing API reference
Public Member Functions

eLynx::Math::BellCurve Class Reference

Implementation of gaussian curve using IFunctionNL interface. More...

#include <BellCurve.h>

Inheritance diagram for eLynx::Math::BellCurve:
eLynx::Math::IFunctionNL

List of all members.

Public Member Functions

 BellCurve ()
 Constructor, does nothing.
virtual uint32 GetVariablesCount () const
 Returns the number of function idependent variables (only 1 (x) in this case).
virtual uint32 GetParametersCount () const
 Returns the number of function parameters or coefficients.
virtual double Evaluate (const IVector &iVars, const IVector &iParams) const
 Evaluates the function value for given values of variables and parameters.
virtual double EvalDerivativeByParam (const IVector &iVars, const IVector &iParams, uint32 iByParam) const
 Evaluates the function derivative by given parameter.

Detailed Description

Implementation of gaussian curve using IFunctionNL interface.

The gaussian function is implemented in form of y = g * exp(-x^2 / 2*h^2) + b, which is suitable to approximate star profiles. The g is the star central intensity (without background), h is star radius at half maximum and b is background offset. Star center position is considered to be zero.


Member Function Documentation

virtual double eLynx::Math::BellCurve::EvalDerivativeByParam ( const IVector iVars,
const IVector iParams,
uint32  iByParam 
) const [virtual]

Evaluates the function derivative by given parameter.

Parameters:
iVarsthe vector of independent variables values
iParamsthe vector of function parameters values
iByParamthe index of the parameter to compute derivative by
Returns:
the value of the function derivative by given parameter

Implements eLynx::Math::IFunctionNL.

virtual double eLynx::Math::BellCurve::Evaluate ( const IVector iVars,
const IVector iParams 
) const [virtual]

Evaluates the function value for given values of variables and parameters.

Parameters:
iVarsthe vector of independent variables values
iParamsthe vector of function parameters values
Returns:
the function value for given inputs

Implements eLynx::Math::IFunctionNL.

virtual uint32 eLynx::Math::BellCurve::GetParametersCount (  ) const [inline, virtual]

Returns the number of function parameters or coefficients.

There are three parameters in this case (g, h and b).

Returns:
the number of function parameters

Implements eLynx::Math::IFunctionNL.

virtual uint32 eLynx::Math::BellCurve::GetVariablesCount (  ) const [inline, virtual]

Returns the number of function idependent variables (only 1 (x) in this case).

Returns:
the number of function variables

Implements eLynx::Math::IFunctionNL.


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

Generated on Thu Dec 9 2010 by doxygen 1.7.2