tjpcov.covariance_cluster_counts
#
Module Contents#
Classes#
Class to calculate covariance of cluster counts. |
- class tjpcov.covariance_cluster_counts.CovarianceClusterCounts(config, min_halo_mass=10000000000000.0)[source]#
Bases:
tjpcov.covariance_builder.CovarianceBuilder
Class to calculate covariance of cluster counts.
Class to calculate covariance of cluster counts.
- Parameters:
- load_from_cosmology(cosmo)[source]#
Load parameters from a CCL cosmology object.
Derived attributes from the cosmology are set here.
- Parameters:
cosmo (
pyccl.Cosmology
) – Input cosmology
- load_from_sacc(sacc_file, min_halo_mass)[source]#
Set class attributes based on data from the SACC file.
Cluster covariance has special parameters set in the SACC file. This informs the code that the data to calculate the cluster covariance is there. We set extract those values from the sacc file here, and set the attributes here.
- Parameters:
( (sacc_file) – obj: sacc.sacc.Sacc): SACC file object, already
loaded. –
- _quad_integrate(argument, from_lim, to_lim)[source]#
Numerically integrate argument between bounds using scipy quad.
- _romb_integrate(kernel, spacing)[source]#
Numerically integrate arguments between bounds using scipy romberg.
- observed_photo_z(z_true, z_i, sigma_0=0.05)[source]#
Implementation of the photometric redshift uncertainty distribution.
We don’t assume that redshift can be measured exactly, so we include a measurement of the uncertainty around photometric redshifts. Assume, given a true redshift z, the measured redshift will be gaussian. The uncertainty will increase with redshift bin.
See section 2.3 of N. Ferreira
- comoving_volume_element(z_true, z_i)[source]#
Calculates the volume element for this bin.
Given a true redshift, and a redshift bin, this will give the volume element for this bin including photo-z uncertainties.
- mass_richness(ln_true_mass, richness_i)[source]#
Log-normal mass-richness relation without observational scatter.
The probability that we observe richness given the true mass M, is given by the convolution of a Poisson distribution (relating observed richness to true richness) with a Gaussian distribution (relating true richness to M). Such convolution can be translated into a parametrized log-normal mass-richness distribution, done so here.
- mass_richness_integral(z, richness_i, remove_bias=False)[source]#
Integrates the HMF weighted by mass-richness relation.
The halo mass function weighted by the probability that we measure observed richness lambda given true mass M.