Akima spline interpolation (GSL) More...
#include <interp.h>
Public Types | |
typedef boost::numeric::ublas::vector< double > | ubvector |
typedef boost::numeric::ublas::vector_slice< ubvector > | ubvector_slice |
typedef boost::numeric::ublas::vector_range< ubvector > | ubvector_range |
typedef boost::numeric::ublas::slice | slice |
typedef boost::numeric::ublas::range | range |
Public Member Functions | |
interp_akima () | |
Create a base interpolation object with or without periodic boundary conditions. | |
virtual void | set (size_t size, const vec_t &xa, const vec2_t &ya) |
Initialize interpolation routine. | |
virtual double | eval (double x0) const |
Give the value of the function ![]() | |
virtual double | deriv (double x0) const |
Give the value of the derivative ![]() | |
virtual double | deriv2 (double x0) const |
Give the value of the second derivative ![]() | |
virtual double | integ (double aa, double bb) const |
Give the value of the integral ![]() | |
virtual const char * | type () const |
Return the type, "interp_akima" . | |
![]() | |
virtual double | operator() (double x0) const |
Give the value of the function ![]() | |
Protected Member Functions | |
void | akima_calc (const vec_t &x_array, size_t size, ubvector &umx) |
For initializing the interpolation. | |
![]() | |
double | integ_eval (double ai, double bi, double ci, double di, double xi, double a, double b) const |
An internal function to assist in computing the integral for both the cspline and Akima types. | |
Protected Attributes | |
Storage for Akima spline interpolation | |
ubvector | b |
ubvector | c |
ubvector | d |
ubvector | um |
![]() | |
search_vec< const vec_t > | svx |
To perform binary searches. More... | |
const vec_t * | px |
Independent vector. | |
const vec2_t * | py |
Dependent vector. | |
size_t | sz |
Vector size. | |
Private Member Functions | |
interp_akima (const interp_akima< vec_t, vec2_t > &) | |
interp_akima< vec_t, vec2_t > & | operator= (const interp_akima< vec_t, vec2_t > &) |
Additional Inherited Members | |
![]() | |
size_t | min_size |
The minimum size of the vectors to interpolate between. More... | |
See also the Interpolation section of the O2scl User's guide.
This class uses natural boundary conditions, where the second derivative vanishes at each end point. Extrapolation effectively assumes that the second derivative is linear outside of the endpoints. Use interp_akima_peri for perodic boundary conditions.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).