Commit Graph

4 Commits

Author SHA1 Message Date
9a3f5959cd feat(distributions): add lognakagami, loggamma, and kl_statistic
Implement two new scipy-compatible distributions : Log-Nakagami
(lognakagami) and Log-Gamma (loggamma_dist), with complete
logpdf/cdf/ppf/stats/entropy/rvs methods derived from the
change-of-variable Y = ln(X).

Add kl_statistic, a KDE-based KL-divergence goodness-of-fit callable
compatible with the Fitter class. Extend k_gen with _stats (improving speed), _cdf, and
a fit guard, and switch kv → kve to improve numerical stability at large arguments.

Add unit tests for all three additions covering normalization,
monotonicity, ppf inversion, moment formulas, and Fitter integration.
2026-04-26 23:17:22 -03:00
d07590e73d ADD:
ruff for code formatting

BIC statistic AND BIC test implemented

test_distributions.py for test new created dists with pytest

REFACTOR:
k_gen pdf changed from 2 params to generalized
2026-04-16 11:52:44 -03:00
aacfe3f977 ADD:
AIC statistic added
2026-04-08 22:53:33 -03:00
d053ebf02c REFACTOR:
Fitter class refactored. Include getter and setter
ADD:
test/ dir with code tests
2026-04-08 21:48:19 -03:00