Commit Graph

45 Commits

Author SHA1 Message Date
Matt Borland b5ded3deb5 Replace BOOST_MATH_CHECK_THROW with boost.test 2024-07-23 08:06:37 -04:00
jzmaddock 77cb565d52 Disable extreme test case in test_binomial.cpp
For Clang on Apple, as it can not be made to pass here.
2024-04-29 17:45:23 +01:00
jzmaddock d967bf73d0 Improve accuracy in ibeta power terms usig Sterling's approximation (the non Lanczos case).
Completes work started here: https://github.com/boostorg/math/pull/1007
2023-08-30 11:50:28 +01:00
Jimmy Lu ee80892282 Fix inverse_discrete_quantile for large guess
If `guess` passed to `inverse_discrete_quantile` cannot be represented
as floating point number, it is possible that `guess + 1` or `guess - 1`
does not change the value at all and we are stuck in infinite loop
inside `round_to_floor` or `round_to_ceil`.  Fix this by
increase/decrease more than 1 in these cases.

Example code to reproduce this:
```c++
boost::math::binomial_distribution<> dist(9079765771874083840, 0.561815);
boost::math::quantile(dist, 0.0365346);
```
2023-08-05 12:53:30 -04:00
Brian Wignall df17d11299 Fix more typos, via latest version of typochecker tool 2019-12-20 10:41:42 -05:00
Brian Wignall 54770599d5 Fix more typos 2019-12-16 13:35:48 -05:00
Nick Thompson 9b14fff12e Remove header deprecation warnings. 2019-08-10 08:50:12 -04:00
Nick Thompson cf35d745d1 Remove unused typedef. Fix dangling reference to policy in airy. Pipe unused variables in compile test to /dev/null to suppress compiler warnings. Remove comment within comment. 2017-05-03 10:13:18 -06:00
inkstink dd6ac8f9da typos 2016-08-19 20:47:49 -04:00
inkstink 950d3990e4 fixed typos 2016-08-19 20:33:24 -04:00
jzmaddock ba365b5aaa Enable running of tests with exception handling off.
And fix a few bugs that showed up in the process.
Currently msvc-only (not GCC as Boost.Test doesn't build).
2015-09-05 19:08:28 +01:00
jzmaddock ee2d3a68af Oh my, fix lots of typos (search and replace). 2015-06-18 18:47:50 +01:00
Gennadiy Rozental 3bc111cdb7 Eliminated test_exec_monitor
[SVN r82782]
2013-02-08 05:09:47 +00:00
Paul A. Bristow c30e63349a Added out of range checks
[SVN r78767]
2012-05-30 16:32:12 +00:00
John Maddock fe611467f4 Fix up tests to not run real_concept tests when BOOST_MATH_NO_REAL_CONCEPT_TESTS is set.
[SVN r78208]
2012-04-26 15:48:42 +00:00
John Maddock 887f590fcd Refactor the tests some more: allow tables of data to be of a different type to the type being tested - allows us to have tables of POD's (fast to compile) rather than tables of UDT's which compile very slowly on some compilers (usually Intel).
[SVN r76544]
2012-01-16 18:25:02 +00:00
John Maddock 2246b77395 Change tests to link to external Boost.Test library as this speeds build times by several factors when building with Intel C++.
Change fpclassify to use our code rather than std::fpclassify with Intel C++ as it doesn't always compile the latter.

[SVN r51576]
2009-03-03 17:16:56 +00:00
John Maddock 66d109e1b3 Break the test_binomial_real_concept test into 7 parts to reduce memory consumption.
[SVN r48667]
2008-09-08 17:55:36 +00:00
John Maddock 669bfb3991 Merged changes from sandbox to Trunk:
New special functions for truncation and rounding, plus exponential integrals and zeta.
New non central distributions.
Updated equation png's so that they are all consistent.

[SVN r44091]
2008-04-07 15:58:51 +00:00
John Maddock 4ba0027365 Fixed lots of "inspect" issues: bad hyperlinks, tabs in source and missing licenses.
Tweaked some error levels again.

[SVN r40079]
2007-10-16 09:32:28 +00:00
John Maddock f51e500eea Lots of Borland specific patches: quite a few of the special-function tests do now do actually pass.
[SVN r39958]
2007-10-12 10:01:36 +00:00
John Maddock d4c1bb24c7 Added Compaq CXX long long workaround to real_concept.hpp.
Added missing forward declaration to ellint_1.hpp.
Adjusted native log1p support for aCC.
Removed bad forward declaration of fpclassify: correct declaration appears later in the file.
Adjusted compile_test/test_compile_result.hpp to not return a NULL reference.
Adjusted permitted error-limits for new platforms.
Split some of the tests into smaller units so we don't get compiler timeouts when building (hopefully!)

[SVN r39893]
2007-10-10 16:05:26 +00:00
Paul A. Bristow 76814e7e00 Warning squashing and estimate to find
[SVN r39453]
2007-09-21 17:39:55 +00:00
John Maddock c3ffe27f16 Changed the name of some of the discrete quantile policies, and more or less finished the policy tutorial.
[SVN r38609]
2007-08-12 09:24:08 +00:00
Paul A. Bristow cb82bea11e Paul's Big policy revison
[SVN r38413]
2007-08-03 10:13:47 +00:00
John Maddock 472614473a Merged policy code.
[SVN r7536]
2007-07-25 11:51:46 +00:00
John Maddock 27f5e4d59e Updated hypot with simpler formula.
Added sinh and cosh to ntl.hpp.
Fixed FreeBSD test failures (no real long long support).


[SVN r3598]
2007-01-04 16:20:49 +00:00
Paul A. Bristow 4863b82990 added median tests.
[SVN r3541]
2006-12-20 15:50:50 +00:00
John Maddock 4358aba0ee Finished off binomial and neg binomial docs (hopefully).
Renamed param estimators for (negative) binomial sample sizes.
Tweaked root finding algorithms.
Tweaked ibeta inverse.


[SVN r3483]
2006-11-30 18:26:30 +00:00
John Maddock ccfb864daf Added Jeffreys prior method to the binomial confidence limits.
Fixed a few typos in the neg binomial.


[SVN r3482]
2006-11-30 10:47:26 +00:00
John Maddock ed1b8ae751 Finally got the parameter estimators right, and checked against "known goods".
Misc small fixes to the docs and example programs.


[SVN r3462]
2006-11-26 09:03:49 +00:00
John Maddock d15bf712e5 Fixed binomial estimators and added stronger tests.
Typos in concepts.
Enabled native log1pl on more platforms.
Fixed binomial example.
Added image.


[SVN r3459]
2006-11-24 18:54:52 +00:00
Paul A. Bristow 45de3a56cf Added test fo quantile with probability < pdf(0) - expect zero.
[SVN r3456]
2006-11-24 17:10:27 +00:00
Paul A. Bristow 2612682895 Added check that kurtosis_excess is kurtosis -3
[SVN r3353]
2006-11-07 10:42:28 +00:00
John Maddock 5c8b72ceb4 Last few Linux/HP-UX fixes.
[SVN r3349]
2006-11-06 18:46:44 +00:00
Paul A. Bristow c7581f4df8 Added JM copyright !
[SVN r3342]
2006-11-01 09:32:46 +00:00
Paul A. Bristow eb5e689ad5 updated test to confirm typedef distributions Do work for Cauchy but NOT binomial.
[SVN r3279]
2006-10-21 18:35:37 +00:00
John Maddock 5f5d873826 Added concept checks and concept archetypes.
Uprated tests and distributions to match concept requirements.


[SVN r3251]
2006-10-13 17:37:27 +00:00
John Maddock 47690421b6 Added remez and minima tests.
Added some mimimal fixes to get the code to compile with Borland-5.8.2, although frankly it's more trouble than it's worth.


[SVN r3200]
2006-09-16 16:41:18 +00:00
John Maddock 84829f74e3 Numerous minor patches to get tests passing on Linux x86 (32-bit) and HP-UX / itanium.
[SVN r3183]
2006-09-02 15:05:43 +00:00
John Maddock 9d7123eecf More or less completed normal/binomial/students-t distributions.
Updated docs and tests.


[SVN r3160]
2006-08-25 18:03:48 +00:00
John Maddock 99929b1023 Fixed binomial quantile, added complements, various subtle changes to corner cases, tidied up and removed dead code.
Fixed error messages in beta and gamma inverses.
Updated binomial test program, refacted cdf test cases to test cdf, quantile and complements in one hit.
Added accuracy tests for ibeta_inva and ibeta_invb.
Added more docs.


[SVN r3159]
2006-08-20 09:28:27 +00:00
Paul A. Bristow b95e6b469a 1st test pdf and cdf probably OK, but others not.
[SVN r3156]
2006-08-17 17:42:54 +00:00
Paul A. Bristow 721da6e645 possibly correct tests.
[SVN r3070]
2006-07-06 15:15:53 +00:00
Paul A. Bristow ed2cd482b3 Passes some tests, but others needed?.
[SVN r3068]
2006-07-06 09:59:11 +00:00