Class is an abstract type expressing the concept of interpolation. More...

#include <interpolation.hpp>

Inheritance diagram for julian::Interpolation:
julian::AKIMA julian::CubicInterpolation julian::FlatBackward julian::FlatForward julian::LinearInterpolation julian::LogarithmicInterpolation julian::NaturalCubicSpline julian::PolynomialInterpolation julian::QuadraticInterpolation julian::SteffenInterpolation

Public Member Functions

 Interpolation ()
 Constructor. More...
 
virtual double operator() (const std::vector< double > &x, const std::vector< double > &y, const double &x_int) const =0
 Operator performing calculation. More...
 
virtual Interpolationclone () const =0
 Virtual copy constructor. More...
 
virtual std::string info () const =0
 Info about class. More...
 
virtual unsigned int getMinSize () const =0
 return the minimum number of points required by the interpolation More...
 
virtual ~Interpolation ()
 Destructor. More...
 

Private Member Functions

template<class Archive >
void serialize (Archive &, const unsigned int)
 interface used by Boost serialization library More...
 

Friends

class boost::serialization::access
 

Detailed Description

Class is an abstract type expressing the concept of interpolation.

This class is a interface of all interpolation techniques.

Note
Interpolation is only defined for interval defined by the first and the last argument given. The interpolation objects do not extrapolate values outside the interval.
Precondition
x vector must be sorted.
Examples:
algebraicBootstrapperExample.cpp, constrainedBootstrapperExample.cpp, rootFindingBootstrapperExample.cpp, and unconstrainedBootstrapperExample.cpp.

Constructor & Destructor Documentation

julian::Interpolation::Interpolation ( )
inline

Constructor.

Default constructor.

virtual julian::Interpolation::~Interpolation ( )
inlinevirtual

Destructor.

Default destructor.

Member Function Documentation

virtual Interpolation* julian::Interpolation::clone ( ) const
pure virtual
virtual unsigned int julian::Interpolation::getMinSize ( ) const
pure virtual
virtual std::string julian::Interpolation::info ( ) const
pure virtual
virtual double julian::Interpolation::operator() ( const std::vector< double > &  x,
const std::vector< double > &  y,
const double &  x_int 
) const
pure virtual

Operator performing calculation.

This operator returns the value of interpolant for x_init argument. Interpolant is fitted to (x,y) points.

Implemented in julian::LinearInterpolation, julian::NaturalCubicSpline, julian::AKIMA, julian::SteffenInterpolation, julian::LogarithmicInterpolation, julian::CubicInterpolation, julian::FlatBackward, julian::QuadraticInterpolation, julian::FlatForward, and julian::PolynomialInterpolation.

template<class Archive >
void julian::Interpolation::serialize ( Archive &  ,
const unsigned  int 
)
inlineprivate

interface used by Boost serialization library


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