21 #ifndef MYGSL_COMPOSITE_FUNCTION_H 22 #define MYGSL_COMPOSITE_FUNCTION_H 89 virtual void tree_dump(std::ostream & out_ = std::clog,
90 const std::string & title_ =
"",
91 const std::string & indent_ =
"",
92 bool inherit_ =
false)
const;
97 double _eval(
double x_)
const;
116 #endif // MYGSL_COMPOSITE_FUNCTION_H virtual bool is_initialized() const
Check initialization status.
bool is_in_domain_of_definition(double x_) const
Check if a value is in the domain of definition of the function (default: true)
void reset()
Reset the composite function.
void set_g(const i_unary_function &)
Set the second functor.
virtual ~composite_function()
Destructor.
Composite function.
Definition: composite_function.h:38
double get_non_zero_domain_max() const
The maximum bound of the non-zero domain (default is plus infinity)
bool has_g() const
Check the second functor.
double _eval(double x_) const
Evaluation.
Abstract interface for unary functions : R -> R.
Definition: i_unary_function.h:44
Smart handle to an unary function object.
Definition: unary_function_utils.h:33
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart printing.
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
bool has_f() const
Check the first functor.
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
void set_f(const i_unary_function &)
Set the first functor.
#define MYGSL_UNARY_FUNCTOR_REGISTRATION_INTERFACE(UnaryFunctorClass)
Definition: i_unary_function.h:206
bool has_explicit_domain_of_definition() const
Check if the function has an explicit domain of definition (default: false)
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_non_zero_domain_min() const
The minimum bound of the non-zero domain (default is minus infinity)
composite_function()
Default constructor.