pletsch_clarke_likelihood

ell1fit.likelihoods.pletsch_clarke_likelihood(phases, template_func, weights=None)[source]

Evaluate the Pletsch-Clarke profile likelihood for event phases.

Parameters:
phasesnp.ndarray

Event phases.

template_funccallable

Pulse-template function returning probability density at each phase.

weightsnp.ndarray or None, optional

Event weights in [0, 1]. If provided, uses weighted log-likelihood.

Returns:
float

Total log-likelihood.