Classes | Namespaces | Enumerations | Functions
interp.h File Reference

One-dimensional interpolation classes and interpolation types. More...

#include <iostream>
#include <string>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/vector_proxy.hpp>
#include <o2scl/search_vec.h>
#include <o2scl/tridiag.h>

Go to the source code of this file.

Classes

class  o2scl::interp_base< vec_t, vec2_t >
 Base low-level interpolation class [abstract base]. More...
 
class  o2scl::interp_linear< vec_t, vec2_t >
 Linear interpolation (GSL) More...
 
class  o2scl::interp_cspline< vec_t, vec2_t >
 Cubic spline interpolation (GSL) More...
 
class  o2scl::interp_cspline_peri< vec_t, vec2_t >
 Cubic spline interpolation with periodic boundary conditions (GSL) More...
 
class  o2scl::interp_akima< vec_t, vec2_t >
 Akima spline interpolation (GSL) More...
 
class  o2scl::interp_akima_peri< vec_t, vec2_t >
 Akima spline interpolation with periodic boundary conditions (GSL) More...
 
class  o2scl::interp_steffen< vec_t, vec2_t >
 Steffen's monotonicity-preserving interpolation. More...
 
class  o2scl::interp_monotonic< vec_t, vec2_t >
 Monotonicity-preserving interpolation. More...
 
class  o2scl::interp< vec_t, vec2_t >
 Interpolation class for general vectors. More...
 
class  o2scl::interp_vec< vec_t, vec2_t >
 Interpolation class for pre-specified vector. More...
 
class  o2scl::interp_array< n >
 A specialization of interp for C-style double arrays. More...
 
class  o2scl::interp_array_vec< arr_t >
 A specialization of o2scl::interp_vec for C-style arrays. More...
 

Namespaces

 o2scl
 The main O2scl namespace.
 

Enumerations

enum  {
  o2scl::itp_linear =1, o2scl::itp_cspline =2, o2scl::itp_cspline_peri =3, o2scl::itp_akima =4,
  o2scl::itp_akima_peri =5, o2scl::itp_monotonic =6, o2scl::itp_steffen =7
}
 Interpolation types. More...
 

Functions

template<class vec_t , class vec2_t >
size_t o2scl::vector_level_count (double level, size_t n, vec_t &x, vec2_t &y)
 Count level crossings. More...
 
template<class vec_t , class vec2_t >
void o2scl::vector_find_level (double level, size_t n, vec_t &x, vec2_t &y, std::vector< double > &locs)
 Perform inverse linear interpolation. More...
 
template<class vec_t , class vec2_t >
double o2scl::vector_integ_linear (size_t n, vec_t &x, vec2_t &y)
 Compute the integral over y(x) using linear interpolation. More...
 
template<class vec_t , class vec2_t >
void o2scl::vector_invert_enclosed_sum (double sum, size_t n, vec_t &x, vec2_t &y, double &lev, int verbose=0)
 Compute the endpoints which enclose the regions whose integral is equal to sum. More...
 
template<class vec_t , class vec2_t >
void o2scl::vector_region_parint (size_t n, vec_t &x, vec2_t &y, double frac, std::vector< double > &locs, int verbose=0)
 Find the region enclosing a partial integral.
 
template<class vec_t , class vec2_t >
void o2scl::vector_bound_parint (size_t n, vec_t &x, vec2_t &y, double frac, double &low, double &high)
 Find the boundaries of the region enclosing a partial integral.
 

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