Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions | Protected Member Functions | Private Member Functions
akima_interp< vec_t > Class Template Reference

Akima spline interpolation (GSL) More...

#include <interp.h>

Inheritance diagram for akima_interp< vec_t >:
base_interp< vec_t > akima_peri_interp< vec_t >

Detailed Description

template<class vec_t>
class akima_interp< vec_t >

This class uses natural boundary conditions, where the second derivative vanishes at each end point. Extrapolation effectively assumes that the second derivative is linear outside of the endpoints. Use akima_peri_interp for perodic boundary conditions.

Definition at line 765 of file interp.h.

Public Member Functions

 akima_interp ()
 Create a base interpolation object with or without periodic boundary conditions.
virtual int allocate (size_t size)
 Allocate memory, assuming x and y have size size.
virtual int init (const vec_t &xa, const vec_t &ya, size_t size)
 Initialize interpolation routine.
virtual int free ()
 Free allocated memory.
virtual int interp (const vec_t &x_array, const vec_t &y_array, size_t size, double x, double &y)
 Give the value of the function $ y(x=x_0) $ .
virtual int deriv (const vec_t &x_array, const vec_t &y_array, size_t size, double x, double &dydx)
 Give the value of the derivative $ y^{\prime}(x=x_0) $ .
virtual int deriv2 (const vec_t &x_array, const vec_t &y_array, size_t size, double x, double &d2ydx2)
 Give the value of the second derivative $ y^{\prime \prime}(x=x_0) $ .
virtual int integ (const vec_t &x_array, const vec_t &y_array, size_t size, double aa, double bb, double &result)
 Give the value of the integral $ \int_a^{b}y(x)~dx $ .
virtual const char * type ()
 Return the type, "akima_interp".

Protected Member Functions

void akima_calc (const vec_t &x_array, size_t size, double m[])
 For initializing the interpolation.

Protected Attributes

Storage for Akima spline interpolation
double * b
double * c
double * d
double * um

Private Member Functions

 akima_interp (const akima_interp< vec_t > &)
akima_interp< vec_t > & operator= (const akima_interp< vec_t > &)

Member Function Documentation

template<class vec_t>
virtual int akima_interp< vec_t >::init ( const vec_t &  xa,
const vec_t &  ya,
size_t  size 
) [inline, virtual]

Non-periodic boundary conditions

Reimplemented from base_interp< vec_t >.

Reimplemented in akima_peri_interp< vec_t >.

Definition at line 862 of file interp.h.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.