Steven Watanabe
1845d03376
Implement chi_squared_distribution.
...
[SVN r67669]
2011-01-05 05:17:37 +00:00
Steven Watanabe
cbc4f223c2
Make result_type public. Fixes #4777 .
...
[SVN r66803]
2010-11-27 21:28:21 +00:00
Steven Watanabe
9f9c1a5a98
#include the right header. Fixes #4653 .
...
[SVN r65438]
2010-09-16 16:07:31 +00:00
Steven Watanabe
7c3fcb24dc
Implement negative_binomial_distribution.
...
[SVN r65157]
2010-08-31 20:07:59 +00:00
Steven Watanabe
ac88d68a10
Refactor tests
...
[SVN r65093]
2010-08-29 04:03:02 +00:00
Steven Watanabe
7fd055a780
Add missing #include
...
[SVN r65092]
2010-08-29 03:47:16 +00:00
Steven Watanabe
02a9498948
Add the old names of the generators for backward compatibility.
...
[SVN r63549]
2010-07-03 17:52:16 +00:00
Steven Watanabe
c41aabe99a
Some doc cleanup.
...
[SVN r63370]
2010-06-26 20:42:30 +00:00
Steven Watanabe
cf886a330f
Fix a few typos and copy/paste errors.
...
[SVN r63331]
2010-06-26 00:15:56 +00:00
Steven Watanabe
4855688a63
Add extreme_value_distribution.
...
[SVN r63330]
2010-06-25 23:53:34 +00:00
Steven Watanabe
aab4ff005f
Add weibull_distribution.
...
[SVN r63328]
2010-06-25 22:22:53 +00:00
Steven Watanabe
f702db6d89
Sync shuffle_order_engine with C++0x.
...
[SVN r63327]
2010-06-25 21:23:20 +00:00
Steven Watanabe
581361f3df
Extend operator workarounds to Sun CC.
...
[SVN r63310]
2010-06-25 16:35:06 +00:00
Steven Watanabe
1daedf4f9c
Attempt to fix Sun CC's problems with rand48.
...
[SVN r63292]
2010-06-24 18:03:17 +00:00
Steven Watanabe
526d371c03
Attempt to fix msvc-7.1 errors in subtract_with_carry.
...
[SVN r63286]
2010-06-24 15:58:41 +00:00
Steven Watanabe
11b2a55baa
Fix shadowing of template parameters in linear_congruential_engine. Fixes #4371 .
...
[SVN r63284]
2010-06-24 14:34:42 +00:00
Steven Watanabe
b3915ef6b1
Sync ranlux with C++0x.
...
[SVN r63279]
2010-06-24 03:57:42 +00:00
Steven Watanabe
cae34bd24a
Sync discard_block with C++0x.
...
[SVN r63278]
2010-06-24 03:05:45 +00:00
Steven Watanabe
b32280f5fa
A few more fixes for msvc-7.1
...
[SVN r63276]
2010-06-24 00:44:28 +00:00
Steven Watanabe
89530779e6
Sync subtract_with_carry with C++0x.
...
[SVN r63274]
2010-06-24 00:25:52 +00:00
Steven Watanabe
a06b888c94
Sync linear_congruential with C++0x.
...
[SVN r63270]
2010-06-23 20:55:43 +00:00
Steven Watanabe
978a83d8d1
Add missing using for Sun.
...
[SVN r63261]
2010-06-23 18:47:56 +00:00
Steven Watanabe
c5cdd46089
Some optimizations to mersenne_twister.
...
[SVN r63260]
2010-06-23 18:15:27 +00:00
Steven Watanabe
e580086e65
Sync gamma_distribution with C++0x. Fixes #3888 .
...
[SVN r63247]
2010-06-22 20:22:41 +00:00
Steven Watanabe
e9b6830669
Fix vc71 errors, take 2.
...
[SVN r63240]
2010-06-22 15:29:59 +00:00
Steven Watanabe
3303ce69bc
Sync mersenne_twister with C++0x.
...
[SVN r63217]
2010-06-22 02:30:09 +00:00
Steven Watanabe
a46d157029
Attempt to fix Sun and msvc-7.1 errors.
...
[SVN r63188]
2010-06-21 15:13:11 +00:00
Steven Watanabe
2c7387f6ae
Implement discrete_distribution. Fixes #920 .
...
[SVN r63180]
2010-06-21 04:03:55 +00:00
Steven Watanabe
e8a792c155
Fix another integer overflow problem.
...
[SVN r63155]
2010-06-20 19:06:56 +00:00
Steven Watanabe
773e647806
Better implementation of the poisson distribution. Fixes #1540 .
...
[SVN r63126]
2010-06-20 03:24:28 +00:00
Steven Watanabe
94d50aa090
Fix integer overflow bug.
...
[SVN r63101]
2010-06-19 14:55:52 +00:00
Steven Watanabe
0bfc67b8fd
Fix my floor silliness. e.g. int(-0.5) != floor(-0.5)
...
[SVN r63092]
2010-06-19 04:31:28 +00:00
Steven Watanabe
e7e3a4a676
Reimplement binomial_distribution.
...
[SVN r63088]
2010-06-18 22:05:11 +00:00
Steven Watanabe
463e1d4e0f
Check for range errors in the input operator of linear_congruential. Fixes #2667
...
[SVN r62548]
2010-06-08 04:03:58 +00:00
Steven Watanabe
c11219f596
Make sure that all members are initialized. Fixes #4085
...
[SVN r62545]
2010-06-08 03:21:28 +00:00
Steven Watanabe
e5359a15b0
Try to help out borland
...
[SVN r60619]
2010-03-15 17:18:52 +00:00
Steven Watanabe
e318ab4bf2
Attempt to fix Sun CC 5.10 failures
...
[SVN r60615]
2010-03-15 16:46:53 +00:00
Steven Watanabe
eba3181c16
Fix remaining broken links
...
[SVN r60391]
2010-03-09 23:15:18 +00:00
Steven Watanabe
2356b3bef8
Fix a minor typo
...
[SVN r60353]
2010-03-08 16:03:20 +00:00
Steven Watanabe
2e4c0f628c
Make statistics_tests usable with the current library
...
[SVN r60279]
2010-03-07 05:22:40 +00:00
Steven Watanabe
bef66181dd
Fix dll linking
...
[SVN r60210]
2010-03-05 19:56:52 +00:00
Steven Watanabe
bc73588c7e
Rearrange the componenents in libs/random and create a library for random_device. Fixes #3672
...
[SVN r60199]
2010-03-05 19:12:45 +00:00
Steven Watanabe
2248892f09
Add Quickbook/Doxygen documentation
...
[SVN r59910]
2010-02-25 18:13:36 +00:00
Marshall Clow
f3aa639a1f
Fixed shadow warnings reported in ticket 3710
...
[SVN r58148]
2009-12-04 22:22:01 +00:00
Steven Watanabe
330c6db3cb
Fix min/max problems
...
[SVN r57717]
2009-11-16 23:38:21 +00:00
Steven Watanabe
6e35d9a732
Allow arbitrary values to be used as seeds for linear_congruential, linear_feedback_shift, and any generators that depend on them. Fixes #3516
...
[SVN r57663]
2009-11-14 21:07:31 +00:00
Steven Watanabe
af6a0d558a
Disable some warnings for msvc. Fixes #3532
...
[SVN r57008]
2009-10-19 22:53:04 +00:00
Steven Watanabe
7dda7d38bb
Supress warnings from narrowing conversions.
...
[SVN r53888]
2009-06-14 02:33:22 +00:00
Steven Watanabe
ac8bfba53a
misc assertions/tests
...
[SVN r53802]
2009-06-12 00:24:09 +00:00
Steven Watanabe
05846ff977
Fix overload resolution for generator constructors/seed. Fixes #351 . Fixes #2424 . Fixes #2887
...
[SVN r53699]
2009-06-06 19:41:38 +00:00
Steven Watanabe
b9a410339d
Fix the distribution of uniform_int.
...
[SVN r53462]
2009-05-30 16:38:53 +00:00
Jeremiah Willcock
d2f73925af
Fixed most tab and min/max issues from trunk inspection report
...
[SVN r53141]
2009-05-20 19:19:00 +00:00
Steven Watanabe
dfabc22362
Add missing includes.
...
[SVN r52425]
2009-04-16 18:16:50 +00:00
Steven Watanabe
a2ba8e2ac8
Enable stream operators on msvc. Fixes #1068 . Fixes #1691
...
[SVN r51413]
2009-02-23 15:48:27 +00:00
Steven Watanabe
5f1713f436
Initialize _modulus in the linear_congruential constructor that takes a pair of iterators. Fixes #2665
...
[SVN r51410]
2009-02-23 01:19:37 +00:00
Steven Watanabe
86aad2f7f7
Convert uniform_01 to the current distribution interface, dispatching on the first template paramter to retain backwards compatibility. Fixes #599 . Fixes #1544 . Fixes #2679
...
[SVN r51337]
2009-02-19 23:27:40 +00:00
Steven Watanabe
b9f17bed6b
Change shfit2 to shift2. Add missing namespace scope definitions of shift1 and shift2. Fixes #2764
...
[SVN r51311]
2009-02-18 17:54:27 +00:00
Steven Watanabe
c1c5c98651
correctly detect the end of the range in lagged_fibonacci_01::seed. Fixes #2703
...
[SVN r51120]
2009-02-08 23:50:56 +00:00
Steven Watanabe
917c2d45b1
Make validation a static member function. Fixes #2673
...
[SVN r50997]
2009-02-03 19:18:59 +00:00
Marshall Clow
9ef9354097
Applied patch from bug #1546
...
[SVN r50312]
2008-12-18 02:37:07 +00:00
John Maddock
f667a1e945
Change includes of <cmath> to <boost/config/no_tr1/config.hpp>.
...
Previously if Boost.TR1 was in the include path then including <cmath> pulls in all the new TR1 math functions, which in turn also requires linking to an external library. With auto-linking support this requires that library to have been built and be present in the library search path, even if the actual library under use is header only.
Fixes #2392 .
[SVN r49254]
2008-10-10 16:10:00 +00:00
Steven Watanabe
1d7cbef7e2
Replace random's make_unsigned with the type_traits version. Fixes #2026
...
[SVN r46580]
2008-06-21 16:07:44 +00:00
Marshall Clow
9512b57937
Updated bounds on uniform_real and uniform_smallint to allow min == max
...
[SVN r44897]
2008-04-29 20:16:19 +00:00
Marshall Clow
e1fcb34b32
Patches to fixe #1423 and #1473
...
[SVN r42141]
2007-12-18 18:33:55 +00:00
Jens Maurer
c41b4d5bf5
we're actually using the Box-Muller method (with trigonometric functions)
...
[SVN r37704]
2007-05-17 08:37:54 +00:00
Jens Maurer
7fa86c3bdd
local variables should not shadow class members
...
[SVN r37032]
2007-02-21 20:29:57 +00:00
Jens Maurer
28303eb08a
sf.net bug #1665485 : local variables should not shadow class members
...
[SVN r37031]
2007-02-21 20:16:35 +00:00
Jens Maurer
b030f6c24d
sf.net bug #1665444 : local variables should not shadow class members
...
[SVN r37030]
2007-02-21 20:11:48 +00:00
Jens Maurer
b6d3961d00
rounding errors must not cause values outside of [0,1) (noted by Charles Karney)
...
[SVN r34877]
2006-08-11 23:17:07 +00:00
Jens Maurer
465a483356
address uniform_int<> signed/unsigned/overflow issues (noted by Charles Karney)
...
[SVN r34876]
2006-08-11 23:12:39 +00:00
Jens Maurer
8a47c06e6a
fix const-correctness bug (noticed by Roman Yakovenko)
...
[SVN r34875]
2006-08-11 21:36:11 +00:00
Jens Maurer
6458746820
fix sourceforge bug #1524016 : bad seed() implementation
...
[SVN r34600]
2006-07-19 21:51:23 +00:00
Matthias Troyer
598397852f
Fixed missing include according to bug # 1504417
...
[SVN r34430]
2006-06-30 06:38:11 +00:00
Jens Maurer
9b493b296a
fix bug 1505014: avoid signed overflow in modular addition
...
[SVN r34428]
2006-06-29 23:17:14 +00:00
John Maddock
9629ae44a5
Large patch from Ulrich Eckhardt to fix support for EVC++ 4.
...
[SVN r30670]
2005-08-25 16:27:28 +00:00
Jens Maurer
0b7d6db9e2
generalize initialization change to other than 32 bits
...
[SVN r30208]
2005-07-21 22:04:31 +00:00
Jens Maurer
381439b97d
fix bug #1220358 : probability p was not forwarded to contained bernoulli
...
[SVN r29791]
2005-06-24 22:13:43 +00:00
Douglas Gregor
9eacbed88b
Revert Jens Maurer's changes until after release
...
[SVN r29116]
2005-05-21 15:57:01 +00:00
Jens Maurer
409ac3557a
implement ctor and seeding for "unsigned long" and template<class Generator>,
...
use enable_if<> to guide overload resolution
[SVN r29077]
2005-05-19 21:29:06 +00:00
Jens Maurer
24b28494a9
prepare for negative binomial implementation
...
[SVN r29076]
2005-05-19 21:26:05 +00:00
Jens Maurer
280514ff28
use enable_if<> to guide overload resolution for template<class Generator> ctor
...
[SVN r29075]
2005-05-19 21:23:29 +00:00
Jens Maurer
b3b5001821
implement ctor and seeding for "unsigned long" and template<class Generator>,
...
use enable_if<> to guide overload resolution
[SVN r29074]
2005-05-19 21:21:32 +00:00
Douglas Gregor
f47d8a0bd9
Work around bug in Apple's GCC 3.3
...
[SVN r28903]
2005-05-14 18:36:13 +00:00
Douglas Gregor
247de90d65
Work around compilation bug in Apple's GCC 3.3
...
[SVN r28902]
2005-05-14 17:17:49 +00:00
Jens Maurer
a3e3daf579
add #include <cmath> for std::pow
...
[SVN r28793]
2005-05-10 20:30:46 +00:00
Jens Maurer
b450fc98f2
fix conceptual maths bug in seeding for mersenne_twister<>
...
[SVN r28270]
2005-04-15 09:28:57 +00:00
John Maddock
774dcb5188
Make engine_value_type public as per the TR.
...
[SVN r27375]
2005-02-14 11:53:50 +00:00
Douglas Gregor
6db20959fc
Deal with macroized min/max
...
[SVN r26899]
2005-01-28 15:04:17 +00:00
Douglas Gregor
65362c1c47
Cast in the right places
...
[SVN r26674]
2005-01-11 15:34:18 +00:00
Jens Maurer
73e6db0840
as per the TR, input floating-point Engine's are not required to return
...
values in the range [0..1[ (Douglas Gregor)
[SVN r26612]
2004-12-31 15:55:27 +00:00
Jens Maurer
2b360fb849
fix sourceforge bug 911758: properly instantiate variate_generator<> using a
...
reference to the base engine
[SVN r26164]
2004-11-09 21:22:00 +00:00
Jens Maurer
94de4132a2
include <cmath> for std::pow
...
[SVN r26163]
2004-11-09 21:04:35 +00:00
Michael Stevens
7de99be8ad
Use std::min/max instead of BOOST_USING_STD_MIN/MAX
...
for gcc-2.95. Ok for other conforming compilers.
[SVN r25490]
2004-09-30 19:15:32 +00:00
Vladimir Prus
27ecfe77d4
Add missing includes. Without them g++ 3.4 can't compile the following
...
program:
#include <boost/random.hpp>
using namespace boost;
boost::mt19937 rng;
uniform_int<> gen(0, 10);
void do_it()
{
gen(rng);
}
[SVN r25475]
2004-09-29 13:25:37 +00:00
Michael Stevens
3e53b922c7
Work around GCC 3.3 problem with
...
max() { (std::numeric_limit<xx>::max) (); }
Causing and infinite recursion
[SVN r24496]
2004-08-16 09:09:35 +00:00
Jens Maurer
0d597a6afc
fix compiler warning on MSVC 7.1 (Stefan Slapeta)
...
[SVN r24194]
2004-07-30 21:08:06 +00:00
Douglas Gregor
c5d8766e66
Converted to Boost Software License, Version 1.0
...
[SVN r24096]
2004-07-27 03:43:34 +00:00
Eric Niebler
9febe9be3f
move BOOST_USING_STD_MIN and _MAX and BOOST_PREVENT_MACRO_SUBSTITUTION to the config headers, remove boost/minmax.hpp, update coding guidelines
...
[SVN r23313]
2004-07-02 01:21:32 +00:00
Eric Niebler
2f7b6e8f3d
remove std_min and std_max, update minmax coding guidelines
...
[SVN r23162]
2004-06-23 04:49:48 +00:00
Jens Maurer
3ab77175bc
add seed() member functions as per latest WG21 paper (Mario Ruetti)
...
[SVN r22911]
2004-05-24 20:56:58 +00:00
Jens Maurer
015da96141
add missing set(min, max) to uniform_smallint_float constructor (Topher Cooper)
...
[SVN r22851]
2004-05-17 21:18:40 +00:00
Eric Niebler
f63ff478d2
fix min/max problems
...
[SVN r22408]
2004-02-28 21:21:30 +00:00
Eric Niebler
f6d8b32527
fix min/max problems
...
[SVN r22407]
2004-02-28 21:14:04 +00:00
Eric Niebler
5e99463ce1
remove minmax hack from win32.hpp and fix all places that could be affected by the minmax macros
...
[SVN r22394]
2004-02-26 18:27:02 +00:00
Jens Maurer
e0a338c1d5
add missing #include's (Geoffrey Romer, SourceForge bug 882340)
...
[SVN r21928]
2004-01-25 21:22:48 +00:00
Jens Maurer
7a1327749d
fix type of _factor (Mario Rütti)
...
[SVN r21776]
2004-01-15 19:50:29 +00:00
Jens Maurer
e95f6980ec
fix double-increment bug
...
[SVN r21428]
2003-12-30 23:14:11 +00:00
Jens Maurer
cdae4805e6
fix off-by-one bug
...
[SVN r21422]
2003-12-29 22:50:02 +00:00
John Maddock
a19a8feccd
Added workaround for old style iostreams.
...
[SVN r21380]
2003-12-23 11:42:42 +00:00
Jens Maurer
b4aeb8c711
portability fix for Borland 5.6 (Hugo Duncan)
...
[SVN r20571]
2003-10-31 02:45:36 +00:00
Jens Maurer
08ea2c82c7
remove superfluous ; (Michael Stevens)
...
[SVN r20513]
2003-10-28 01:32:49 +00:00
Jens Maurer
5919a68a27
add definitions for in-class static constants, detected by IBM compiler
...
(Matthias Troyer)
[SVN r19466]
2003-08-05 19:32:30 +00:00
Dave Abrahams
06f83a9575
Improved support for BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
...
[SVN r19383]
2003-07-31 01:11:36 +00:00
Dave Abrahams
142bd6210a
operators.hpp, operators_test.cpp - workaround for compilers not
...
supporting the PP lib, many workarounds for another problem which
may be our bug.
linear_congruential.hpp - Borland workaround
[SVN r19350]
2003-07-30 01:11:14 +00:00
Jens Maurer
4ef5ff4519
work around MSVC and Borland problem: they can't access template
...
parameters of the surrounding class from friend function template
inline definitions
[SVN r19223]
2003-07-19 21:28:55 +00:00
Jens Maurer
d7884c2c9d
work around Metrowerks that tries to instantiate an unused static member
...
function and explodes on the static assert therein
[SVN r19199]
2003-07-18 21:06:30 +00:00
Jens Maurer
2890227e23
work around MSVC and Borland problem: they can't access template
...
parameters of the surrounding class from friend function template
inline definitions
[SVN r19198]
2003-07-18 20:49:56 +00:00
Jens Maurer
f9739bf47c
make sure compiler workarounds are mutually exclusive
...
[SVN r19156]
2003-07-16 18:00:35 +00:00
Jens Maurer
ba4fd438a2
allow min == max and assert on min > max
...
[SVN r19117]
2003-07-14 20:09:43 +00:00
Dave Abrahams
dab4eaf3cb
GCC-2.x workarounds
...
[SVN r19078]
2003-07-11 23:47:01 +00:00
Dave Abrahams
2fe6582b77
Work properly with NO_MEMBER_TEMPLATE_FRIENDS
...
[SVN r19076]
2003-07-11 22:21:28 +00:00
Dave Abrahams
87fd676ddc
Work properly with NO_MEMBER_TEMPLATE_FRIENDS
...
[SVN r19071]
2003-07-11 22:15:35 +00:00
Jens Maurer
33d3fd71dd
move static assertions on std::numeric_limits<> from class to constructor
...
scope to suit MSVC
[SVN r19000]
2003-07-09 19:47:11 +00:00
Jens Maurer
5b26d1be08
cast 0 to UIntType before performing bit magic
...
[SVN r18989]
2003-07-09 12:56:40 +00:00
Jens Maurer
1e59f7a328
add missing nested template
...
[SVN r18982]
2003-07-09 00:01:00 +00:00
Jens Maurer
0efba326a7
merge with wg21_random_proposal branch
...
[SVN r18973]
2003-07-07 20:57:14 +00:00
Jens Maurer
5afe5eba35
merge with wg21_random_proposal branch
...
[SVN r18950]
2003-07-06 21:53:42 +00:00
Jens Maurer
772cee7448
work around SGI MIPSpro 7.3.1.x optimizer problem (Synge Todo)
...
[SVN r18232]
2003-04-11 08:39:43 +00:00
Jens Maurer
88bc44f28e
avoid signed/unsigned warning
...
[SVN r18202]
2003-04-08 09:45:02 +00:00
Jens Maurer
ba41696f9e
MSVC portability improvements (Kirill Lapshin)
...
[SVN r18162]
2003-04-02 23:22:00 +00:00
Jens Maurer
1d90a569ac
make work with unsigned IntType (Mario Rueti, Matthias Troyer)
...
[SVN r18160]
2003-04-02 21:42:53 +00:00
Beman Dawes
59c1941a08
Borland fixes (Alisdair Meredith)
...
[SVN r17948]
2003-03-17 01:39:15 +00:00
Björn Karlsson
7c38b53874
Changed RealType& to RealType for mean and sigma
...
[SVN r17632]
2003-02-25 10:29:29 +00:00
Dave Abrahams
c102ef50df
Added missing #include
...
[SVN r17101]
2003-01-31 05:01:16 +00:00
Dave Abrahams
7cf0c648ec
Compiler workarounds
...
[SVN r16911]
2003-01-15 15:43:36 +00:00
Beman Dawes
8d724db34e
add or update See www.boost.org comments
...
[SVN r16708]
2002-12-27 16:51:53 +00:00
Jens Maurer
07f02ef298
check for BOOST_NO_MEMBER_TEMPLATE_FRIENDS
...
[SVN r16682]
2002-12-22 22:03:11 +00:00
Jens Maurer
b9fb804fa4
fix various platform-specific compile problems
...
[SVN r16681]
2002-12-22 21:27:42 +00:00
Jens Maurer
597455959d
make sure to set all mantissa bits of floating-point generators with the
...
seed(first,last) interface (Matthias Troyer)
[SVN r16123]
2002-11-05 20:29:51 +00:00
Jens Maurer
c6156071cc
add operator<< and operator>> for save/restore of distributions
...
[SVN r16109]
2002-11-04 22:07:23 +00:00
Jens Maurer
c524749d74
add Adaptor template parameter, to convert output from underlying generator
...
to input of distribution
[SVN r16104]
2002-11-04 21:37:30 +00:00
Jens Maurer
69a4afbcab
add reasonable defaults for distribution parameters
...
[SVN r16103]
2002-11-04 21:26:21 +00:00
Jens Maurer
ad762a9a93
for some user-provided floating-point type RealType, the preferred approach
...
for using small integers in computations is RealType(3)
(Michael Stevens)
[SVN r15953]
2002-10-17 18:35:12 +00:00
Jens Maurer
839f42d50f
always explicitly convert literals to RealType or result_type
...
[SVN r15950]
2002-10-17 02:39:04 +00:00
Jens Maurer
d804565056
fix comments that talk about not being Assignable
...
[SVN r15949]
2002-10-17 01:52:39 +00:00
Jens Maurer
3614a680c3
make distributions assignable
...
[SVN r15946]
2002-10-16 20:37:43 +00:00
Jens Maurer
4360890da7
make distributions assignable
...
[SVN r15941]
2002-10-16 12:54:08 +00:00
Jens Maurer
59f60b8f45
avoid "divison by zero" compiler warnings
...
[SVN r15940]
2002-10-16 12:52:41 +00:00
Jens Maurer
29c5b0888c
add inquiry functions and reset()
...
[SVN r15939]
2002-10-16 12:51:47 +00:00
Jens Maurer
fd10091f2e
fix workaround for broken compilers
...
[SVN r15885]
2002-10-10 21:13:34 +00:00
Jens Maurer
eed9b9d314
fix typo in broken compiler workaround
...
[SVN r15884]
2002-10-10 21:11:03 +00:00
Jens Maurer
6bb81ab8a6
remove unused variable
...
[SVN r15883]
2002-10-10 21:10:21 +00:00
Jens Maurer
6b3bed4880
add seed() member function
...
[SVN r15882]
2002-10-10 21:09:58 +00:00
Jens Maurer
8044d14309
make portable, don't shift >= word size
...
[SVN r15812]
2002-10-08 23:19:12 +00:00
Jens Maurer
7d4f6ec1ab
fix "left shift >= width of type" warnings; they point out real problems
...
avoid other warnings
[SVN r15800]
2002-10-07 23:42:31 +00:00
Jens Maurer
6db9c8d942
rework to support canonical storage on non-volatile media
...
make operator== work in all cases
[SVN r15755]
2002-10-06 23:21:44 +00:00
Jens Maurer
da8ce36d27
integrate simple compute() function in-class
...
[SVN r15753]
2002-10-06 22:25:38 +00:00
Jens Maurer
45615b25c4
allow it to work with floating-point engines
...
[SVN r15731]
2002-10-05 11:12:33 +00:00
Jens Maurer
04e2b70459
check BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
...
[SVN r15728]
2002-10-05 10:45:53 +00:00
Jens Maurer
450532143b
avoid partial specialization, for the benefit of MSVC
...
[SVN r15727]
2002-10-05 10:44:33 +00:00
Jens Maurer
787b7ed54b
work-around for gcc "divide by zero" warning
...
[SVN r15726]
2002-10-05 08:55:43 +00:00
Jens Maurer
947248d1cd
remove superfluous "const"
...
move static checking of template parameters to class scope
[SVN r15725]
2002-10-05 08:47:10 +00:00
Jens Maurer
efee238052
focus on luxury levels for naming
...
[SVN r15691]
2002-10-03 22:06:48 +00:00
Jens Maurer
dc6ac0c9ab
complete rework of implementation, now supports reliable operator==
...
and operator>> according to specs
[SVN r15690]
2002-10-03 22:04:56 +00:00
Jens Maurer
9355b8df7a
add missing #include (thanks to Ralf W. Grosse-Kunstleve)
...
[SVN r15686]
2002-10-03 21:29:42 +00:00
Jens Maurer
c67ab711af
avoid MSVC internal compiler error by disabling assertions
...
(thanks to Greg Hawkins)
[SVN r15685]
2002-10-03 21:28:54 +00:00
Jens Maurer
8b192b20bc
add new engines and new distributions
...
[SVN r15662]
2002-10-03 00:07:13 +00:00
Jens Maurer
cc07606e48
precompute modulus
...
[SVN r15660]
2002-10-03 00:03:26 +00:00
Jens Maurer
6585deca96
add floating-point ranlux engines
...
[SVN r15659]
2002-10-03 00:02:02 +00:00
Jens Maurer
89b028375b
for the floating-point engine, switch from "modulus" to word_size to
...
be able to handle 48 bits on all platforms (usually the mantissa of a
double)
[SVN r15658]
2002-10-02 23:59:18 +00:00
Jens Maurer
63825754be
remove validation machinery so that discard_block works for integer
...
and floating-point base engine
[SVN r15657]
2002-10-02 23:57:27 +00:00
Jens Maurer
1a27ccda74
expand interface with RealType to store probability
...
[SVN r15640]
2002-10-01 23:02:15 +00:00
Jens Maurer
2fcd29ecc0
make the distribution usable with underlying floating-point generators
...
[SVN r15637]
2002-10-01 22:17:37 +00:00
Jens Maurer
78edc5c0c0
add operator!=
...
make operator<< and operator>> templated on CharT
add uniform iterator-based seed
[SVN r15636]
2002-10-01 22:16:49 +00:00
Jens Maurer
76240c64ef
add operator!=
...
make operator<< and operator>> templated on CharT
add uniform iterator-based seed
rename lagged_fibonacci to lagged_fibonacci_01, add integer lagged_fibonacci
[SVN r15635]
2002-10-01 22:15:50 +00:00
Jens Maurer
fb8ca8bd57
mplement the binomial distribution
...
[SVN r15634]
2002-10-01 21:15:59 +00:00
Jens Maurer
03292cbc94
add storage and retrieval of parameter p
...
[SVN r15633]
2002-10-01 21:15:09 +00:00
Jens Maurer
36f3e816b6
add operator!=
...
make operator<< and operator>> templated on CharT
add uniform iterator-based seed
remove superfluous template parameter
[SVN r15632]
2002-10-01 20:03:59 +00:00
Jens Maurer
c3f5ff0bbc
add operator!=
...
make operator<< and operator>> templated on CharT
add uniform iterator-based seed
add desired word bitsize "w" to interface
[SVN r15631]
2002-10-01 20:01:21 +00:00
Jens Maurer
dabc81d718
move ranlux bases here (from subtract_with_carry.hpp)
...
[SVN r15630]
2002-10-01 19:35:43 +00:00
Jens Maurer
cb3a335f7d
add operator!=
...
make operator<< and operator>> templated on CharT
add uniform iterator-based seed
[SVN r15629]
2002-10-01 19:31:58 +00:00
Jens Maurer
7910ff9f89
add operator!=
...
make operator<< and operator>> templated on CharT
add uniform iterator-based seed
[SVN r15588]
2002-09-30 22:52:55 +00:00
Jens Maurer
a332f69c44
add linear feedback shift engine
...
[SVN r15587]
2002-09-30 22:48:58 +00:00
Jens Maurer
d3db961b22
add xor_combine compound engine
...
[SVN r15586]
2002-09-30 22:47:54 +00:00
Jens Maurer
954519a948
add entropy() member function
...
[SVN r15585]
2002-09-30 22:46:05 +00:00
Jens Maurer
4e72545974
make parameters of the distribution available
...
[SVN r15584]
2002-09-30 22:43:55 +00:00
Jens Maurer
83a8e7cc6d
performance improvement: multiply by pre-computed factor instead
...
of dividing
[SVN r15583]
2002-09-30 22:43:05 +00:00
Jens Maurer
72879cd4d7
add base() and reset() member functions for distributions
...
[SVN r15582]
2002-09-30 22:43:04 +00:00
Jens Maurer
d291e8e79d
add poisson distribution
...
[SVN r15580]
2002-09-30 22:32:07 +00:00
Jens Maurer
3238081f5e
add gamma distribution
...
[SVN r15579]
2002-09-30 22:31:26 +00:00
Jens Maurer
8c98071497
add iterator-based seeding
...
add subtract_with_carry_01 floating-point engine
[SVN r15578]
2002-09-30 22:29:17 +00:00
Björn Karlsson
cd3f295c47
Merged from branch to trunk
...
[SVN r15463]
2002-09-20 11:58:08 +00:00
Jens Maurer
b745b11af9
add RanLux generator and required components
...
no reference to these generators exists yet
validation values need to be provided
[SVN r15307]
2002-09-13 21:30:54 +00:00
Peter Dimov
3869397bda
#include <iterator> added (reported by Neal Becker)
...
[SVN r15066]
2002-08-23 12:30:43 +00:00
Björn Karlsson
c20f8a01b9
Added copyright text
...
[SVN r14636]
2002-07-29 14:34:04 +00:00
Dave Abrahams
78e4693e75
Add missing #include
...
[SVN r13791]
2002-05-09 18:17:31 +00:00
John Maddock
a8103c3097
Patched to get const_mod working with Borland C++ Builder 6
...
[SVN r13668]
2002-05-05 10:57:07 +00:00
Jens Maurer
64625f5c1a
really fix endless loop (reported by Douglas Gregor and Fernando Cacciola)
...
[SVN r13178]
2002-03-11 20:31:05 +00:00
Jens Maurer
eb910ff396
avoid compiler warnings
...
[SVN r13039]
2002-03-03 09:14:31 +00:00
Jens Maurer
8cc4a6e726
remove obsolete comment
...
[SVN r13038]
2002-03-03 09:13:57 +00:00