PhotometricLikelihood#

class cosmicjellyfish.likelihood.photo_like.PhotometricLikelihood(*, cosmo_data, cosmo_theory=None, observables=None, data_cells=None)[source]#

Bases: Likelihood, NautilusMixin

Likelihood built from photometric clusterings (WL / GCph).

compute_data()[source]#

Compute and return the observed data representation.

This method should be implemented by subclasses to return the data in the appropriate format (e.g., wedges or multipoles) for likelihood calculations.

Return type:

Dict[str, ndarray]

Returns:

The observed data representation

compute_theory(param_dict)[source]#

Compute and return the theory prediction.

This method should be implemented by subclasses to return the theory prediction in the same representation as the observed data.

Parameters:

param_dict (Dict[str, Any]) – Dictionary of cosmological parameters

Return type:

Dict[str, ndarray]

Returns:

The theory prediction in the same format as the observed data

compute_chi2(theory_obs)[source]#

Compute and return the chi-squared value.

This method should be implemented by subclasses to compute the chi-squared value between the observed data and theory prediction.

Parameters:

theory_obs (Dict[str, ndarray]) – Theory prediction in the same format as observed data

Return type:

float

Returns:

The chi-squared value