lfkit.luminosity_functions.redshift_density#

Luminosity function redshift density utilities.

This module provides helpers for converting a luminosity function callable into a redshift density curve.

The core operation integrates the luminosity function over the observable absolute magnitude range implied by an apparent magnitude limit,

\[n_{\mathrm{LF}}(z) = \int_{M_{\mathrm{bright}}}^{M_{\mathrm{lim}}(z)} \phi(M, z)\,dM.\]

A second helper multiplies this integrated number density by a user supplied redshift or volume weight. Distance and volume quantities are supplied as callables, keeping the interface independent of any cosmology backend.

Magnitude corrections are supplied as scalar or array-like values evaluated on the same redshift grid.

Functions

lf_integrated_number_density(z, lf, *, ...)

Return LF-integrated number density as a function of redshift.

lf_weighted_redshift_density(z, lf, *, ...)

Return an LF-weighted redshift-density curve.