FromArray

class hmf.density_field.transfer_models.FromArray(*args, **kwargs)[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

Attributes

references

References to cite when this model is used, each a formatted citation string.

Methods

classmethod get_models() → Mapping[str, type]

Get a read-only mapping of all implemented models for this component.

The mapping is a live view of the registry, so it shows models registered later, but it can not be used to add or remove models.

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