39 Calculates the antiderivative \f$F(x) = \int f(x) dx + C\f$ to the given function over the given segment (indicated by `start_index` and `end_index`).
40 The given values are assumed to be preprocessed (`NaN`s are stripped already).
41 \param x_values List of x-positions \f$x\f$.
42 \param y_values List of y-values \f$y\f$ matching \f$x\f$.
43 \param initial The interpolation constant \f$C\f$.
44 \param interpolation \copybrief interpolation Defaults to \ref interpolation. For more, see \ref interpolation.
45 \param *args Additional positional arguments, will be passed to the called integration function.
46 \param **kwargs Additional keyword arguments, will be passed to the called integration function.
47 """
48 interpolation = interpolation if interpolation isnotNoneelse self.interpolation
63 Calculates integral over the given segment (indicated by `start_index` and `end_index`) \f$F(x)|_{a}^{b} = \int_{a}^{b} f(x) dx + C\f$.
64 The given values are assumed to be preprocessed (`NaN`s are stripped already).
65 \param x_values List of x-positions \f$x\f$.
66 \param y_values List of y-values \f$y\f$ matching \f$x\f$.
67 \param start_index Index, where the integration should start (index of \f$a\f$). Defaults to the first item of `x_values` (`0`).
68 \param end_index Index, where the integration should stop (index of \f$b\f$). This index is included. Defaults to the first item of `x_values` (`len(x_values) -1`).
69 \param initial The interpolation constant \f$C\f$.
70 \param interpolation \copybrief interpolation For more, see \ref interpolation.
71 \param *args Additional positional arguments, will be passed to the called integration function.
72 \param **kwargs Additional keyword arguments, will be passed to the called integration function.
73 """
74 interpolation = interpolation if interpolation isnotNoneelse self.interpolation
75 start_index = start_index if start_index isnotNoneelse 0
76 end_index = end_index if end_index isnotNoneelse len(x_values) - 1