21 #ifndef MYGSL_TRIANGLE_FUNCTION_H 22 #define MYGSL_TRIANGLE_FUNCTION_H 115 virtual void tree_dump(std::ostream & out_ = std::clog,
116 const std::string & title_ =
"",
117 const std::string & indent_ =
"",
118 bool inherit_ =
false)
const;
123 double _eval(
double x_)
const;
145 #endif // MYGSL_TRIANGLE_FUNCTION_H void set_head_width(double head_width_)
Set the head width.
#define DATATOOLS_CLONEABLE_DECLARATION(Copyable)
Definition: i_cloneable.h:113
triangle_function()
Default constructor.
double get_non_zero_domain_max() const
The maximum bound of the non-zero domain (default is plus infinity)
void set_amplitude(double amplitude_)
Set the amplitude.
virtual ~triangle_function()
Destructor.
virtual void initialize(const datatools::properties &config_, const unary_function_dict_type &functors_)
Initialization from a container of parameters and a dictionary of functors.
double get_center() const
Return the center.
double get_head_width() const
Return the head width.
double get_non_zero_domain_min() const
The minimum bound of the non-zero domain (default is plus infinity)
double get_tail_width() const
Return the tail width.
void _set_defaults()
Set default attributes values.
Abstract interface for unary functions : R -> R.
Definition: i_unary_function.h:44
double _eval(double x_) const
Evaluation.
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart printing.
void reset()
Reset the function.
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
void set_tail_width(double tail_width_)
Set the tail width.
double get_amplitude() const
Return the amplitude.
virtual bool is_initialized() const
Check initialization status.
General asymmetric triangle function.
Definition: triangle_function.h:51
void set_center(double center_)
Set the center.