halomod.concentration.CMRelation

class halomod.concentration.CMRelation(cosmo: Cosmology = <hmf.cosmology.cosmo.Cosmology object>, filter0: BaseFilter | None = None, growth: GrowthFactor | None = None, delta_c: float = 1.686, profile: Profile | None = None, mdef: BaseMassDefinition | None = None, sigma_8: float = 0.8, ns: float = 1.0, **model_parameters)[source]

Bases: Component

Base-class for Concentration-Mass relations.

Parameters:
  • filter0 (hmf.filters.Filter instance) – An instance of a filter function, with the power specified at z=0. Required for Bullock01.

  • growth (hmf.growth_factor.GrowthFactor instance) – Specifies the growth function for the cosmology. Required for Bullock01

  • delta_c (float, optional) – Critical density for collapse Used in Bullock01

  • mstar (float, optional) – The nonlinear mass at the desired redshift. If not provided, will be calculated if required.

  • **model_parameters (unpacked-dictionary) – These parameters are model-specific. For any model, list the available parameters (and their defaults) using <model>._defaults

cm(m, z=0)[source]

Return concentration parameter for mass m at z.

Parameters:
  • z (float) – Redshift. Must not be an array.

  • m (float) – Halo Mass.

classmethod get_models() dict[str, type]

Get a dictionary of all implemented models for this component.

mass_nonlinear(z)[source]

Return the nonlinear mass at z.

Parameters:

z (float) – Redshift. Must not be an array.

native_mdefs = ()