Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
o2scl::interp_steffen< vec_t, vec2_t > Class Template Reference

Steffen's monotonicity-preserving interpolation. More...

#include <interp.h>

Inheritance diagram for o2scl::interp_steffen< vec_t, vec2_t >:
o2scl::interp_base< vec_t, vec2_t >

Public Types

typedef boost::numeric::ublas::vector< double > ubvector
 
typedef boost::numeric::ublas::vector_slice< ubvectorubvector_slice
 
typedef boost::numeric::ublas::vector_range< ubvectorubvector_range
 
typedef boost::numeric::ublas::slice slice
 
typedef boost::numeric::ublas::range range
 

Public Member Functions

 interp_steffen ()
 Create a base interpolation object.
 
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 $ y(x=x_0) $ .
 
virtual double deriv (double x0) const
 Give the value of the derivative $ y^{\prime}(x=x_0) $ .
 
virtual double deriv2 (double x0) const
 Give the value of the second derivative $ y^{\prime \prime}(x=x_0) $ .
 
virtual double integ (double al, double bl) const
 Give the value of the integral $ \int_a^{b}y(x)~dx $ .
 
virtual const char * type () const
 Return the type, "interp_steffen".
 
- Public Member Functions inherited from o2scl::interp_base< vec_t, vec2_t >
virtual double operator() (double x0) const
 Give the value of the function $ y(x=x_0) $ .
 

Protected Member Functions

double copysign (const double x, const double y)
 Flip the sign of x if x and y have different signs.
 
- Protected Member Functions inherited from o2scl::interp_base< vec_t, vec2_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

Storage for cubic spline interpolation
ubvector a
 
ubvector b
 
ubvector c
 
ubvector d
 
ubvector y_prime
 
- Protected Attributes inherited from o2scl::interp_base< vec_t, vec2_t >
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_steffen (const interp_steffen< vec_t, vec2_t > &)
 
interp_steffen< vec_t, vec2_t > & operator= (const interp_steffen< vec_t, vec2_t > &)
 

Additional Inherited Members

- Public Attributes inherited from o2scl::interp_base< vec_t, vec2_t >
size_t min_size
 The minimum size of the vectors to interpolate between. More...
 

Detailed Description

template<class vec_t, class vec2_t = vec_t>
class o2scl::interp_steffen< vec_t, vec2_t >

Adapted from the GSL version by J.-F. Caron which was based on Steffen90 .

Definition at line 1048 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).