halomod.halo_exclusionΒΆ

Module defining halo model components for halo exclusion.

Functions

cumsimps(func, dx)

A very simplistic cumulative simpsons rule integrator.

dblsimps_(X, dx, dy)

Double-integral of X FOR SYMMETRIC FUNCTIONS.

dbltrapz(X, dx[, dy])

Double-integral over the last two dimensions of X using trapezoidal rule.

dbltrapz_(X, dx, dy)

Double-integral of X for the trapezoidal method.

density_mod_(r, rvir, densitymat, dx)

The modified density, under new limits.

integrate_dblell(integ, prob, dx)

Double Integration via the trapezoidal method if using NUMBA.

integrate_dblsphere(integ, mask, dx[, m, xmin])

Integration function for double sphere model.

integrate_dblsphere_(integ, mask, dx)

The same as integrate_dblsphere(), but uses NUMBA to speed up.

makeH_(nx, ny)

Return the window matrix for trapezoidal intergral.

makeW(nx, ny)

Return a window matrix for double-intergral.

makeW_(nx, ny)

Return a window matrix for symmetric double-intergral.

outer(a, b)

Calculate the outer product of two vectors.

prob_inner_(r, rvir)

Jit-compiled version of calculating prob, taking advantage of symmetry.

prob_inner_r_(r, rvir)

Jit-compiled version of calculating prob along one r, taking advantage of symmetry.

Classes

DblEllipsoid(m, density, power_integrand, ...)

Double Ellipsoid model of halo exclusion.

DblEllipsoid_(m, density, power_integrand, ...)

The same as DblEllipsoid.

DblSphere(m, density, power_integrand, bias, ...)

Double Sphere model of halo exclusion.

DblSphere_(m, density, power_integrand, ...)

The same as DblSphere.

Exclusion(m, density, power_integrand, bias, ...)

Base class for exclusion models.

NgMatched(m, density, power_integrand, bias, ...)

A model for double ellipsoid halo exclusion, where a mask is defined so that the number density of galaxies is matched.

NgMatched_(m, density, power_integrand, ...)

The same as NgMatched.

NoExclusion(m, density, power_integrand, ...)

A model where there's no halo exclusion.

Sphere(m, density, power_integrand, bias, r, ...)

Spherical halo exclusion model.