jzmaddock
6bf9d2bffc
[arcsine]Fix concept failures
2014-10-30 11:46:05 +00:00
pabristow
477e194490
Corrected previous failures using real_concept. tested locally OK on MSVC and gcc 4.8
2014-10-28 16:37:43 +00:00
pabristow
0a932fa52b
Expanded tests from double, but errors - see email 27 Oct14
2014-10-27 15:51:54 +00:00
pabristow
716e7eff75
First draft of working docs. Need more tests.
2014-10-20 14:36:03 +01:00
pabristow
7d303aaab0
Initial rough drafts of arcsine (only committed so can pick up better diagnostics in error_handling from inf_dist branch)
2014-10-03 10:12:05 +01:00
jzmaddock
bd807c74e1
Fix more spurious overflows detected by Rocco Romeo.
2014-09-24 18:02:00 +01:00
jzmaddock
b471723bd1
Fix bug cases reported by Rocco Romeo:
...
* Add another approximation for x very small.
* Add code to handle cases where tgamma(a) would overflow.
* Add tests for the above.
2014-09-14 17:05:15 +01:00
jzmaddock
d1d6d5b063
Fix derivative of incomplete beta in special cases where a = b = 0.5 and b = 1.
...
Add additional tests to non-central F and T distributions to verify above fix.
Fixes https://svn.boost.org/trac/boost/ticket/10480 .
2014-09-12 16:29:29 +01:00
jzmaddock
321d8f2eda
Merge branch 'hyper_exponential' into develop
2014-09-08 18:12:52 +01:00
jzmaddock
17e4f40fce
Revert "[distributions] Hyper-Exponential: changed return type of 'probabilities' and 'rates' from 'vector<...>' to 'vector<...> const\&' to allow users to do things like this: 'std::copy(he.probabilities().begin(), he.probabilities().end(), std::ostream_iterator<double>(std::cout, " "));'."
...
This reverts commit a8efc9a637 .
2014-09-08 18:10:53 +01:00
jzmaddock
5d37faf873
Merge branch 'feature/hyperexponential_dist' of https://github.com/sguazt/math into hyper_exponential
2014-09-08 17:14:23 +01:00
sguazt
a8efc9a637
[distributions] Hyper-Exponential: changed return type of 'probabilities' and 'rates' from 'vector<...>' to 'vector<...> const\&' to allow users to do things like this: 'std::copy(he.probabilities().begin(), he.probabilities().end(), std::ostream_iterator<double>(std::cout, " "));'.
2014-09-07 10:29:09 +02:00
jzmaddock
f73ecae7f5
Add some tests for the error handlers.
2014-09-05 18:56:49 +01:00
jzmaddock
bc77596f23
Improve calculation of phase probabilities when normalizing so they really should add up to 1.
...
Allow slight tolerance in checking for sum of phase probabilities.
Add missing call to normalize in iterator constructor.
Remove asserts that duplicated the error handling code - better to provide consistent behavior via the error handlers.
Add comment to examples about other containers working equally well.
2014-09-03 19:25:20 +01:00
sguazt
43de825473
[distributions] Hyper-Exponential: BOOST_MSVC -> _MSC_VER (as _MSC_VER is always defined for MS VS, whereas BOOST_MSVC isn’t defined until *after* the first call to boost/config.hpp). Also, added MSVC pragma 4389.
2014-09-01 21:25:11 +02:00
jzmaddock
4a6cbc1135
Initializer-list constructors don't need to be templates - indeed it is better if they're not.
2014-09-01 18:14:35 +01:00
sguazt
f5cec49a60
[distributions] Hyper-Exponential: added include of 'iterator' for 'std::distance' and aesthetic changes.
2014-09-01 09:50:16 +02:00
sguazt
34e42a36c5
[distributions] Hyper-Exponential: added include file for macro BOOST_NO_CXX11_HDR_INITIALIZER_LIST and removed 'const\&' from 'std::initializer_list' (as from (Stroustrup,TCPL4e).
2014-08-31 23:22:15 +02:00
jzmaddock
60a6730fe2
Modify Marco's 1 and 2 arg constructors to use SFINAE to differentiate between iterators and ranges.
...
Add a 1 arg initializer list constructor.
Update tests accordingly.
2014-08-30 17:03:26 +01:00
sguazt
62ee849eab
[distributions] Hyper-Exponential: added more constructors and class construction test case.
2014-08-28 10:12:41 +02:00
jzmaddock
08308ab945
Merge branch 'feature/hyperexponential_dist' of https://github.com/sguazt/math into hyper_exponential
2014-08-26 18:57:25 +01:00
sguazt
fa198a0b04
[distributions] Hyper-Exponential: clean-up.
2014-08-26 17:08:05 +02:00
jzmaddock
2e7eede435
Add comment linking to discussion.
2014-08-25 17:04:52 +01:00
jzmaddock
d8c97bec27
Add initializer_list support and tests.
2014-08-25 13:11:51 +01:00
sguazt
c693510588
[distributions] Hyper-Exponential: use exponential's PDF in hyperexponential PDF.
2014-08-25 10:45:08 +02:00
jzmaddock
d424e2ef23
Fix some more warnings and enable tests for all the test types.
2014-08-24 18:40:21 +01:00
jzmaddock
b925b0c0e8
Add hyperexponential_distribution to concept checks, fix for warnings/bugs.
2014-08-24 15:21:36 +01:00
jzmaddock
ffc483f907
Up precision of tests.
...
Fix some conceptual compiler errors in hyperexponential_distribution.
2014-08-24 09:29:11 +01:00
Robin Eckert
fb835eb029
fix rounding errors
...
- the direct predecessor/successor for 0.5/-0.5 was formerly wrongly
rounded to 1.0/-1.0 rather than 0.0
- integral numbers of the format 1xxxxxx1 filling mantissa completely
were formerly rounded to the next integral away from zero
2014-08-23 19:42:02 +02:00
sguazt
0735d8177e
[distributions] Hyper-exponential: range arguments to contructor should be passed by const-ref.
2014-08-22 18:32:22 +02:00
sguazt
3621b083e2
[distributions] Hyper-Exponential: registered tests and fixed some test-related issue.
2014-08-22 16:37:35 +02:00
sguazt
144db22c2f
[distributions] Hyper-Exponential: solved 'unused parameter' warning in 'mode' function.
2014-08-22 15:06:12 +02:00
sguazt
412bba6a24
[distributions] Added Hyper-Exponential distribution.
2014-08-22 15:01:23 +02:00
Kohei Takahashi
3c07a49aac
Don't check long double capability for BOOST_CSTDFLOAT_xx.
...
For example IA-32, those macros suggest long double as 80-bit floating
point type, however some math runtime implementations are broken for
long doublle even if supported by compiler (e.g. FreeBSD 9, ...).
Signed-off-by: Kohei Takahashi <flast@flast.jp >
2014-08-18 05:13:00 +09:00
jzmaddock
97cdf3ca3a
Disable some msvc warnings, see: d02ae84866 (commitcomment-7257997)
2014-08-04 19:11:53 +01:00
jzmaddock
6e8145a076
Add code to profile changes to toms748_solve.hpp to see if their effect is beneficial.
...
Change the heuristics used when the initial guess is really bad.
Change example to return a fail-code when an error occurs.
2014-07-31 12:48:23 +01:00
Marcel Raad
7621f1e931
Remove redundant variable declarations
...
... to silence compiler warnings about variable shadowing.
2014-07-12 12:44:45 +02:00
Rogier van Dalen
d9ba6ae8b0
Fix missing include
2014-07-10 15:45:49 +01:00
jzmaddock
866492cb02
remove dependency to tr1 - we don't really need it anymore.
2014-06-13 13:32:08 +01:00
jzmaddock
2f65e6cb65
Fix typos.
2014-06-13 08:20:14 +01:00
jzmaddock
ee8edd4c33
Fix up functions that were returning tools::max_value to call overflow_error instead.
...
See https://svn.boost.org/trac/boost/ticket/10111 .
2014-06-12 13:50:30 +01:00
jzmaddock
e20b44e8a9
Move headers that are mostly used for internal maintenance and testing into an "include_private" directory - this is to reduce dependencies on other Boost modules when using this library.
2014-06-09 16:08:35 +01:00
jzmaddock
09fceb2142
Merge branch 'develop' of https://github.com/boostorg/math into develop
2014-05-28 13:25:10 +01:00
jzmaddock
7cb3316d06
Fix for 106-bit "double double" types.
2014-05-28 13:24:40 +01:00
Kohei Takahashi
c50b5a8bcc
Fix missing header
...
Signed-off-by: Kohei Takahashi <flast@flast.jp >
2014-05-27 11:07:23 +09:00
jzmaddock
a29a74bdaf
Add needed include to config.hpp, fix runtime checks under valgrind in erf_inv initialization, see https://svn.boost.org/trac/boost/ticket/10005
2014-05-26 19:14:49 +01:00
jzmaddock
ab6cc524dd
Fix Halley iteration to work when derivative is zero, even though the second derivative is not, see https://svn.boost.org/trac/boost/ticket/10046 .
2014-05-25 15:35:08 +01:00
jzmaddock
e6996e1188
Fix round and trunc functions to work with integer arguments, see https://svn.boost.org/trac/boost/ticket/10066 .
2014-05-24 09:47:21 +01:00
jzmaddock
5a9688e4ef
Apply fix from https://svn.boost.org/trac/boost/ticket/9884
2014-04-14 15:49:43 +01:00
jzmaddock
0c01f682eb
Fix some corner cases in negative_binomial_distribution, see https://svn.boost.org/trac/boost/ticket/9834
2014-04-06 11:59:10 +01:00