Class interp_steffen (o2scl)¶
-
template<class
vec_t
, classvec2_t
= vec_t>
classo2scl
::
interp_steffen
: public o2scl::interp_base<vec_t, vec_t>¶ Steffen’s monotonicity-preserving interpolation.
Adapted from the GSL version by J.-F. Caron which was based on [Steffen90].
Storage for cubic spline interpolation
-
double
copysign
(const double x, const double y)¶ Flip the sign of x if x and y have different signs.
-
interp_steffen
()¶ Create a base interpolation object.
-
~interp_steffen
()¶
-
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) \) .
-
double
integ
(double al, double bl) const¶ Give the value of the integral \( \int_a^{b}y(x)~dx \) .
-
const char *
type
() const¶ Return the type,
"interp_steffen"
.
-
interp_steffen
(const interp_steffen<vec_t, vec2_t>&)¶
-
interp_steffen<vec_t, vec2_t> &
operator=
(const interp_steffen<vec_t, vec2_t>&)¶
-
double