GammaLib
2.1.0.dev
|
#include <GCOMDris.hpp>
Public Member Functions | |
likelihood (GCOMDris *dris, const int &ieng, const double &norm) | |
Log-likelihood function constructor. More... | |
virtual void | eval (const GOptimizerPars &pars) |
Log-likelihood function evaluation. More... | |
virtual double | value (void) const |
Return log-likelihood value of optimizer function. More... | |
virtual GVector * | gradient (void) |
Return pointer to gradient vector. More... | |
virtual GMatrixSparse * | curvature (void) |
Return pointer to curvature matrix. More... | |
Public Member Functions inherited from GOptimizerFunction | |
GOptimizerFunction (void) | |
Void constructor. More... | |
GOptimizerFunction (const GOptimizerFunction &fct) | |
Copy constructor. More... | |
virtual | ~GOptimizerFunction (void) |
Destructor. More... | |
virtual GOptimizerFunction & | operator= (const GOptimizerFunction &fct) |
Assignment operator. More... | |
Protected Attributes | |
int | m_ieng |
DRW energy bin. More... | |
double | m_norm |
Normalisation value. More... | |
int | m_nsp |
Number of superpackets. More... | |
int | m_nphibar |
Number of phibar layers. More... | |
GNdarray | m_vetorate |
Vetorate array multiplied by EHA cut correction. More... | |
GNdarray | m_activrate |
Activation rate array multiplied by EHA cut correction. More... | |
GNdarray | m_diffrate |
Vetorate - activation rate array. More... | |
GNdarray | m_vetorate_sum |
Time integrated vetorate array. More... | |
GNdarray | m_activrate_sum |
Time integrated activation rate array. More... | |
GNdarray | m_diffrate_sum |
Time integrated difference rate array. More... | |
double | m_value |
Function value. More... | |
GVector | m_gradient |
Gradient vector. More... | |
GMatrixSparse | m_curvature |
Curvature matrix. More... | |
GCOMDris * | m_this |
Pointer to GCOMDris object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from GOptimizerFunction | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GOptimizerFunction &fct) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Definition at line 90 of file GCOMDris.hpp.
GCOMDris::likelihood::likelihood | ( | GCOMDris * | dris, |
const int & | ieng, | ||
const double & | norm | ||
) |
Log-likelihood function constructor.
[in] | dris | Parent calling likelihood function. |
[in] | ieng | DRW energy bin. |
[in] | norm | Normalisation constant. |
Constructs the log-likelihood function that is used to determine the value of f_prompt.
Definition at line 2268 of file GCOMDris.cpp.
References m_activrate, m_activrate_sum, m_curvature, m_diffrate, m_diffrate_sum, m_gradient, m_ieng, m_norm, m_nphibar, m_nsp, m_this, m_vetorate, m_vetorate_sum, GCOMDris::m_wrk_activrate, GCOMDris::m_wrk_counts, GCOMDris::m_wrk_ehacutcorr, GCOMDris::m_wrk_vetorate, norm(), and GNdarray::shape().
|
inlinevirtual |
Return pointer to curvature matrix.
Returns a pointer to the parameter curvature matrix.
Implements GOptimizerFunction.
Definition at line 283 of file GCOMDris.hpp.
|
virtual |
Log-likelihood function evaluation.
[in] | pars | Function parameters. |
Computes the log-likelihood function, its gradient and its curvature at the specified function parameters.
Implements GOptimizerFunction.
Definition at line 2327 of file GCOMDris.cpp.
|
inlinevirtual |
Return pointer to gradient vector.
Returns a pointer to the parameter gradient vector.
Implements GOptimizerFunction.
Definition at line 269 of file GCOMDris.hpp.
|
inlinevirtual |
Return log-likelihood value of optimizer function.
Returns the log-likelihood value of optimizer function.
Implements GOptimizerFunction.
Definition at line 255 of file GCOMDris.hpp.
References m_value.
|
protected |
Activation rate array multiplied by EHA cut correction.
Definition at line 107 of file GCOMDris.hpp.
Referenced by likelihood().
|
protected |
Time integrated activation rate array.
Definition at line 110 of file GCOMDris.hpp.
Referenced by likelihood().
|
protected |
|
protected |
Vetorate - activation rate array.
Definition at line 108 of file GCOMDris.hpp.
Referenced by likelihood().
|
protected |
Time integrated difference rate array.
Definition at line 111 of file GCOMDris.hpp.
Referenced by likelihood().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Pointer to GCOMDris object.
Definition at line 115 of file GCOMDris.hpp.
Referenced by likelihood().
|
protected |
|
protected |
Vetorate array multiplied by EHA cut correction.
Definition at line 106 of file GCOMDris.hpp.
Referenced by likelihood().
|
protected |
Time integrated vetorate array.
Definition at line 109 of file GCOMDris.hpp.
Referenced by likelihood().