34 #define CTLIKE_NAME "ctlike"
47 explicit ctlike(
const GObservations&
obs);
48 ctlike(
int argc,
char *argv[]);
59 const int&
iter(
void)
const;
60 const double&
logL(
void)
const;
61 const double&
nobs(
void)
const;
62 const double&
npred(
void)
const;
bool m_refit_if_failed
Refitting in case of failure?
bool refit(const GOptimizer *opt)
Refit needed?
int m_max_iter
Maximum number of iterations.
bool m_fix_spat_for_ts
Fix spatial parameters for TS computation?
double m_npred
Number of predicted events.
Maximum likelihood fitting tool.
virtual ~ctlike(void)
Destructor.
ctlike & operator=(const ctlike &app)
Assignment operator.
void get_parameters(void)
Get application parameters.
void free_members(void)
Delete class members.
const GObservations & obs(void) const
Return observation container.
double reoptimize_lm(void)
Re-optimise model parameters for TS computation.
void process(void)
Process maximum likelihood analysis.
GFilename m_outmodel
Source model output XML file name.
const GOptimizer * opt(void) const
Return optimizer.
Likelihood tool base class interface definition.
const double & npred(void) const
Return number of predicted events.
void init_members(void)
Initialise class members.
const int & iter(void) const
Return number of maximum likelihood iterations.
int m_iter
Number of iterations.
const double & nobs(void) const
Return number of observed events.
void optimize_lm(void)
Optimise model parameters.
void copy_members(const ctlike &app)
Copy class members.
GFilename m_outcovmat
Covariance matrix output file name.
double m_logL
Maximum log likelihood.
GChatter m_chatter
Chattiness.
double m_nobs
Number of observed events.
ctlike(void)
Void constructor.
void save(void)
Save results.
void clear(void)
Clear ctlike tool.
bool m_apply_edisp
Apply energy dispersion?
const double & logL(void) const
Return maximum likelihood value.
Base class for likelihood tools.
GXml xml_result(void) const
Generate XML result.