DarkMatterComponent#
- class astropy.cosmology.traits.DarkMatterComponent[source]#
Bases:
objectThe cosmology has attributes and methods for the dark matter density.
This trait provides an
Odmmethod that returns the dark matter density parameter (i.e., total matter minus baryons) at redshiftz.Methods Summary
Odm(z)Return the density parameter for dark matter at redshift
z.Methods Documentation
- Odm(z)[source]#
Return the density parameter for dark matter at redshift
z.- Parameters:
- zQuantity-like [‘redshift’], numpy:array_like
Input redshift.
Changed in version 7.0: Passing z as a keyword argument is deprecated.
- Returns:
- Odm
ndarray The density of dark matter relative to the critical density at each redshift.
- Odm