dsf.covariance.ingredients.galaxy_bias module¶
Galaxy-bias scripts for covariance calculations.
This module provides small utilities for constructing simple galaxy-bias inputs from tomographic lens-bin redshifts. The functions are intentionally independent of survey presets so they can be used with any tomography builder or user-supplied bin centers.
- dsf.covariance.ingredients.galaxy_bias.linear_galaxy_bias(cosmo, z_bin_centers, *, bias_prefactor=1.0, round_decimals=4)[source]¶
Return linear galaxy bias evaluated at lens-bin centers.
The model uses a constant prefactor divided by the linear growth factor, evaluated at the scale factor corresponding to each lens-bin center.
- Parameters:
cosmo (Cosmology) – CCL cosmology object.
z_bin_centers (ndarray[tuple[Any, ...], dtype[float64]] | list[float] | tuple[float, ...]) – Lens-bin center redshifts.
bias_prefactor (float) – Bias normalization prefactor. Defaults to 1.0.
round_decimals (int | None) – Optional number of decimals used to round the output. Set to
Noneto return unrounded values.
- Returns:
Galaxy-bias values evaluated at the input redshifts.
- Return type:
ndarray[tuple[Any, …], dtype[float64]]