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:
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
Nonethe standard Simpson rule is used. The caller is responsible for passingxmin=Nonewhenxmin <= m[0]; this function does not re-check that condition.