Rosetta  2015.31
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
numeric::interpolation::spline::Interpolator Class Referenceabstract

#include <Interpolator.hh>

Inheritance diagram for numeric::interpolation::spline::Interpolator:
Inheritance graph
[legend]

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...
 
- Public Member Functions inherited from utility::pointer::ReferenceCount
 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

- Public Types inherited from utility::pointer::ReferenceCount
typedef platform::Size Size
 
typedef platform::Size size_type
 

Constructor & Destructor Documentation

numeric::interpolation::spline::Interpolator::~Interpolator ( )
virtual

Automatically generated virtual destructor for class deriving directly from ReferenceCount.

Auto-generated virtual destructor

numeric::interpolation::spline::Interpolator::Interpolator ( )

Member Function Documentation

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().

void numeric::interpolation::spline::Interpolator::deserialize ( utility::json_spirit::mObject  data)
virtual
Real numeric::interpolation::spline::Interpolator::get_lb_function_cutoff ( ) const
Real numeric::interpolation::spline::Interpolator::get_ub_function_cutoff ( ) const
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 void numeric::interpolation::spline::Interpolator::interpolate ( Real  x,
Real y,
Real dy 
)
pure virtual
utility::json_spirit::Value numeric::interpolation::spline::Interpolator::serialize ( )
virtual
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_.

Member Data Documentation

bool numeric::interpolation::spline::Interpolator::has_lb_function_
private
bool numeric::interpolation::spline::Interpolator::has_ub_function_
private
Real numeric::interpolation::spline::Interpolator::lb_cutoff_
private
Real numeric::interpolation::spline::Interpolator::lb_intercept_
private
Real numeric::interpolation::spline::Interpolator::lb_slope_
private
Real numeric::interpolation::spline::Interpolator::ub_cutoff_
private
Real numeric::interpolation::spline::Interpolator::ub_intercept_
private
Real numeric::interpolation::spline::Interpolator::ub_slope_
private

The documentation for this class was generated from the following files: