FromArray¶
- class hmf.density_field.transfer_models.FromArray(cosmo, **model_parameters)[source]¶
Use a spline over a given array to define the transfer function.
- Parameters:
cosmo (
astropy.cosmology.FLRWinstance) – The cosmology used in the calculation**model_parameters (unpack-dict) –
Parameters specific to this model. In this case, available parameters are the following. To see their default values, check the
_defaultsclass attribute.- k:
array Wavenumbers, in [h/Mpc]
- T:
array Transfer function
Methods
- __init__(cosmo, **model_parameters)
- classmethod get_models() dict[str, type]
Get a dictionary of all implemented models for this component.
- lnt(lnk)[source]
Natural log of the transfer function.
- Parameters:
lnk (array_like) – Wavenumbers [Mpc/h]
- Returns:
lnt – The log of the transfer function at lnk.
- Return type:
array_like