#include <smart_interp.h>
x
for which an interpolation or differentiation will likely produce a finite result.
Definition at line 747 of file smart_interp.h.
Public Member Functions | |
smart_interp_vec (size_t n, const vec_t &x, const vec_t &y) | |
Create with base interpolation objects it and rit . | |
smart_interp_vec (base_interp_mgr< vec_t > &it1, base_interp_mgr< svec_t > &it2, size_t n, const vec_t &x, const vec_t &y) | |
Create with base interpolation objects it and rit . | |
virtual double | interp (const double x0) |
Give the value of the function ![]() | |
virtual double | deriv (const double x0) |
Give the value of the derivative ![]() | |
virtual double | deriv2 (const double x0) |
Give the value of the second derivative ![]() | |
virtual double | integ (const double x1, const double x2) |
Give the value of the integral ![]() | |
Data Fields | |
def_interp_mgr< vec_t, cspline_interp > | dim1 |
Default interpolation manager. | |
def_interp_mgr< svec_t, cspline_interp > | dim2 |
Default interpolation manager. | |
Protected Member Functions | |
size_t | local_lookup (size_t n, const vec_t &x, double x0) |
A lookup function for generic vectors. | |
int | find_inc_subset (const double x0, size_t sz, const vec_t &x, const vec_t &y, size_t &nsz) |
Try to find the largest monotonic and finite region around the desired location. | |
Protected Attributes | |
bool | sxalloc |
If true, then sx and sy have been allocated. | |
svec_t * | sx |
Storage for internally created subvector. | |
svec_t * | sy |
Storage for internally created subvector. | |
base_interp< vec_t > * | rit1 |
Pointer to base interpolation object. | |
base_interp< svec_t > * | rit2 |
Pointer to base interpolation object. | |
base_interp_mgr< vec_t > * | bim1 |
Pointer to base interpolation manager. | |
base_interp_mgr< svec_t > * | bim2 |
Pointer to base interpolation manager. | |
alloc_t | ao |
Memory allocator for objects of type alloc_vec_t . | |
bool | inc |
True if the user-specified x vector is increasing. | |
const vec_t * | lx |
Pointer to user-specified vector. | |
const vec_t * | ly |
Pointer to user-specified vector. | |
alloc_vec_t | lrx |
Reversed version of vector. | |
alloc_vec_t | lry |
Reversed version of vector. | |
size_t | ln |
Size of user-specifed vector. |
int find_inc_subset | ( | const double | x0, | |
size_t | sz, | |||
const vec_t & | x, | |||
const vec_t & | y, | |||
size_t & | nsz | |||
) | [inline, protected] |
This function looks through the vector x
near the element closest to x0
to find the largest possible monotonic region. If it succeeds, it returns gsl_success, and if it fails, it returns gsl_efailed. It does not call the error handler.
Definition at line 1044 of file smart_interp.h.
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page