Helper Functions¶
These functions are used by the main integral equation solvers. However, they can also be called independently.
-
inteq.helpers.
makeH
(dim: int) → numpy.ndarray¶ Make H matrix for estimating Fredholm equations as in (Twomey 1963).
- Parameters
- dimint
The dimension of the H matrix.
- Returns
- Hmat2-D array
The H matrix
-
inteq.helpers.
simpson
(dim: int) → numpy.ndarray¶ Make H matrix for estimating Fredholm equations as in (Twomey 1963).
- Parameters
- dimint
The dimension of the H matrix.
- Returns
- weights1-D array
The quadrature weights according to Simpson’s rule.
-
inteq.helpers.
smooth
(v: numpy.ndarray) → numpy.ndarray¶ Smooth a vector that is oscillating.
- Parameters
- v1-D array
The oscillating vector you want to smooth.
- Returns
- sv1-D array
The smoothed vector.