cluster_toolkit.peak_height module

Integrals of the power spectrum. This includes RMS variance of the density field, sigma2, as well as peak neight, nu. These were previously implemented in the bias module, but have been migrated to here.

cluster_toolkit.peak_height.dsigma2dM_at_M(M, k, P, Omega_m)[source]

Derivative w.r.t. mass of RMS variance in top hat sphere of lagrangian radius R [Mpc/h comoving] corresponding to a mass M [Msun/h] of linear power spectrum.

Parameters:
  • M (float or array like) – Mass in Msun/h.
  • k (array like) – Wavenumbers of power spectrum in h/Mpc comoving.
  • P (array like) – Power spectrum in (Mpc/h)^3 comoving.
  • Omega_m (float) – Omega_matter, matter density fraction.
Returns:

d/dM of RMS variance of top hat sphere.

Return type:

float or array like

cluster_toolkit.peak_height.nu_at_M(M, k, P, Omega_m)[source]

Peak height of top hat sphere of lagrangian radius R [Mpc/h comoving] corresponding to a mass M [Msun/h] of linear power spectrum.

Parameters:
  • M (float or array like) – Mass in Msun/h.
  • k (array like) – Wavenumbers of power spectrum in h/Mpc comoving.
  • P (array like) – Power spectrum in (Mpc/h)^3 comoving.
  • Omega_m (float) – Omega_matter, matter density fraction.
Returns:

Peak height.

Return type:

nu (float or array like)

cluster_toolkit.peak_height.nu_at_R(R, k, P)[source]

Peak height of top hat sphere of radius R [Mpc/h comoving] of linear power spectrum.

Parameters:
  • R (float or array like) – Radius in Mpc/h comoving.
  • k (array like) – Wavenumbers of power spectrum in h/Mpc comoving.
  • P (array like) – Power spectrum in (Mpc/h)^3 comoving.
Returns:

Peak height.

Return type:

float or array like

cluster_toolkit.peak_height.sigma2_at_M(M, k, P, Omega_m)[source]

RMS variance in top hat sphere of lagrangian radius R [Mpc/h comoving] corresponding to a mass M [Msun/h] of linear power spectrum.

Parameters:
  • M (float or array like) – Mass in Msun/h.
  • k (array like) – Wavenumbers of power spectrum in h/Mpc comoving.
  • P (array like) – Power spectrum in (Mpc/h)^3 comoving.
  • Omega_m (float) – Omega_matter, matter density fraction.
Returns:

RMS variance of top hat sphere.

Return type:

float or array like

cluster_toolkit.peak_height.sigma2_at_R(R, k, P)[source]

RMS variance in top hat sphere of radius R [Mpc/h comoving] of linear power spectrum.

Parameters:
  • R (float or array like) – Radius in Mpc/h comoving.
  • k (array like) – Wavenumbers of power spectrum in h/Mpc comoving.
  • P (array like) – Power spectrum in (Mpc/h)^3 comoving.
Returns:

RMS variance of a top hat sphere.

Return type:

float or array like