get_log_likelihood
- zdm.iteration.get_log_likelihood(grid, s, norm=True, psnr=True, Pn=False, pNreps=True, ptauw=False, pwb=False)[source]
Compute total log-likelihood for a grid given survey data.
This is the main likelihood function used for parameter estimation. It combines multiple likelihood components depending on what data is available (DM only, localized z, SNR, etc.).
- Parameters:
grid (Grid or repeat_Grid) – Grid object containing model predictions.
s (Survey) – Survey object containing FRB observations.
norm (bool, optional) – If True, include normalization terms. Default True.
psnr (bool, optional) – If True, include SNR distribution likelihood. Default True.
Pn (bool, optional) – If True, include Poisson likelihood for total number. Default False.
pNreps (bool, optional) – If True, include number of repeaters likelihood. Default True.
ptauw (bool, optional) – If True, include p(tau, width) likelihood. Default False.
pwb (bool, optional) – If True, include width/beam likelihood. Default False.
- Returns:
Total log-likelihood value.
- Return type: