## catpie Changelog



### Version 0.2.0 -- Randomesque Support and more Selection Criteria

* NEW: `randomesque = k` item selection for `MFI` and `bOpt` (catR's rank-based candidate rule, including ties at the k-th position), exposed as `NextItemResult.candidates` so callers can log/audit the draw. `randomesque` and the new `seed` / `rng` arguments are also accepted by `selectNextItem` and `randomCAT`.
* NEW: `checkStopRule(..., out=...)` filters already-administered items for the `minInfo` rule (in catR, forgetting to filter silently disables the rule).
* NEW: reproducible item selection via `seed` or a shared `random.Random`; unlike catR, catpie never reseeds the global RNG.
* ENH: `nextItem` validates `randomesque` and raises a clear `ValueError` when no eligible item is left (catR's behaviour there is undefined).
* NEW: selection criteria `thOpt`, `MLWI`, `MPWI`, `KL`, `KLP`, `progressive`, `proportional` and `random`, plus `nAvailable` filtering; content balancing raises `NotImplementedError` instead of being ignored. New helpers `mwi`, `kl`, `likelihood`.
* NEW: `thetaEst(..., constantPatt=...)` for degenerate response patterns, `method="ROB"` with Huber/Tukey weights, `fullDist` and `semTheta(..., semExact=True)` for the exact standard error.
* NEW: parity reference and tests for randomesque selection (`scripts/generate_reference_selection.R`, `reference/catr_selection.json`, `tests/test_selection_randomesque.py`).
* DOC: Add user-friendly MkDocs documentation (concepts, quickstart, API reference) published to GitHub Pages
* DOC: Enhance all public API docstrings (Google style with Args/Returns/Raises and expected value ranges)



### Version 0.1.0 -- Initial release

* Faithful Python translation of the most relevant subset of the R package catR (pure Python, zero runtime dependencies)
* 4PL item response function with full derivative set: `pi`, `ii`, `ji`
* Ability estimation EAP/BM/ML/WL with priors norm/unif/Jeffreys: `thetaEst`, `semTheta`, `eapEst`, `eapSem`, `estimateTheta`
* Item selection MFI/bOpt: `nextItem`, `selectNextItem`
* Simulation: `genPattern`, `simulateRespondents`, `checkStopRule`, `randomCAT`
* Numerical helpers mirroring R base functions: `dnorm`, `linspace`, `integrateCatR`, `qnorm`, `uniroot`, `optimizeScalar`
* Parity harness validated against real catR 3.17 / R 4.6.1 (EAP to ~1e-15, BM/ML/WL to catR's own tolerance); committed references replayed in CI
* 35 unit tests, GitHub Actions workflows for CI, parity validation and docs publishing
* uv-managed project; GPL-3.0-or-later license (matches catR)
