much_faster_integral_efficiency#

cosmicjellyfish.LSSsurvey.photo_obs.much_faster_integral_efficiency(i, ngal_func, comoving_func, zarr)[source]#

O(N) algorithm for the lensing efficiency integral using backward cumulative trapezoid integrals.

Parameters:
  • i (int) – index of the redshift bin for which the lensing kernel should be computed

  • ngal_func (callable) – callable function that returns the number density distribution of galaxies. Should be a function of the redshift bin index i as an int and the redshift z as a numpy.ndarray

  • comoving_func (callable) – callable function that returns the comoving distance. Should be a function of the redshift z as a numpy.ndarray

  • zarr (numpy.ndarray) – 1d array of all redshifts z that should be used as integration points.

Returns:

callable function that receives a numpy.ndarray of requested redshifts and returns the lensing efficiency for the i-th bin as a numpy.ndarray

Return type:

callable