halomod.halo_exclusion.integrate_dblsphere

halomod.halo_exclusion.integrate_dblsphere(integ, mask, dx, m=None, xmin=None)[source]

Integration function for double sphere model.

When m and xmin are provided the outer (m1) integral is evaluated via a cubic spline so that the result varies smoothly as xmin changes.

Parameters:
  • integ (np.ndarray, shape (r, k, m))

  • mask (np.ndarray, shape (r, m, m))

  • dx (float) – Log-mass grid spacing.

  • m (np.ndarray or None) – Halo-mass grid (required when xmin is set).

  • xmin (float or None) – Smooth lower bound for the outer (m1) integral. When None the standard Simpson rule is used. The caller is responsible for passing xmin=None when xmin <= m[0]; this function does not re-check that condition.