A specialization of o2scl::interp_vec for C-style arrays. More...
#include <interp.h>
See also the Interpolation section of the O2scl User's guide.
Public Member Functions | |
interp_array_vec (size_t nv, const arr_t &x, const arr_t &y, size_t interp_type) | |
Create with base interpolation object it . | |
![]() | |
interp_vec () | |
Blank interpolator. | |
interp_vec (size_t n, const arr_t &x, const arr_t &y, size_t interp_type=itp_cspline) | |
Create an interpolation object with interpolation type itp_cspline based on the first n entries of vectors x and y . | |
void | set (size_t n, const arr_t &x, const arr_t &y) |
Modify the interpolation object to operate on the first n entries of vectors x and y . | |
void | set (size_t n, const arr_t &x, const arr_t &y, size_t interp_type) |
Set a new vector to interpolate. | |
void | clear () |
Manually clear the pointer to the user-specified vector. | |
virtual double | eval (const double x0) const |
Give the value of the function ![]() | |
virtual double | operator() (double x0) const |
Give the value of the function ![]() | |
virtual double | deriv (const double x0) const |
Give the value of the derivative ![]() | |
virtual double | deriv2 (const double x0) const |
Give the value of the second derivative ![]() | |
virtual double | integ (const double x1, const double x2) const |
Give the value of the integral ![]() | |
virtual const char * | type () const |
Return the type, "interp_vec". | |
Additional Inherited Members | |
![]() | |
size_t | min_size |
The minimum size of the vectors to interpolate between. More... | |
![]() | |
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. | |
![]() | |
interp_base< arr_t, arr_t > * | itp |
Base interpolation object. | |
size_t | itype |
Interpolation type. | |
![]() | |
search_vec< const arr_t > | svx |
To perform binary searches. More... | |
const arr_t * | px |
Independent vector. | |
const arr_t * | py |
Dependent vector. | |
size_t | sz |
Vector size. | |
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).