1 #ifndef MYGSL_HEAVISIDE_FUNCTION_H 2 #define MYGSL_HEAVISIDE_FUNCTION_H 53 virtual void tree_dump(std::ostream & out_ = std::clog,
54 const std::string & title_ =
"",
55 const std::string & indent_ =
"",
56 bool inherit_ =
false)
const;
61 double _eval(
double x_)
const;
80 #endif // MYGSL_HEAVISIDE_FUNCTION_H void set_convention(convention_type convention_)
Set the convention.
#define DATATOOLS_CLONEABLE_DECLARATION(Copyable)
Definition: i_cloneable.h:113
heaviside_function(convention_type convention_=CONVENTION_INVALID)
Default constructor.
void reset()
Reset the function.
double _eval(double x_) const
Evaluation.
convention_type
Definition: heaviside_function.h:19
virtual bool is_initialized() const
Check initialization status.
double get_non_zero_domain_min() const
The minimum bound of the non-zero domain (default is plus infinity)
convention_type get_convention() const
Return the convention.
Definition: heaviside_function.h:13
Definition: heaviside_function.h:22
Definition: heaviside_function.h:20
Definition: heaviside_function.h:23
Abstract interface for unary functions : R -> R.
Definition: i_unary_function.h:44
Definition: heaviside_function.h:21
virtual void initialize(const datatools::properties &config_, const unary_function_dict_type &functors_)
Initialization from a container of parameters and a dictionary of functors.
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
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 tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart printing.
void _set_defaults()
Set default attributes values.
Definition: heaviside_function.h:24
virtual ~heaviside_function()
Destructor.