45#define G_READ "GModelSpatialRadialProfileGauss::read(GXmlElement&)"
46#define G_WRITE "GModelSpatialRadialProfileGauss::write(GXmlElement&)"
110 const double& sigma) :
178 if (
this != &model) {
350 result.append(
"=== GModelSpatialRadialProfileGauss ===");
355 for (
int i = 0; i <
size(); ++i) {
378 m_type =
"GaussianProfile";
442 double sigma2 = sigma_rad * sigma_rad;
443 double theta2 = theta * theta;
444 double value = std::exp(-0.5 * theta2 / sigma2) /
Exception handler interface definition.
Mathematical function definitions.
const GModelSpatialRadialProfileGauss g_radial_disk_seed
Radial Gaussian profile model class interface definition.
Spatial model registry class definition.
XML element node class interface definition.
void write(GXmlElement &xml) const
Set or update parameter attributes in XML element.
void read(const GXmlElement &xml)
Extract parameter attributes from XML element.
void copy_members(const GModelSpatialRadialProfileGauss &model)
Copy class members.
virtual double theta_max(void) const
Return maximum model radius (in radians)
virtual void write(GXmlElement &xml) const
Write model into XML element.
virtual GModelSpatialRadialProfileGauss & operator=(const GModelSpatialRadialProfileGauss &model)
Assignment operator.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print information.
virtual void read(const GXmlElement &xml)
Read model from XML element.
GModelSpatialRadialProfileGauss(void)
Void constructor.
GModelPar m_sigma
Gaussian width (deg)
virtual void clear(void)
Clear radial Gaussian profile model.
void init_members(void)
Initialise class members.
double sigma(void) const
Return Gaussian sigma.
virtual ~GModelSpatialRadialProfileGauss(void)
Destructor.
virtual GModelSpatialRadialProfileGauss * clone(void) const
Clone radial Gaussian profile model.
virtual double profile_value(const double &theta) const
Radial profile.
void free_members(void)
Delete class members.
virtual double theta_min(void) const
Return maximum model radius (in radians)
virtual GModelSpatialRadialProfile & operator=(const GModelSpatialRadialProfile &model)
Assignment operator.
bool m_coord_indep
True if model independent of sky coordinates.
void init_members(void)
Initialise class members.
void free_members(void)
Delete class members.
void free_members(void)
Delete class members.
virtual void write(GXmlElement &xml) const
Write model into XML element.
virtual void read(const GXmlElement &xml)
Read model from XML element.
void init_members(void)
Initialise class members.
const GSkyDir & dir(void) const
Return position of radial spatial model.
Interface definition for the spatial model registry class.
std::string m_type
Spatial model type.
std::string type(void) const
Return model type.
std::vector< GModelPar * > m_pars
Parameter pointers.
void init_members(void)
Initialise class members.
int size(void) const
Return number of parameters.
void free_members(void)
Delete class members.
void free(void)
Free a parameter.
const double & scale(void) const
Return parameter scale.
bool has_grad(void) const
Signal if parameter gradient is computed analytically.
const std::string & unit(void) const
Return parameter unit.
double min(void) const
Return parameter minimum boundary.
double gradient(void) const
Return parameter gradient.
void clear(void)
Clear parameter.
double value(void) const
Return parameter value.
const std::string & name(void) const
Return parameter name.
std::string parformat(const std::string &s, const int &indent=0)
Convert string in parameter format.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.
const GXmlElement * xml_get_par(const std::string &origin, const GXmlElement &xml, const std::string &name)
Return pointer to parameter with given name in XML element.
GXmlElement * xml_need_par(const std::string &origin, GXmlElement &xml, const std::string &name)
Return pointer to parameter with given name in XML element.
void xml_check_parnum(const std::string &origin, const GXmlElement &xml, const int &number)
Checks number of parameters.
void xml_check_type(const std::string &origin, GXmlElement &xml, const std::string &type)
Checks the model type.