hmf.density_field.transfer_models.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.FLRW instance) – 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 _defaults class attribute.

    k

    array Wavenumbers, in [h/Mpc]

    T

    array Transfer function

Methods

__init__(cosmo, **model_parameters)

Initialize self.

get_models()

Get a dictionary of all implemented models for this component.

lnt(lnk)

Natural log of the transfer function