TransferComponent

class hmf.density_field.transfer_models.TransferComponent(cosmo, **model_parameters)[source]

Base class for transfer models.

The only necessary function to specify is lnt, which returns the log transfer given lnk.

Parameters:
  • cosmo (astropy.cosmology.FLRW instance) – The cosmology used in the calculation

  • **model_parameters – Any model-specific parameters.

Methods

__init__(cosmo, **model_parameters)[source]
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