8056 Commits

Author SHA1 Message Date
fbourgey 6936446487 DOC: correct first_four_moments 2026-07-19 10:48:10 -07:00
Matt Borland 8ee12a5355 Merge pull request #1414 from su-senka/feature/chatterjee-mnn
Add M nearest-neighbour Chatterjee correlation (#990)
2026-07-02 15:06:46 -04:00
Matt Borland 600627d09f Merge pull request #1417 from boostorg/mac_roots
Fix UB in sorting results with the cubic root finder
2026-07-01 13:19:58 -04:00
Matt Borland fe74e79bb6 Merge pull request #1416 from boostorg/1412pt2
Check all of special functions can be included under same conditions
2026-07-01 13:19:24 -04:00
Matt Borland 9fbea69ab3 Use the instantiate driver for better coverage 2026-07-01 10:34:14 -04:00
Matt Borland e06a6a657c Fix UB in sorting results with the cubic root finder 2026-07-01 09:41:49 -04:00
Matt Borland 2d00b8cf4a Check all of special functions can be included under same conditions 2026-07-01 08:48:06 -04:00
Oleksandr 2709fb2bac Add M nearest-neighbour Chatterjee correlation (#990) 2026-07-01 07:58:34 +02:00
Matt Borland 188cccc358 Merge pull request #1413 from boostorg/1412
<sstream> is not needed in exception free environment
2026-06-30 19:04:44 -04:00
Matt Borland bad351c738 Add patch from issue 2026-06-30 17:31:48 -04:00
Matt Borland 135e16b8e6 Add reproducer test set 2026-06-30 17:31:30 -04:00
Matt Borland 0cfea2fe71 Merge pull request #1386 from dschmitz89/ci_maintenance 2026-06-22 12:48:06 -04:00
jzmaddock f695d39eab Merge pull request #1406 from boostorg/issue1404
pFq: prevent spurious overflow.
2026-06-22 16:27:28 +01:00
jzmaddock 45fe9991ca Try and get gcov to register lines we know are hit. 2026-06-21 12:01:53 +01:00
jzmaddock ad99070a18 Comment out dead code, tweak testing for more coverage. 2026-06-19 19:12:08 +01:00
Matt Borland 6dea961f87 Merge pull request #1408 from WarrenWeckesser/doc-readme-bootstrap-b2
DOC: Include the use of the bootstrap script to build b2 in README.md
2026-06-18 20:06:31 -04:00
Warren Weckesser 66d86812ab DOC: Include the use of the bootstrap script to build b2 in README.md
[ci skip]
2026-06-18 19:58:18 -04:00
jzmaddock 31b1bc1b1f pFq: disable one new test for real_concept. 2026-06-11 19:10:43 +01:00
jzmaddock b1f70c8f98 pFq: prevent spurious overflow.
Make sure we throw the correct exceptions when the result is infinite.
Fixes #1404.
2026-06-11 17:53:02 +01:00
jzmaddock 9a964b4aa6 Merge pull request #1403 from dschmitz89/find_degrees_of_freedom_initial_guess
ENH: add warm start for root finder in `find_degrees_of_freedom`
2026-06-09 19:19:27 +01:00
a-leontyev fecc83bd81 Guard against intermediate x*x overflow in Student's t pdf/cdf (#1402)
* Guard against intermediate x*x overflow in Student's t pdf/cdf
* Return exact tail values instead of raising overflow_error (review feedback)

---------

Co-authored-by: LeantionX <leontyevanton1995@gmail.com>
Co-authored-by: Matt Borland <matt@mattborland.com>
2026-06-09 19:17:58 +01:00
jzmaddock 22da3792e5 students_t: Add exception handling guards.
The degree of freedom finders can call the quantile with arguments which result in an infinite result, as far as our root finders are concerned, any large value as a result will do, but we need to not allow an exception to escape or the root finder terminates.
2026-06-09 17:51:20 +01:00
John Maddock 594f210a7e Merge branch 'find_degrees_of_freedom_initial_guess' of https://github.com/dschmitz89/math into pr403 2026-06-09 13:25:03 +01:00
jzmaddock 13c0bc8963 Merge pull request #1368 from JacobHass8/nc-f-find-v1
Find degrees of freedom for `non_central_f` distribution
2026-06-09 13:17:47 +01:00
Jacob Hass 4426160fb2 Fix type for testing small x 2026-06-08 17:21:48 -07:00
dschmitz89 ce299579d4 ENH: add initial guess for power equation inversion 2026-06-08 21:24:00 +02:00
dschmitz89 38ebc9a6cf ENH: add warm start for root finder 2026-06-08 21:16:39 +02:00
Jacob Hass a0bd79c0e2 Changed to non-central chi-squared dist 2026-06-02 13:18:04 -07:00
Jacob Hass bdce34ddf7 Added chi squared approximation 2026-06-02 10:05:01 -07:00
jzmaddock febada3078 Merge pull request #1399 from JacobHass8/distribution-test-coverage
100% Test coverage all (?) distributions
2026-05-29 09:39:23 +01:00
Jacob Hass 7a0975efc9 Fixed find_location negative scale 2026-05-28 13:53:18 -07:00
Jacob Hass 8d57c0b2ae Added find_scale 2026-05-28 10:12:50 -07:00
Jacob Hass ba0f27463e Added find_location tests 2026-05-28 09:53:28 -07:00
Jacob Hass 3aa42a3f82 Added extreme value distribution 2026-05-27 20:53:01 -07:00
Jacob Hass bfcc51ce59 Added exponential distribution tests 2026-05-27 14:23:31 -07:00
Jacob Hass 5abd8a2a37 Added chi_squared distribution 2026-05-26 18:46:05 -07:00
Jacob Hass 2b07b7a3ec Added cauchy tests 2026-05-26 18:06:34 -07:00
Jacob Hass f2b43c29df Added nan handling for binomial distribution 2026-05-26 12:48:04 -07:00
Jacob Hass 96f7df8e25 Added som basic binomial tests 2026-05-26 11:43:58 -07:00
Jacob Hass 264487e354 Added beta distribution 2026-05-25 20:11:23 -07:00
Jacob Hass 0d7c2459b9 Added bernoulli distribution tests 2026-05-25 17:53:49 -07:00
Jacob Hass fbffcf0700 Completed test coverage for arcsine distribution 2026-05-25 16:24:42 -07:00
Jacob Hass ceb66f5c15 Merge branch 'boostorg:develop' into nc-f-find-v1 2026-05-25 15:41:49 -07:00
Jacob Hass d43d08c92d Improved test coverage 2026-05-25 12:18:04 -07:00
Jacob Hass 04eace43b1 Added checks for multiple degrees of freedom 2026-05-24 11:11:05 -07:00
jzmaddock 592063d602 Merge pull request #1398 from boostorg/issue1397
Fix edge case short circuit logic in binomial distro inverse.
2026-05-22 19:57:08 +01:00
jzmaddock 31197cace9 Fix edge case short circuit logic in binomial distro inverse.
Fixes: https://github.com/boostorg/math/issues/1397
2026-05-22 18:06:26 +01:00
Daniel Schmitz f724aec828 ENH: add parameter finder for degrees or freedom for students_t distribution (#1385)
* ENH: add parameter finder for degrees or freedom

* Add early exit if approximation is precise to machine precision

* Loosen tolerance and add tests in the tails

* Modularize and simplify

* Use overflow error instead of inf

* Relax all test tolerances

* Should use a linter ..

* Relax test tolerance for float precision and remove ill conditioned test with df=1e6

* Fix indentation

* Loosen tolerance for very high degrees of freedom

* Test if approximation is a good hint, otherwise fall back to 0.01

* Add test coverage of all cases for approximation

* Do not use symmetry for better numerical accuracy in the tails

* Add edge case tests

* Exclude float from testing for extreme values

* Update test comment

* Replace non ASCII character..

* Simplify using boost's own relative error function

* Add early exits for df=1 and df=inf

Co-authored-by: Copilot <copilot@github.com>

* Try to fix CI carnage

Co-authored-by: Copilot <copilot@github.com>

* Simplify analytical cases and raise overflow error for normal case

* Rename to find_degrees_of_freedom

---------

Co-authored-by: Copilot <copilot@github.com>
2026-05-22 17:49:30 +01:00
Matt Borland 99733ebbdb Merge pull request #1396 from cbicari/patch-2
constants: Protect F which is defined as a macro by some frameworks - part 2
2026-05-11 18:28:10 -04:00
Charles Bicari 51efb17098 constants: Protect F which is defined as a macro by some frameworks - part 2
This is the sibling of : https://github.com/boostorg/math/pull/1391

The same issue occurs with unprotected macro. 
Had forgotten this one in previous correction.
2026-05-11 15:50:00 -04:00