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

#include <GCOMDris.hpp>

Inheritance diagram for GCOMDris::likelihood:
GOptimizerFunction

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 GVectorgradient (void)
 Return pointer to gradient vector. More...
 
virtual GMatrixSparsecurvature (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 GOptimizerFunctionoperator= (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...
 
GCOMDrism_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...
 

Detailed Description

Definition at line 90 of file GCOMDris.hpp.

Constructor & Destructor Documentation

GCOMDris::likelihood::likelihood ( GCOMDris dris,
const int &  ieng,
const double &  norm 
)

Log-likelihood function constructor.

Parameters
[in]drisParent calling likelihood function.
[in]iengDRW energy bin.
[in]normNormalisation 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().

Member Function Documentation

GMatrixSparse * GCOMDris::likelihood::curvature ( void  )
inlinevirtual

Return pointer to curvature matrix.

Returns
Pointer to curvature matrix.

Returns a pointer to the parameter curvature matrix.

Implements GOptimizerFunction.

Definition at line 283 of file GCOMDris.hpp.

void GCOMDris::likelihood::eval ( const GOptimizerPars pars)
virtual

Log-likelihood function evaluation.

Parameters
[in]parsFunction 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.

References log(), and norm().

GVector * GCOMDris::likelihood::gradient ( void  )
inlinevirtual

Return pointer to gradient vector.

Returns
Pointer to gradient vector.

Returns a pointer to the parameter gradient vector.

Implements GOptimizerFunction.

Definition at line 269 of file GCOMDris.hpp.

double GCOMDris::likelihood::value ( void  ) const
inlinevirtual

Return log-likelihood value of optimizer function.

Returns
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.

Member Data Documentation

GNdarray GCOMDris::likelihood::m_activrate
protected

Activation rate array multiplied by EHA cut correction.

Definition at line 107 of file GCOMDris.hpp.

Referenced by likelihood().

GNdarray GCOMDris::likelihood::m_activrate_sum
protected

Time integrated activation rate array.

Definition at line 110 of file GCOMDris.hpp.

Referenced by likelihood().

GMatrixSparse GCOMDris::likelihood::m_curvature
protected

Curvature matrix.

Definition at line 114 of file GCOMDris.hpp.

Referenced by likelihood().

GNdarray GCOMDris::likelihood::m_diffrate
protected

Vetorate - activation rate array.

Definition at line 108 of file GCOMDris.hpp.

Referenced by likelihood().

GNdarray GCOMDris::likelihood::m_diffrate_sum
protected

Time integrated difference rate array.

Definition at line 111 of file GCOMDris.hpp.

Referenced by likelihood().

GVector GCOMDris::likelihood::m_gradient
protected

Gradient vector.

Definition at line 113 of file GCOMDris.hpp.

Referenced by likelihood().

int GCOMDris::likelihood::m_ieng
protected

DRW energy bin.

Definition at line 102 of file GCOMDris.hpp.

Referenced by likelihood().

double GCOMDris::likelihood::m_norm
protected

Normalisation value.

Definition at line 103 of file GCOMDris.hpp.

Referenced by likelihood().

int GCOMDris::likelihood::m_nphibar
protected

Number of phibar layers.

Definition at line 105 of file GCOMDris.hpp.

Referenced by likelihood().

int GCOMDris::likelihood::m_nsp
protected

Number of superpackets.

Definition at line 104 of file GCOMDris.hpp.

Referenced by likelihood().

GCOMDris* GCOMDris::likelihood::m_this
protected

Pointer to GCOMDris object.

Definition at line 115 of file GCOMDris.hpp.

Referenced by likelihood().

double GCOMDris::likelihood::m_value
protected

Function value.

Definition at line 112 of file GCOMDris.hpp.

Referenced by value().

GNdarray GCOMDris::likelihood::m_vetorate
protected

Vetorate array multiplied by EHA cut correction.

Definition at line 106 of file GCOMDris.hpp.

Referenced by likelihood().

GNdarray GCOMDris::likelihood::m_vetorate_sum
protected

Time integrated vetorate array.

Definition at line 109 of file GCOMDris.hpp.

Referenced by likelihood().


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