pynbody.analysis.hmf.TophatFilter#
- class pynbody.analysis.hmf.TophatFilter(context)[source]#
Bases:
FieldFilter
A top-hat filter in real space
Methods
M_to_R
(M)Return the mass scale (Msol h^-1) for a given length (Mpc h^-1 comoving)
R_to_M
(R)Return the length scale (Mpc h^-1 comoving) for a given spherical mass (Msol h^-1)
Wk
(kR)Return the Fourier-space filter function, as a function of kR where R is the scale of the filter
- M_to_R(M)#
Return the mass scale (Msol h^-1) for a given length (Mpc h^-1 comoving)
- R_to_M(R)#
Return the length scale (Mpc h^-1 comoving) for a given spherical mass (Msol h^-1)