![]() |
Rosetta
2015.31
|
#include <Interpolator.hh>
Public Member Functions | |
virtual | ~Interpolator () |
Automatically generated virtual destructor for class deriving directly from ReferenceCount. More... | |
Interpolator () | |
virtual void | interpolate (Real x, Real &y, Real &dy)=0 |
void | set_lb_function (Real const &lb, Real const &slope, 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 (Real const &ub, Real const &slope, 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... | |
Real | get_lb_function_cutoff () const |
get the lower bound cutoff More... | |
Real | get_ub_function_cutoff () const |
get the upper bound cutoff More... | |
void | compute_lb_function_solution (Real x, Real &y) const |
compute the y value of the lower bound function given an x value More... | |
void | compute_ub_function_solution (Real x, Real &y) const |
compute the y value of the lower bound function given an x value More... | |
virtual utility::json_spirit::Value | serialize () |
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... | |
![]() | |
ReferenceCount () | |
Default constructor. More... | |
virtual | ~ReferenceCount () |
Private Attributes | |
bool | has_lb_function_ |
bool | has_ub_function_ |
Real | lb_cutoff_ |
Real | ub_cutoff_ |
Real | lb_slope_ |
Real | ub_slope_ |
Real | lb_intercept_ |
Real | ub_intercept_ |
Additional Inherited Members | |
![]() | |
typedef platform::Size | Size |
typedef platform::Size | size_type |
|
virtual |
Automatically generated virtual destructor for class deriving directly from ReferenceCount.
Auto-generated virtual destructor
numeric::interpolation::spline::Interpolator::Interpolator | ( | ) |
void numeric::interpolation::spline::Interpolator::compute_lb_function_solution | ( | Real | x, |
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::CompoundInterpolator::interpolate(), and numeric::interpolation::spline::SimpleInterpolator::interpolate().
void numeric::interpolation::spline::Interpolator::compute_ub_function_solution | ( | Real | x, |
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::CompoundInterpolator::interpolate(), and numeric::interpolation::spline::SimpleInterpolator::interpolate().
|
virtual |
deserialize a json_spirit object to a Interpolator
Reimplemented in numeric::interpolation::spline::SimpleInterpolator, and numeric::interpolation::spline::CompoundInterpolator.
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::CompoundInterpolator::deserialize(), and numeric::interpolation::spline::SimpleInterpolator::deserialize().
Real numeric::interpolation::spline::Interpolator::get_lb_function_cutoff | ( | ) | const |
get the lower bound cutoff
References lb_cutoff_.
Referenced by numeric::interpolation::spline::CompoundInterpolator::interpolate(), and numeric::interpolation::spline::SimpleInterpolator::interpolate().
Real numeric::interpolation::spline::Interpolator::get_ub_function_cutoff | ( | ) | const |
get the upper bound cutoff
References ub_cutoff_.
Referenced by numeric::interpolation::spline::CompoundInterpolator::interpolate(), and numeric::interpolation::spline::SimpleInterpolator::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::CompoundInterpolator::interpolate(), and numeric::interpolation::spline::SimpleInterpolator::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::CompoundInterpolator::interpolate(), and numeric::interpolation::spline::SimpleInterpolator::interpolate().
|
virtual |
serialize the Interpolator to a json_spirit object
Reimplemented in numeric::interpolation::spline::SimpleInterpolator, and numeric::interpolation::spline::CompoundInterpolator.
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 yaml.representer.BaseRepresenter::represent(), numeric::interpolation::spline::CompoundInterpolator::serialize(), and numeric::interpolation::spline::SimpleInterpolator::serialize().
void numeric::interpolation::spline::Interpolator::set_lb_function | ( | Real const & | lb, |
Real const & | slope, | ||
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 | ( | Real const & | ub, |
Real const & | slope, | ||
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(), serialize(), and set_lb_function().
|
private |
Referenced by deserialize(), has_ub_function(), serialize(), and set_ub_function().
|
private |
Referenced by deserialize(), get_lb_function_cutoff(), serialize(), and set_lb_function().
|
private |
Referenced by compute_lb_function_solution(), deserialize(), serialize(), and set_lb_function().
|
private |
Referenced by compute_lb_function_solution(), deserialize(), serialize(), and set_lb_function().
|
private |
Referenced by deserialize(), get_ub_function_cutoff(), serialize(), and set_ub_function().
|
private |
Referenced by compute_ub_function_solution(), deserialize(), serialize(), and set_ub_function().
|
private |
Referenced by compute_ub_function_solution(), deserialize(), serialize(), and set_ub_function().