Skip to main content

Module helpers

Module helpers 

Source
Expand description

Helper functions for numerical integration and common operations.

Constants§

DEFAULT_CONVERGENCE_TOL
Default convergence tolerance for iterative algorithms.
NUMERICAL_EPS
Small epsilon for numerical comparisons (e.g., avoiding division by zero).

Functions§

extract_curves
Extract curves from column-major data matrix.
l2_distance
Compute L2 distance between two curves using integration weights.
simpsons_weights
Compute Simpson’s rule integration weights for non-uniform grid.
simpsons_weights_2d
Compute 2D integration weights using tensor product of 1D weights.