27 #ifndef GMODELTEMPORALCONST_HPP
28 #define GMODELTEMPORALCONST_HPP
69 virtual void clear(
void);
71 virtual std::string
classname(
void)
const;
72 virtual std::string
type(
void)
const;
74 const bool& gradients =
false)
const;
82 double norm(
void)
const;
83 void norm(
const double& norm);
104 return (
"GModelTemporalConst");
double norm(const GVector &vector)
Computes vector norm.
XML element node class interface definition.
virtual std::string type(void) const
Return model type.
Abstract temporal model base class.
virtual GModelTemporalConst & operator=(const GModelTemporalConst &model)
Assignment operator.
Random number generator class.
Time container class definition.
virtual GModelTemporalConst * clone(void) const
Clone constant temporal model.
void copy_members(const GModelTemporalConst &model)
Copy class members.
virtual void write(GXmlElement &xml) const
Write model into XML element.
virtual void clear(void)
Clear constant temporal model.
Model parameter class interface definition.
virtual ~GModelTemporalConst(void)
Destructor.
Abstract temporal model base class interface definition.
virtual std::string classname(void) const
Return class name.
GModelPar m_norm
Constant.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print constant information.
GModelTemporalConst(void)
Void constructor.
void init_members(void)
Initialise class members.
void free_members(void)
Delete class members.
double value(void) const
Return parameter value.
virtual void read(const GXmlElement &xml)
Read model from XML element.
double norm(void) const
Return normalization factor.
virtual double eval(const GTime &srcTime, const bool &gradients=false) const
Evaluate function.
Time class interface definition.
Constant temporal model class.
virtual GTimes mc(const double &rate, const GTime &tmin, const GTime &tmax, GRan &ran) const
Returns vector of random event times.