pyfli.solver.mle_fitter#
Extend the base fitter with Poisson and chi-square maximum-likelihood estimators.
This module belongs to pyfli.solver and is part of PyFLI least-squares, maximum-
likelihood, CPU, GPU, binned, and global FLI fitting routines. Public API includes
classes MLEFLIFitter.
Classes
|
Extend the base FLI fitter with Poisson, Pearson, and Neyman objective functions. |
- class MLEFLIFitter(freq, decay_px, irf_px, white_noise=0.1, guess_plugin=moment_based_guess, custom_funcs=None, shift_method='zero_pad', fit_indices=None)[source]#
Bases:
BaseFLIFitterExtend the base FLI fitter with Poisson, Pearson, and Neyman objective functions. It supports MLE-style fitting, uncertainty extraction from optimizer curvature, and likelihood-based model comparison.
- Parameters:
- pearson_chi_square(params, model_type)[source]#
Pearson’s Chi-square: Weighted by the MODEL [1/y_model].
- neyman_chi_square(params, model_type)[source]#
Neyman’s Chi-square: Weighted by the DATA [1/y_data].
- fit_with_estimator(estimator_type='poisson', p0=None, bounds=None, model_type='bi-exponential', **kwargs)[source]#
Main interface for MLE/Chi-square fitting. Fully compatible with BaseFLIFitter registry and offset-based parameter resolving.