CosmoFit.BaseLikelihood

class CosmoFit.BaseLikelihood(name, dataset, cosmology)[source]

Bases: ABC

__init__(name, dataset, cosmology)[source]

Methods

__init__(name, dataset, cosmology)

chi2()

Return chi-square.

log_likelihood()

Return log-likelihood.

model()

Return theoretical predictions.

predictions()

Alias for model().

summary()

Return a summary of the likelihood evaluation.

Attributes

n_data

Number of data points.

name_and_size

Name together with the number of data points.