27 #ifndef GMODELSPECTRALEXPONENTIAL_HPP
28 #define GMODELSPECTRALEXPONENTIAL_HPP
67 virtual void clear(
void);
69 virtual std::string
classname(
void)
const;
70 virtual std::string
type(
void)
const;
73 const bool& gradients =
false)
const;
146 return (
"GModelSpectralExponential");
virtual void write(GXmlElement &xml) const
Write model into XML element.
void free_members(void)
Delete class members.
void update_mc_cache(const GEnergy &emin, const GEnergy &emax) const
Update Monte Carlo pre computation cache.
Energy value class definition.
Abstract spectral model base class.
GModelSpectral * m_exponent
Exponent model component.
void init_members(void)
Initialise class members.
virtual std::string type(void) const
Return model type.
GEnergy m_mc_emin
Last minimum energy.
virtual double eval(const GEnergy &srcEng, const GTime &srcTime=GTime(), const bool &gradients=false) const =0
virtual void read(const GXmlElement &xml)
Read model from XML element.
virtual GModelSpectralExponential * clone(void) const
Clone Exponential spectral model model.
double eval(const double &x)
eflux_kern(const GModelSpectral *spec)
Random number generator class.
Spectral nodes model class definition.
virtual void clear(void)
Clear Exponential spectral model.
Spectral nodes model class.
virtual double eval(const GEnergy &srcEng, const GTime &srcTime=GTime(), const bool &gradients=false) const
Evaluate function.
Single parameter function abstract base class definition.
const GModelSpectral * m_exp
virtual GModelSpectralExponential & operator=(const GModelSpectralExponential &model)
Assignment operator.
virtual double flux(const GEnergy &emin, const GEnergy &emax) const
Returns model photon flux between emin, emax
GModelSpectralNodes m_mc_spectrum
MC spectrum cache.
const GModelSpectral * exponent(void) const
Return exponent.
Exponential spectral model class.
Abstract spectral model base class interface definition.
double eval(const double &x)
Single parameter function abstract base class.
virtual std::string classname(void) const
Return class name.
virtual ~GModelSpectralExponential(void)
Destructor.
std::string m_type
Model type.
flux_kern(const GModelSpectral *spec)
GVector exp(const GVector &vector)
Computes exponential of vector elements.
GEnergy m_mc_emax
Last maximum energy.
virtual double eflux(const GEnergy &emin, const GEnergy &emax) const
Returns model energy flux between emin, emax
virtual GEnergy mc(const GEnergy &emin, const GEnergy &emax, const GTime &time, GRan &ran) const
Returns Monte Carlo energy between [emin, emax].
GModelSpectralExponential(void)
Void constructor.
void copy_members(const GModelSpectralExponential &model)
Copy class members.
std::vector< double > m_mc_values
Parameter values.
Class that handles energies in a unit independent way.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print Exponential spectral model information.