Revision history for Perl extension Statistics::CaseResampling.
1.01 Fri Nov 27 23:54:00 2026
- Remove duplicate Perl definition of Statistics::CaseResampling::RdGen::CLONE_SKIP
from CaseResampling.pm (already provided by XS in RdGen.xs.inc), fixing the
"Subroutine ... redefined" warning under perl -w (GH #3).
- Fix Neumaier compensated summation in cs_mean() / mean() on 32-bit x86
(x87 extended precision, FLT_EVAL_METHOD != 0) by rounding the running sum
to double before computing the compensation term.
- Preserve $Config{ccflags} (e.g. -D_FILE_OFFSET_BITS=64) when enabling strict
warning flags in .github/workflows/ci.yml (fixes 32-bit CI binary handshake
mismatch).
1.00 Fri Nov 27 11:45:00 2026
- [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.
0.19 Fri Nov 27 10:15:00 2026
- Fix default PRNG seeding (previous setup(rand()) truncated to seed 0)
by seeding from native OS entropy (BCryptGenRandom/RtlGenRandom on
Windows, /dev/urandom on Unix) with a 32-bit-safe fallback that
preserves $!, and automatically reseed the default RNG after fork()
as well as ithreads CLONE.
- Use SvUV() in RdGen::setup_array() so full unsigned 32-bit seed words
are preserved on 32-bit-IV Perls.
- Eliminate modulo/scaling index bias in do_resample() via Lemire's
unbiased bounded 32-bit integer sampling.
- Propagate NaN deterministically across all input permutations in
cs_select() and derived order statistics, and reject NaN in
confidence level and approx_erf_inv() domain guards.
- Prevent signed 32-bit multiplication overflow in third_quartile() on
very large samples.
- Upgrade mean() to Neumaier compensated summation with overflow-safe
incremental fallback; upgrade standard deviation functions to scaled
single-pass summation (avoiding overflow/underflow) and allow optional
1-argument calling form sample_standard_deviation(\@sample) and
population_standard_deviation(\@sample).
- Replace low-precision erf/erfinv approximations with C99 erf()/erfc()
and Acklam + Halley normal quantile refinement for full double
precision across extreme tails.
- Add statistically sound, two-sided functions while preserving legacy
functions for backward compatibility:
* quantile() (Hyndman-Fan Type 7 in O(n) expected time)
* percentile_confidence_limits_from_samples()
* basic_confidence_limits_from_samples()
* bca_confidence_limits_from_samples()
* median_percentile_confidence_limits()
* median_exact_confidence_limits() (exact Binomial(n, 0.5) interval)
- Add comprehensive statistical correctness test suite in t/04_statistics.t.
- Fix POD documentation inaccuracies and add statistical caveats.
0.18 Sun Oct 11 10:00:00 2026
- Fix wild stack pointer deallocation (SIGABRT free() invalid pointer)
when passing empty arrays to resampling/statistical functions (SCR-01).
- Prevent use-after-free and double-free under ithreads by adding CLONE
and CLONE_SKIP handlers for the PRNG state (SCR-02).
- Fix out-of-bounds indexing in first_quartile and third_quartile for
small samples (SCR-03).
- Clamp confidence limit indices to valid sample bounds on extreme
confidence levels (SCR-04).
- Validate resample run counts (runs >= 1 && runs <= 100000000) (SCR-05).
- Fix memory leak on invalid kth selection in select_kth (SCR-06).
- Guard sample and population standard deviation calculations against
division by zero on small sample sizes (SCR-07).
- Use Perl memory allocator (Newx/Safefree) consistently in
median_absolute_deviation (SCR-08).
- Harden U32ArrayPtr buffer allocation and size validation (SCR-09).
- Add comprehensive regression test suite in t/03_security.t.
- Update author contact details to cpan@steffen-mueller.net.
0.17 Thu Jul 17 20:00:00 2025
- Include a fallback #ifndef for what appears to be an edge case github
actions issue.
0.16 Mon May 19 12:37:00 2025
- Fix XS bug that made the build break under modern (stricter)
ExtUtils::ParseXS. (Thanks Dave!)
0.15 Tue May 14 18:38:00 2013
- Do not override compiler optimization level in Makefile.PL (P Pisar)
0.14 Mon May 13 21:50:00 2013
- MSVC (== C89) compatibility fixes (Daniel Dragan)
0.13 Wed Aug 1 15:00:00 2012
- Fixes to std. dev. functions: They were actually the variance. DOH.
0.12 Sat Feb 18 15:00:00 2012
- Test accuracy fixes.
0.11 Fri Feb 17 13:00:00 2012
- Implement minor extra statistics functions in XS:
sample std. dev. and population std. dev.
- Shuffle docs around a little bit.
0.10 Mon Feb 13 08:26:00 2012
- Document the choice of O(n) median algorithm.
0.09 Mon Jan 16 08:28:00 2012
- Implements median_absolute_deviation.
0.08 Sun Aug 21 21:54:00 2011
- Tiny darwin fix [jtpalmer]
0.07 Mon Jan 24 23:00:00 2011
- Updated ppport.h for compatibility with older perls.
0.06 Fri Sep 24 21:00:00 2010
- Calculation of confidence limits for various statistics.
- Rewrite of the documentation.
- More exposed XS functions:
=> erf, erf^-1, nsigma <=> alpha conversion,
first and third quartiles, mean
0.05 Fri Sep 24 20:00:00 2010
- Implement resample_means.
- Optimize using PERL_NO_GET_CONTEXT
0.04 Thu Sep 23 21:00:00 2010
- Exposes select_kth() to Perl.
0.03 Thu Sep 23 20:00:00 2010
- median() is now much faster thanks to using
O(n) selection instead of O(n*log(n)) quick sort.
- Docs upgrade.
0.02 Wed Sep 22 22:00:00 2010
- OBIWAN. Nuff said.
0.01 Wed Sep 22 20:00:00 2010
- original version
Keyboard Shortcuts
Global
s
Focus search bar
?
Bring up this help dialog
GitHub
gp
Go to pull requests
gi
Go to GitHub issues (only if GitHub is preferred repository)