halomod.profiles.GeneralizedNFW.scale_radius¶
- GeneralizedNFW.scale_radius(m: Union[float, numpy.ndarray], at_z: bool = False) → Union[float, numpy.ndarray]¶
Return the scale radius for a halo of mass m.
The scale radius is defined as \(r_s = r_vir(m) / c(m)\).
- Parameters
m – Mass of the halo(s), in units of
M_sun / h
.at_z – If true, return the redshift-dependent configuration-space scale radius of the halo. Otherwise, return the redshift-independent Lagrangian-space scale radius (based on an initial density patch).
- Returns
The scale radius, same type as
m
.- Return type
r_s