halomod.tools

Modules defining a series of utility functions to perform hankel transformation and Fourier transformation from correlation function to power spectrum.

Functions

corr_to_power_ogata(corr, r, k[, h, …])

Convert an isotropic 3D correlation function to a power spectrum.

exclusion_window(k, r)

Fourier-space top-hat window function.

hankel_transform(f, trns_var, trns_var_name)

Function to do the hankel tranformation

norm_warn(self)

Emit a warning when either the HMF or the HMF/bias pair are not normalized.

populate(centres, masses[, halomodel, …])

Populate a series of DM halos with a tracer, given a HOD model.

power_to_corr(power_func, r)

Calculate the isotropic 3D correlation function given an isotropic power spectrum.

power_to_corr_ogata(power, k, r[, h, …])

Convert a 3D power spectrum to a correlation function.

spline_integral(x, f[, xmin, xmax, log])

Perform an integral using a spline function over a vector of data.

Classes

ExtendedSpline(x, y, lower_func, None, …)

Generate a function from data x,y with arbitrary behaviour below and above limit.