CosmoFit.S8Likelihood¶
- class CosmoFit.S8Likelihood(cosmology, version='kids1000')[source]¶
Bases:
BaseLikelihoodA single Gaussian S8 = sigma8 * sqrt(Omega_m / 0.3) constraint from a weak-lensing survey (default: KiDS-1000; also DES Y3 – see
load_s8()).Don’t combine
"s8"with a differentversionin the same fit – KiDS-1000 and DES Y3 are independent, not a single joint constraint; passdataset_kwargs={"s8": {"version": "des_y3"}}to use one or the other, not both at once.Methods
__init__(cosmology[, version])chi2()Return chi-square.
log_likelihood()Return log-likelihood.
model()S8 = sigma8 * sqrt(Omega_m / 0.3).
predictions()Alias for model().
residuals()summary()Return a summary of the likelihood evaluation.
Attributes
n_dataNumber of data points.
name_and_sizeName together with the number of data points.
observable