raytracing_utils#

Module containing catalog-agnostic raytracing utility functions

Module Contents#

Functions#

approx_mean_kappa(fit_model, weighted_mass_sum, seed)

Approximate the mean kappa given the log weighted sum of halo masses

fit_gp(train_X, train_Y)

Fit a Gaussian process regressor

raytracing_utils.approx_mean_kappa(fit_model, weighted_mass_sum, seed)[source]#

Approximate the mean kappa given the log weighted sum of halo masses

Parameters#

fit_modelobject

any model that has a method predict returning the mean and standard deviation of predictions as a tuple, given the input X (first argument) and a boolean return_std option set to True

weighted_mass_sumnp.array

log10(sum over halo masses weighted by the lensing efficiency Dds/Ds), where halo masses are in solar masses

Returns#

np.array

the simulated mean kappa, including spread, of the halos

raytracing_utils.fit_gp(train_X, train_Y)[source]#

Fit a Gaussian process regressor