WDM¶
- class hmf.alternatives.wdm.WDM(mx, cosmo=FlatLambdaCDM(name='Planck18', H0=<Quantity 67.66 km / (Mpc s)>, Om0=0.30966, Tcmb0=<Quantity 2.7255 K>, Neff=3.046, m_nu=<Quantity [0., 0., 0.06] eV>, Ob0=0.04897), z: float | None = None, **model_params)[source]¶
Base class for all WDM components.
Do not use this class directly. The primary purpose of the WDM Component is to modify the transfer function. Thus, the only requisite method to define in any given subclass is
transfer(), which calculates this quantity in the proposed WDM model.- Parameters:
mx (float) – Mass of the particle in keV
cosmo (hmf.cosmo.Cosmology instance) – A cosmology. Defaults to
hmf.cosmology.cosmo.DEFAULT_COSMOLOGY.z (float, optional) – Deprecated and ignored. The WDM transfer function and its characteristic (comoving) scales and masses are independent of redshift.
**model_parameters (unpack-dict) – Parameters specific to a model. To see the default values, check the
_defaultsclass attribute.
Attributes
References to cite when this model is used, each a formatted citation string.
Methods