GammaLib 2.0.0
Loading...
Searching...
No Matches
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.
 
- Public Member Functions inherited from GFunction
 GFunction (void)
 Void constructor.
 
 GFunction (const GFunction &function)
 Copy constructor.
 
virtual ~GFunction (void)
 Destructor.
 
GFunctionoperator= (const GFunction &function)
 Assignment operator.
 

Protected Attributes

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

Additional Inherited Members

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

Detailed Description

Definition at line 157 of file GObservation.hpp.

Constructor & Destructor Documentation

◆ model_func()

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

◆ eval()

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

◆ m_event

const GEvent* GObservation::model_func::m_event
protected

Event.

Definition at line 172 of file GObservation.hpp.

Referenced by eval().

◆ m_model

const GModel* GObservation::model_func::m_model
protected

Model.

Definition at line 170 of file GObservation.hpp.

Referenced by eval().

◆ m_par

GModelPar* GObservation::model_func::m_par
protected

Model parameter.

Definition at line 171 of file GObservation.hpp.

Referenced by eval().

◆ m_parent

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: