memo_integral_efficiency#

cosmicjellyfish.LSSsurvey.photo_obs.memo_integral_efficiency(i, ngal_func, comoving_func, z, zint_mat, diffz)[source]#

Legacy O(N^2) implementation of the efficiency integral.

Notes

  • Deprecated: prefer faster_integral_efficiency (vectorized) or much_faster_integral_efficiency (O(N)).

  • This version performs a per-row trapezoidal integration on the original redshift grid to ensure numerically correct spacing. The zint_mat and diffz arguments are ignored for correctness (they were prone to inconsistent spacing per row).

Parameters:
  • i (int) – Bin index.

  • ngal_func (callable) – Function returning n(z’) given (z’, i, kind).

  • comoving_func (callable) – Function returning r(z).

  • z (numpy.ndarray) – 1D redshift grid.

  • zint_mat (numpy.ndarray) – Ignored (kept for backward compatibility).

  • diffz (numpy.ndarray or float) – Ignored (kept for backward compatibility).

Returns:

Interpolating function over z for the efficiency.

Return type:

callable