wale.FilterFunctions module

wale.FilterFunctions.S(n: int, b)[source]
wale.FilterFunctions.S_scalar(n: int, b: float) float[source]
wale.FilterFunctions.b3_1D_ft(x)[source]
wale.FilterFunctions.b3_2D_ft(x, y)[source]
wale.FilterFunctions.get_W2D_FL(window_radius, map_shape, filter_type, L=505)[source]

Constructs a 2D Fourier-space window function for a top-hat filter.

Parameters:
  • window_radius – float The top-hat window radius in physical units (must be consistent with L).

  • map_shape – tuple Shape of the map (assumed square, e.g. (600,600)).

  • L – float, optional Physical size of the map (default is 505, as used for SLICS).

Returns:

2D numpy array representing the Fourier-space window.

wale.FilterFunctions.starlet_filter(k, R)[source]

Computes the Fourier-space starlet filter.

Parameters:
  • k (np.ndarray) – 2D array of Fourier frequencies.

  • R (float) – The scale at which to compute the filter.

Returns:

The computed starlet filter in Fourier space.

Return type:

np.ndarray

wale.FilterFunctions.top_hat_filter(k, R)[source]

Calculates the top-hat window function for a given radius.

Parameters:

R (float or numpy.ndarray) – The scale (or array of scales) at which to calculate the window function.

Returns:

The top-hat window function values at the given scale(s).

Return type:

numpy.ndarray

wale.FilterFunctions.uHat_starlet_analytical(eta, R)[source]

Computes the analytical Hankel transform of the starlet U-filter.

Parameters:

eta (np.ndarray or float) – Dimensionless argument ( hat{u} ).

Returns:

Computed ( hat{u} ).

Return type:

float or np.ndarray