lfkit.luminosity_functions.models.non_parametric#

Tabulated and binned luminosity function models.

This module provides non-parametric luminosity function models. Unlike Schechter, Saunders, Gaussian, or power-law forms, these models do not assume a fixed analytic shape. Instead, the luminosity function is supplied directly as values on a magnitude grid or inside magnitude bins.

Two related representations are provided:

tabulated_lf

Interpolates luminosity function values sampled at magnitude grid points. This is useful when an LF has already been measured, simulated, or fitted elsewhere and should be evaluated smoothly between tabulated points.

binned_lf

Treats the luminosity function as piecewise constant inside magnitude bins. This is useful for directly representing measured binned luminosity functions without imposing interpolation structure inside each bin.

Redshift-dependent versions are also provided. These allow the LF to vary over a two-dimensional grid in absolute magnitude and redshift.

These models are especially useful when the bright end, faint end, or redshift evolution should be data-driven rather than forced into a Schechter-like or Saunders-like form.

Functions

binned_lf(absolute_mag, *, ...[, fill_value])

Return a piecewise constant binned luminosity function.

distance_binned_lf(absolute_mag, ...[, ...])

Return a piecewise constant binned LF in magnitude and comoving distance.

distance_tabulated_lf(absolute_mag, ...[, ...])

Return a luminosity function interpolated over magnitude and comoving distance.

redshift_binned_lf(absolute_mag, redshift, ...)

Return a piecewise constant binned luminosity function in magnitude and redshift.

redshift_tabulated_lf(absolute_mag, ...[, ...])

Return a luminosity function interpolated over magnitude and redshift.

tabulated_lf(absolute_mag, *, ...[, ...])

Return a luminosity function interpolated from tabulated values.