linear_interp Class Template Reference

#include <interp.h>

Inheritance diagram for linear_interp:

base_interp

Detailed Description

template<class vec_t>
class linear_interp< vec_t >

Linear interpolation (GSL).

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

Definition at line 149 of file interp.h.


Public Member Functions

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) $ .
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 $ .

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

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page