Changes for version 1.00 - 2026-11-27
- [BREAKING] Fix two-sided alpha/2 tail probabilities and Type 7 quantile interpolation in simple_confidence_limits_from_samples() and median_simple_confidence_limits() (previously used one-sided alpha tails and truncated 1-based indices, giving 90% CIs at confidence=0.95 and inverted limits for confidence < 0.5).
- [BREAKING] Use Hyndman-Fan Type 7 linear interpolation for median(), first_quartile(), and third_quartile() (averaging the two middle elements for even N in median(), median_absolute_deviation(), resample_medians(), and median_simple_confidence_limits()).
- [BREAKING] Fix domain checks on normal/erf helpers:
- Widen approx_erf_inv() from (0, 1) to its true domain (-1, 1).
- Enforce alpha in (0, 1] in alpha_to_nsigma() and nsigma >= 0 in nsigma_to_alpha(), rejecting out-of-range and NaN inputs.
- [BREAKING] Croak cleanly on empty samples in mean(), median(), median_absolute_deviation(), first_quartile(), third_quartile(), median_simple_confidence_limits(), and simple_confidence_limits_from_samples() instead of silently returning 0. (resample(), resample_medians(), and resample_means() still return [].)
- [BREAKING] Reject undef and non-numeric elements in sample arrays and mean arguments instead of silently coercing them to 0.0.
- Harden cs_select() with an introselect heapsort fallback to guarantee O(n log n) worst-case time on adversarial pivot sequences, and link explicitly against -lm in Makefile.PL.
- Add C-accelerated resample_quantiles(), mean_percentile_confidence_limits(), mean_bca_confidence_limits(), and mean_studentized_confidence_limits().
- Add Monte Carlo empirical coverage tests in t/05_coverage.t, add cross-platform GitHub Actions CI (.github/workflows/ci.yml), and update POD/README to document all 1.00 fixes and new functions.
- Validate scalar numeric/undef parameters across all XS entrypoints, prevent memory leak in bca_confidence_limits_from_samples() on invalid jackknife elements, guard RdGen allocations against NULL/OOM, share implementation via ALIAS for basic/simple_confidence_limits_from_samples, and fix usage message typo in median_simple_confidence_limits.
- Add LICENSE, MIN_PERL_VERSION, TEST_REQUIRES, and META_MERGE CPAN metadata to Makefile.PL, and add a 32-bit Perl job to CI.
Modules
Efficient resampling and calculation of medians with confidence intervals