Class FractionalAdamsFunctions
The free functions of QuantLib's fractionaladams.hpp.
public static class FractionalAdamsFunctions
- Inheritance
-
FractionalAdamsFunctions
- Inherited Members
Methods
RiemannLiouvilleIntegral<T>(ReadOnlySpan<T>, double, double)
The product-trapezoidal Riemann-Liouville fractional integral I^α y(t_N) = (1/Γ(α)) ∫₀^{t_N} (t_N − s)^{α−1} y(s) ds, α ≥ 0, from the values of y on a uniform grid, by integrating y's piecewise linear interpolant against the kernel: at α = 1 the trapezoidal rule, and the identity as α falls to 0.
public static T RiemannLiouvilleIntegral<T>(ReadOnlySpan<T> y, double alpha, double dt) where T : INumberBase<T>
Parameters
yReadOnlySpan<T>The values on the grid, at least two.
alphadoubleThe integration order, not negative.
dtdoubleThe grid's spacing.
Returns
- T
The integral.
Type Parameters
Remarks
It builds the weights at every call; integrations on one (α, N) grid can share a RiemannLiouvilleWeights.
Exceptions
- ArgumentException
alphais negative, there are fewer than two values, ordtisn't positive.