Public Member Functions | List of all members
o2scl::interp_array_vec< arr_t > Class Template Reference

A specialization of o2scl::interp_vec for C-style arrays. More...

#include <interp.h>

Inheritance diagram for o2scl::interp_array_vec< arr_t >:
o2scl::interp_vec< arr_t > o2scl::interp_base< arr_t, arr_t >

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.
 
- Public Member Functions inherited from o2scl::interp_vec< arr_t >
 interp_vec ()
 Blank interpolator.
 
 interp_vec (size_t n, const arr_t &x, const arr_t &y, size_t interp_type=itp_cspline)
 Create with base interpolation object it.
 
void set (size_t n, const arr_t &x, const arr_t &y)
 Set a new vector to interpolate.
 
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 $ y(x=x_0) $ .
 
virtual double operator() (double x0) const
 Give the value of the function $ y(x=x_0) $ .
 
virtual double deriv (const double x0) const
 Give the value of the derivative $ y^{\prime}(x=x_0) $ .
 
virtual double deriv2 (const double x0) const
 Give the value of the second derivative $ y^{\prime \prime}(x=x_0) $ .
 
virtual double integ (const double x1, const double x2) const
 Give the value of the integral $ \int_a^{b}y(x)~dx $ .
 
virtual const char * type () const
 Return the type, "interp_vec".
 

Additional Inherited Members

- Public Attributes inherited from o2scl::interp_base< arr_t, arr_t >
size_t min_size
 The minimum size of the vectors to interpolate between. More...
 
- Protected Member Functions inherited from o2scl::interp_base< arr_t, arr_t >
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 inherited from o2scl::interp_vec< arr_t >
interp_base< arr_t, arr_t > * itp
 Base interpolation object.
 
size_t itype
 Interpolation type.
 
- Protected Attributes inherited from o2scl::interp_base< arr_t, arr_t >
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.
 

Detailed Description

template<class arr_t>
class o2scl::interp_array_vec< arr_t >

See also the Interpolation section of the O2scl User's guide.

Definition at line 1889 of file interp.h.


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

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).