![]() |
Rosetta
2021.16
|
#include <Interpolator.hh>

Public Member Functions | |
| ~Interpolator () override | |
| Automatically generated virtual destructor for class deriving directly from VirtualBase. More... | |
| Interpolator () | |
| virtual InterpolatorOP | clone () const =0 |
| virtual void | interpolate (numeric::Real x, numeric::Real &y, numeric::Real &dy) const =0 |
| void | set_lb_function (numeric::Real const &lb, numeric::Real const &slope, numeric::Real const &intercept) |
| set a linear function describing the behavior of the interpolator after a given lower bound. This lower bound can be distinct from the lb of the spline More... | |
| void | set_ub_function (numeric::Real const &ub, numeric::Real const &slope, numeric::Real const &intercept) |
| set a linear function describing the behavior of the interpolator after a given upper bound. This upper bound can be distinct from the ub of the spline More... | |
| bool | has_lb_function () const |
| return true if the interpolator has a defined lower bound function More... | |
| bool | has_ub_function () const |
| return false if the interpolator has a defined upper bound function More... | |
| numeric::Real | get_lb_function_cutoff () const |
| get the lower bound cutoff More... | |
| numeric::Real | get_ub_function_cutoff () const |
| get the upper bound cutoff More... | |
| void | compute_lb_function_solution (numeric::Real x, numeric::Real &y) const |
| compute the y value of the lower bound function given an x value More... | |
| void | compute_ub_function_solution (numeric::Real x, numeric::Real &y) const |
| compute the y value of the lower bound function given an x value More... | |
| virtual utility::json_spirit::Value | serialize () const |
| serialize the Interpolator to a json_spirit object More... | |
| virtual void | deserialize (utility::json_spirit::mObject data) |
| deserialize a json_spirit object to a Interpolator More... | |
| virtual bool | operator== (Interpolator const &other) const |
| virtual bool | same_type_as_me (Interpolator const &other) const |
Public Member Functions inherited from utility::VirtualBase | |
| VirtualBase ()=default | |
| Default constructor. More... | |
| virtual | ~VirtualBase ()=default |
| The virtual destructor is one of the main reasons for the VirtualBase class. More... | |
| VirtualBase (VirtualBase const &)=default | |
| VirtualBase (VirtualBase &&)=default | |
| VirtualBase & | operator= (VirtualBase const &)=default |
| VirtualBase & | operator= (VirtualBase &&)=default |
|
overridedefault |
Automatically generated virtual destructor for class deriving directly from VirtualBase.
Auto-generated virtual destructor
| numeric::interpolation::spline::Interpolator::Interpolator | ( | ) |
|
pure virtual |
| void numeric::interpolation::spline::Interpolator::compute_lb_function_solution | ( | numeric::Real | x, |
| numeric::Real & | y | ||
| ) | const |
compute the y value of the lower bound function given an x value
References lb_intercept_, and lb_slope_.
Referenced by numeric::interpolation::spline::SimpleInterpolator::interpolate(), and numeric::interpolation::spline::CompoundInterpolator::interpolate().
| void numeric::interpolation::spline::Interpolator::compute_ub_function_solution | ( | numeric::Real | x, |
| numeric::Real & | y | ||
| ) | const |
compute the y value of the lower bound function given an x value
References ub_intercept_, and ub_slope_.
Referenced by numeric::interpolation::spline::SimpleInterpolator::interpolate(), and numeric::interpolation::spline::CompoundInterpolator::interpolate().
|
virtual |
deserialize a json_spirit object to a Interpolator
Reimplemented in numeric::interpolation::spline::CompoundInterpolator, and numeric::interpolation::spline::SimpleInterpolator.
References has_lb_function_, has_ub_function_, lb_cutoff_, lb_intercept_, lb_slope_, ub_cutoff_, ub_intercept_, and ub_slope_.
Referenced by numeric::interpolation::spline::SimpleInterpolator::deserialize(), and numeric::interpolation::spline::CompoundInterpolator::deserialize().
| Real numeric::interpolation::spline::Interpolator::get_lb_function_cutoff | ( | ) | const |
get the lower bound cutoff
References lb_cutoff_.
Referenced by numeric::interpolation::spline::SimpleInterpolator::interpolate(), and numeric::interpolation::spline::CompoundInterpolator::interpolate().
| Real numeric::interpolation::spline::Interpolator::get_ub_function_cutoff | ( | ) | const |
get the upper bound cutoff
References ub_cutoff_.
Referenced by numeric::interpolation::spline::SimpleInterpolator::interpolate(), and numeric::interpolation::spline::CompoundInterpolator::interpolate().
| bool numeric::interpolation::spline::Interpolator::has_lb_function | ( | ) | const |
return true if the interpolator has a defined lower bound function
References has_lb_function_.
Referenced by numeric::interpolation::spline::SimpleInterpolator::interpolate(), and numeric::interpolation::spline::CompoundInterpolator::interpolate().
| bool numeric::interpolation::spline::Interpolator::has_ub_function | ( | ) | const |
return false if the interpolator has a defined upper bound function
References has_ub_function_.
Referenced by numeric::interpolation::spline::SimpleInterpolator::interpolate(), and numeric::interpolation::spline::CompoundInterpolator::interpolate().
|
pure virtual |
|
virtual |
Reimplemented in numeric::interpolation::spline::CompoundInterpolator, and numeric::interpolation::spline::SimpleInterpolator.
References has_lb_function_, has_ub_function_, lb_cutoff_, lb_intercept_, lb_slope_, same_type_as_me(), ub_cutoff_, ub_intercept_, and ub_slope_.
|
virtual |
Reimplemented in numeric::interpolation::spline::CompoundInterpolator, and numeric::interpolation::spline::SimpleInterpolator.
Referenced by operator==().
|
virtual |
serialize the Interpolator to a json_spirit object
Reimplemented in numeric::interpolation::spline::CompoundInterpolator, and numeric::interpolation::spline::SimpleInterpolator.
References has_lb_function_, has_ub_function_, lb_cutoff_, lb_intercept_, lb_slope_, utility::tools::make_vector(), ub_cutoff_, ub_intercept_, and ub_slope_.
Referenced by numeric::interpolation::spline::SimpleInterpolator::serialize(), and numeric::interpolation::spline::CompoundInterpolator::serialize().
| void numeric::interpolation::spline::Interpolator::set_lb_function | ( | numeric::Real const & | lb, |
| numeric::Real const & | slope, | ||
| numeric::Real const & | intercept | ||
| ) |
set a linear function describing the behavior of the interpolator after a given lower bound. This lower bound can be distinct from the lb of the spline
References has_lb_function_, lb_cutoff_, lb_intercept_, and lb_slope_.
| void numeric::interpolation::spline::Interpolator::set_ub_function | ( | numeric::Real const & | ub, |
| numeric::Real const & | slope, | ||
| numeric::Real const & | intercept | ||
| ) |
set a linear function describing the behavior of the interpolator after a given upper bound. This upper bound can be distinct from the ub of the spline
References has_ub_function_, ub_cutoff_, ub_intercept_, and ub_slope_.
|
private |
Referenced by deserialize(), has_lb_function(), operator==(), serialize(), and set_lb_function().
|
private |
Referenced by deserialize(), has_ub_function(), operator==(), serialize(), and set_ub_function().
|
private |
Referenced by deserialize(), get_lb_function_cutoff(), operator==(), serialize(), and set_lb_function().
|
private |
Referenced by compute_lb_function_solution(), deserialize(), operator==(), serialize(), and set_lb_function().
|
private |
Referenced by compute_lb_function_solution(), deserialize(), operator==(), serialize(), and set_lb_function().
|
private |
Referenced by deserialize(), get_ub_function_cutoff(), operator==(), serialize(), and set_ub_function().
|
private |
Referenced by compute_ub_function_solution(), deserialize(), operator==(), serialize(), and set_ub_function().
|
private |
Referenced by compute_ub_function_solution(), deserialize(), operator==(), serialize(), and set_ub_function().
1.8.7