cluster_toolkit.bias module

Halo bias.

cluster_toolkit.bias.bias_at_M(M, k, P, Omega_m, delta=200)[source]

Tinker et al. 2010 bais at mass M [Msun/h].

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) – Matter density fraction.
  • delta (int; optional) – Overdensity, default is 200.
Returns:

Halo bias.

Return type:

float or array like

cluster_toolkit.bias.bias_at_R(R, k, P, delta=200)[source]

Tinker 2010 bais at mass M [Msun/h] corresponding to radius R [Mpc/h comoving].

Parameters:
  • R (float or array like) – Lagrangian 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.
  • delta (int; optional) – Overdensity, default is 200.
Returns:

Halo bias.

Return type:

float or array like

cluster_toolkit.bias.bias_at_nu(nu, delta=200)[source]

Tinker 2010 bais at peak height nu.

Parameters:
  • nu (float or array like) – Peak height.
  • delta (int; optional) – Overdensity, default is 200.
Returns:

Halo bias.

Return type:

float or array like

cluster_toolkit.bias.dbiasdM_at_M(M, k, P, Omega_m, delta=200)[source]

d/dM of Tinker et al. 2010 bais at mass M [Msun/h].

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) – Matter density fraction.
  • delta (int; optional) – Overdensity, default is 200.
Returns:

Derivative of the halo bias.

Return type:

float or array like