21 #ifndef MYGSL_GATE_FUNCTION_H 22 #define MYGSL_GATE_FUNCTION_H 63 double amplitude_ = std::numeric_limits<double>::quiet_NaN());
103 virtual void tree_dump(std::ostream & out_ = std::clog,
104 const std::string & title_ =
"",
105 const std::string & indent_ =
"",
106 bool inherit_ =
false)
const;
111 double _eval(
double x_)
const;
132 #endif // MYGSL_GATE_FUNCTION_H #define DATATOOLS_CLONEABLE_DECLARATION(Copyable)
Definition: i_cloneable.h:113
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart printing.
double get_non_zero_domain_min() const
The minimum bound of the non-zero domain (default is plus infinity)
void _set_defaults()
Set default attributes values.
Gate function.
Definition: gate_function.h:51
virtual bool is_initialized() const
Check initialization status.
double _eval(double x_) const
Evaluation.
virtual ~gate_function()
Destructor.
double get_non_zero_domain_max() const
The maximum bound of the non-zero domain (default is plus infinity)
double get_center() const
Return the enter.
Abstract interface for unary functions : R -> R.
Definition: i_unary_function.h:44
void set_amplitude(double amplitude_)
Set the amplitude.
gate_function()
Default constructor.
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
void set_width(double width_)
Set the width.
void set_center(double center_)
Set the center.
double get_width() const
Return the width.
virtual void initialize(const datatools::properties &config_, const unary_function_dict_type &functors_)
Initialization from a container of parameters and a dictionary of functors.
std::map< std::string, unary_function_handle_type > unary_function_dict_type
Alias for dictionary of handles to unary function objects.
Definition: unary_function_utils.h:30
#define MYGSL_UNARY_FUNCTOR_REGISTRATION_INTERFACE(UnaryFunctorClass)
Definition: i_unary_function.h:206
virtual void reset()
Reset the function.
double get_amplitude() const
Return the mplitude.