simpson#

exo_skryer.aux_functions.simpson(y, *, x: Array | None = None, dx: float = 1.0, axis: int = -1, even: Literal['simpson', 'avg', 'first', 'last'] | None = None)[source]#

JAX-compatible composite Simpson integrator, similar to scipy.integrate.simpson.

Parameters:
yarray_like

Values to integrate.

xarray_like, optional

Sample points. If 1D, must have length y.shape[axis]. If broadcastable, must match y.

dxfloat

Spacing used when x is None.

axisint

Axis of integration.

even{None, ‘simpson’, ‘avg’, ‘first’, ‘last’}

Handling when number of samples is even. Matches SciPy’s documented behaviours.