halomod.profiles.GeneralizedNFW.rho

GeneralizedNFW.rho(r, m, norm=None, c=None, coord='r')

The density at radius r of a halo of mass m.

Parameters
  • r (float or array of floats) – The radial location(s). The units vary according to coord

  • m (float or array of floats) – The mass(es) of the halo(s)

  • norm (str, {m,``rho``}) – Normalisation of the density.

  • c (float or array of floats, default None) – Concentration(s) of the halo(s). Must be same length as m.

  • coord (str, {r,``x``,``s``}) – What the radial coordinate represents. r represents physical co-ordinates [units Mpc/h]. x is in units of the scale radius (x(r_vir) = c), and s is in units of the virial radius (s(r_vir) = 1).