lfkit.utils.interpolation#

Interpolation utilities for 1D tabulated curves.

This module provides small helpers for preparing tabulated (x, y) data for interpolation and constructing simple 1D interpolators with optional extrapolation. These utilities are intended for internal use across LFKit (e.g., correction tables, response curves, and other tabulated mappings).

Functions

as_1d_finite_grid(z_grid, *[, name])

build_1d_interpolator(z, y, *, method, ...)

Builds a 1D interpolator for tabulated data.

linear_interp_extrap(x, xp, fp)

Interpolates linearly and extrapolates linearly outside the tabulated range.

prep_strictly_increasing_xy(z, y)

Prepares tabulated data for 1D interpolation.