hmf.core.filtersΒΆ

Smoothing filters: the window functions that define the mass variance.

A filter is a Model of the Filter kind. It defines a window \(W(x)\) of the dimensionless \(x = kR\), its logarithmic derivatives, and the mass assignment \(m = \frac{4\pi}{3} \bar\rho\, (cR)^3\). The mass variance itself is computed by MassVariance.

Every method here is dimensionless, so none needs a units boundary.

Three filters are provided, ported from hmf 3.x:

  • TopHat (alias "TopHat"): the real-space top-hat;

  • SharpK (alias "SharpK"): the sharp-k filter, a top-hat in k-space;

  • SmoothK (alias "SmoothK"): the smooth-k filter of Leo et al. (2018).

Classes

Filter()

The kind of smoothing filters.

SharpK(*[, c])

The sharp-k filter: a top-hat in k-space.

SmoothK(*[, beta, c])

The smooth-k filter of Leo et al. (2018), their eq.

TailBounds(high_w2, high_wdw, low_w2, low_wdw)

Bounds on the window products beyond the ends of the k grid.

TopHat()

The real-space top-hat filter.