Functions vector_integ_xy_interp¶
-
template<class
vec_t
, classvec2_t
>
doubleo2scl
::
vector_integ_xy_interp
(size_t n, const vec_t &x, const vec2_t &y, size_t interp_type = itp_linear)¶ Compute the integral over
y(x)
using interpolation.Assuming vectors
y
andx
define a function \( y(x) \) then this computes\[ \int_{x_0}^{x^{n-1}} y(x)~dx \]using interpolation to approximate the result.See also vector_deriv_interp() and vector_deriv2_interp() in vector_derint.h .
-
template<class
vec_t
, classvec2_t
, classvec3_t
>
voido2scl
::
vector_integ_xy_interp
(size_t n, const vec_t &x, const vec2_t &y, vec3_t &iy, size_t interp_type = itp_linear)¶ Compute integral over
y(x)
and store result in a vector using interpolation.