![]() |
Object-oriented Scientific Computing Library: Version 0.910
|
Interpolation class. More...
#include <interp.h>
Interpolation of ovector like objects is performed with the default template parameters, and array_interp is provided for simple interpolation on C-style arrays.
The type of interpolation to be performed can be specified using the set_type() function or in the constructor. The default is cubic splines with natural boundary conditions.
Public Member Functions | |
o2scl_interp (base_interp_mgr< vec_t > &it) | |
Create with base interpolation object it . | |
o2scl_interp () | |
Create an interpolator using the default cubic spline interpolation. | |
virtual double | interp (const double x0, size_t n, const vec_t &x, const vec_t &y) |
Give the value of the function ![]() | |
virtual double | deriv (const double x0, size_t n, const vec_t &x, const vec_t &y) |
Give the value of the derivative ![]() | |
virtual double | deriv2 (const double x0, size_t n, const vec_t &x, const vec_t &y) |
Give the value of the second derivative ![]() | |
virtual double | integ (const double x1, const double x2, size_t n, const vec_t &x, const vec_t &y) |
Give the value of the integral ![]() | |
int | set_type (base_interp_mgr< vec_t > &it) |
Set base interpolation object. | |
Data Fields | |
def_interp_mgr< vec_t, cspline_interp > | dim1 |
Default base interpolation object (cubic spline with natural boundary conditions) | |
Protected Attributes | |
base_interp< vec_t > * | itp |
Pointer to base interpolation object. | |
base_interp_mgr< vec_t > * | bim1 |
Pointer to base interpolation manager. | |
Private Member Functions | |
o2scl_interp (const o2scl_interp< vec_t > &) | |
o2scl_interp< vec_t > & | operator= (const o2scl_interp< vec_t > &) |
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).