hmf.density_field.filters.Gaussian¶
- class hmf.density_field.filters.Gaussian(k, power, **model_parameters)[source]¶
Gaussian window function.
This class is based on
Filter
, which can be consulted for details of how to instantiate it.Notes
The real-space filter is
\[F(r) = \frac{\exp(-r^2/2R^2)}{R^3 (2\pi)^{3/2}}\]for a filter scale of R.
The fourier-transform of the filter is
\[W(x=kR) = \exp(-x^2/2).\]The mass-assignment is
\[m(R) = R^3(2\pi)^{3/2}\bar{\rho},\]and the derivative of the window function is
\[\frac{dW}{d\ln x}(x=kR) = -xW(x).\]Methods
__init__
(k, power, **model_parameters)Initialize self.
dlnr_dlnm
(r)The derivative of log radius with log mass.
dlnss_dlnm
(r)The logarithmic slope of mass variance with mass.
dlnss_dlnr
(r)The derivative of the mass variance with radius.
dw_dlnkr
(kr)The derivative of the (fourier-transformed) filter with \(\ln(kr)\).
Get a dictionary of all implemented models for this component.
k_space
(kr)Fourier-transform of the real-space filter.
mass_to_radius
(m, rho_mean)Return radius of a region of space given its mass.
nu
(r[, delta_c])Peak height, \(\frac{\delta_c^2}{\sigma^2(r)}\).
radius_to_mass
(r, rho_mean)Return mass of a region of space given its radius
real_space
(R, r)Filter definition in real space.
sigma
(r[, order, rk])Calculate the nth-moment of the smoothed density field, \(\sigma_n(r)\).