GammaLib  2.1.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GObservation::model_func Class Reference

#include <GObservation.hpp>

Inheritance diagram for GObservation::model_func:
GFunction

Public Member Functions

 model_func (const GObservation *parent, const GModel *model, GModelPar *par, const GEvent *event)
 
double eval (const double &x)
 Model function evaluation for gradient computation. More...
 
- Public Member Functions inherited from GFunction
 GFunction (void)
 Void constructor. More...
 
 GFunction (const GFunction &function)
 Copy constructor. More...
 
virtual ~GFunction (void)
 Destructor. More...
 
GFunctionoperator= (const GFunction &function)
 Assignment operator. More...
 

Protected Attributes

const GObservationm_parent
 Observation. More...
 
const GModelm_model
 Model. More...
 
GModelParm_par
 Model parameter. More...
 
const GEventm_event
 Event. More...
 

Additional Inherited Members

- Protected Member Functions inherited from GFunction
void init_members (void)
 Initialise class members. More...
 
void copy_members (const GFunction &function)
 Copy class members. More...
 
void free_members (void)
 Delete class members. More...
 

Detailed Description

Definition at line 157 of file GObservation.hpp.

Constructor & Destructor Documentation

GObservation::model_func::model_func ( const GObservation parent,
const GModel model,
GModelPar par,
const GEvent event 
)
inline

Definition at line 159 of file GObservation.hpp.

Member Function Documentation

double GObservation::model_func::eval ( const double &  x)
virtual

Model function evaluation for gradient computation.

Parameters
[in]xFunction value.

Implements GFunction.

Definition at line 1867 of file GObservation.cpp.

References GModel::eval(), GOptimizerPar::factor_value(), m_event, m_model, m_par, and m_parent.

Member Data Documentation

const GEvent* GObservation::model_func::m_event
protected

Event.

Definition at line 172 of file GObservation.hpp.

Referenced by eval().

const GModel* GObservation::model_func::m_model
protected

Model.

Definition at line 170 of file GObservation.hpp.

Referenced by eval().

GModelPar* GObservation::model_func::m_par
protected

Model parameter.

Definition at line 171 of file GObservation.hpp.

Referenced by eval().

const GObservation* GObservation::model_func::m_parent
protected

Observation.

Definition at line 169 of file GObservation.hpp.

Referenced by eval().


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