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

Linear interpolation (GSL) More...

#include <interp.h>

Inheritance diagram for linear_interp< vec_t >:
base_interp< vec_t >

Detailed Description

template<class vec_t>
class linear_interp< vec_t >

Linear interpolation requires no calls to allocate() or free() as there is no internal storage required.

Definition at line 159 of file interp.h.

Public Member Functions

virtual int init (const vec_t &x, const vec_t &y, size_t size)
 Initialize interpolation routine.
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, const vec_t &y, size_t size, double x0, double &d2ydx2)
 Give the value of the second derivative $ y^{\prime \prime}(x=x_0) $ (always zero)
virtual int integ (const vec_t &x_array, const vec_t &y_array, size_t size, double a, double b, double &result)
 Give the value of the integral $ \int_a^{b}y(x)~dx $ .
virtual const char * type ()
 Return the type, "linear_interp".

Private Member Functions

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

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.