pspec_likelihood.likelihood.MarginalizedLinearPositiveSystematics#

class pspec_likelihood.likelihood.MarginalizedLinearPositiveSystematics(*, model: DataModelInterface, set_negative_to_zero=False)[source]#

The likelihood used in IDR2 analysis.

Parameters:

zero_fill – Return a loglikelihood value of zero_fill instead of -inf when the likelihood is actually 0. Possibly useful to avoid errors in sampling libraries used.

Methods

__init__(*, model[, set_negative_to_zero])

Method generated by attrs for class MarginalizedLinearPositiveSystematics.

loglike(theory_params, sys_params)

Compute the log likelihood.

validate()

Ensure the model has diagonal covariance and no systematics model.

Attributes

data_mask

A mask where data is properly defined and usable.

power_spectrum

Return power_spectrum respecting set_negative_to_zero.

variance

The diagonal of the covariance matrix.

model

set_negative_to_zero