Class interp_linear (o2scl)¶
-
template<class
vec_t
, classvec2_t
= vec_t>
classo2scl
::
interp_linear
: public o2scl::interp_base<vec_t, vec_t>¶ Linear interpolation (GSL)
See also the Interpolation section of the O2scl User’s guide.
Linear interpolation requires no calls to allocate() or free() as there is no internal storage required.
Public Functions
-
interp_linear
()¶
-
~interp_linear
()¶
-
double
eval
(double x0) const¶ Give the value of the function \( y(x=x_0) \) .
-
double
deriv
(double x0) const¶ Give the value of the derivative \( y^{\prime}(x=x_0) \) .
-
double
deriv2
(double x0) const¶ Give the value of the second derivative \( y^{\prime \prime}(x=x_0) \) (always zero)
-
double
integ
(double a, double b) const¶ Give the value of the integral \( \int_a^{b}y(x)~dx \) .
-
const char *
type
() const¶ Return the type,
"interp_linear"
.
Private Functions
-
interp_linear
(const interp_linear<vec_t, vec2_t>&)¶
-
interp_linear<vec_t, vec2_t> &
operator=
(const interp_linear<vec_t, vec2_t>&)¶
-