Commit graph

43 commits

Author SHA1 Message Date
nojhan
5827444774 Comment out deprecated stuff and fix corresponding tests
This may break your code if you did not pay attention to warnings in the previous release, the old code is still here in
case you want to understand what's going on.
2012-07-06 20:48:18 +02:00
nojhan
b04a66aaea Note: normal rng use the Marsaglia polar method 2011-11-09 15:49:04 +01:00
Caner Candan
56c6edab04 * indentations + whitespace cleanup 2011-05-05 16:54:00 +02:00
Johann Dreo
bd236ee67f add tests interfaces as examples in the doc ; remove unused test binaries ; some code formating 2010-11-07 23:12:28 +01:00
Johann Dreo
2104f5b7e9 and finally... still more grouping in documentation. 2010-11-05 22:46:15 +01:00
Caner Candan
1619b2b38c * eoRNG.h: added double uniform(double min, double max) 2010-08-31 15:53:32 +02:00
paradiseo
eca555a7a3 little change to delete warning 2009-01-27 16:26:44 +00:00
tlegrand
4834adbe5f corrected bad index error when uniform()=0 in roulette_wheel. The error was: if fortune=0, we first have "int i=0", then "return --i" . 2008-02-26 14:53:32 +00:00
maartenkeijzer
fe9fe17eb6 removed const qualifier from choice() member 2007-09-04 13:44:02 +00:00
kuepper
28e59ff064 eoRNG.h (eoRng::random): Add comment on truncation as standard way of
floating point to integer conversion.
2007-08-22 07:30:47 +00:00
kuepper
ac601df371 Correctly round towards zero in random(uint32_t) 2007-08-21 14:47:14 +00:00
kuepper
2bbd2e0d80 Fix typos 2007-08-21 13:58:53 +00:00
kuepper
dbdeaf3353 (eoRng::normal(stdev)): Revert erroneous change. 2006-12-04 21:55:31 +00:00
kuepper
da50bf0986 * eoRNG.h: Cleanup docs and document /all/ members.
* eoRNG.cpp, eoRNG.h (K, M, N): Declare static and initialize in cpp.
2006-12-02 09:39:13 +00:00
kuepper
bcaa0cf5e4 minor cleanup of code and docs,
resolve some compiler warnings
2006-12-01 10:49:47 +00:00
okoenig
4c76c89592 Replaced float vars with double to avoid conversion warnings on VS 8.0 2006-12-01 08:42:54 +00:00
kuepper
532aec85e5 Generally include <cmath> 2006-11-29 23:37:29 +00:00
jeggermo
219e9bd648 Changed some files for compatibility with MSVC 2003 and 2005 2006-11-20 13:25:46 +00:00
kuepper
5c913192e9 Update docs, some cleanup 2006-03-26 10:04:01 +00:00
evomarc
e07c504571 Removed extra colon (;) at end of class definitions.
They didn't hurt until gcc 3.4.1 but then they generated an error!
2005-11-08 11:31:01 +00:00
kuepper
88ebd6ffc1 update for solaris-x86 2005-10-01 14:25:29 +00:00
kuepper
12f80ea291 Include inttypes.h if available but stdint.h is not.
Add powerpc success.
2005-10-01 14:00:42 +00:00
kuepper
cf2a57dd88 Simplify configuration.
Remove support for (outdated) <strstream>, require <sstream>.
Require uint32_t for now, defined in stdint.h according to C99.
Some general cleanup and more documentation.
2005-09-28 21:49:26 +00:00
maartenkeijzer
c73cc51ab9 Removed wrong reference to rng from choice members (what was I thinking?) 2005-09-26 11:22:47 +00:00
kuepper
6e0c4a7264 Make sure uint32_t is defined correctly in eoRNG.h and use it where
appropriate.
2005-09-26 10:18:15 +00:00
maartenkeijzer
462fbaad66 Added few convenience functions 2005-09-25 19:32:10 +00:00
maartenkeijzer
cbfff8fda9 Added choice functions, plus rolled back inadvertant chance to eoRNG 2005-09-25 19:09:38 +00:00
maartenkeijzer
f948ccda3a eoRNG.h 2005-09-07 17:09:19 +00:00
maartenkeijzer
4bdccb3dae Fixed bug in rng::roulette_wheel: use of float had too little precision in change/fortune var 2004-03-26 09:56:56 +00:00
maartenkeijzer
a715dda207 Fixed rng::uniform to not provide the wrong result (1.0) once in every 2^32 times 2004-03-26 09:36:07 +00:00
okoenig
86fa476c67 Removed "using namespace std" statements from header files in EO -- "std::" identifier were added where necessary. 2003-02-27 19:28:07 +00:00
evomarc
30616fca42 Forgot to double also the parameter to initialize in the Ctor! 2001-10-05 03:56:21 +00:00
evomarc
f4efc65994 Modified the reseed method in RNG class so two different seeds give different
sequences, after Jeroen's remark (jeggermo@liacs.nl)
2001-10-05 03:51:15 +00:00
evomarc
5508869d00 A full working version of ES is now available in tutorial/Lesson4,
that makes full use of libes.a.
The user guide is in Lesson4 of the tutorial - programmer's guide
will come later.
Plus many small changes here and there
2001-05-04 16:51:29 +00:00
evomarc
f4d2630516 Corrected a problem in eoEsChromInit (it refused plain eoReal) + some
other minor modications (e.g. a dir in make_checkpoint where ALL file
will go).
2001-05-03 17:20:27 +00:00
maartenkeijzer
ebca71e228 NDSorting: changed exact ranking values to make check for front easier
eoRNG: changed nothing (did some debugging)
2001-03-26 10:09:40 +00:00
evomarc
61a85582d5 Added the namespace eo for the global variable rng in eoRNG.cpp
Also added "using eo::rng" in eoRNG.h so nothing has to be modified.
We should gradually move to write eo::rng everywhere, and remove that using
directive to be almost full-proofed against possible name collision.
2001-01-08 10:07:27 +00:00
evomarc
0642954035 Added a default value (0.5) to method flip 2000-11-05 04:50:10 +00:00
mac
6d8e3a6504 Extreme cleanup, see src/obsolete for details 2000-08-10 14:18:34 +00:00
mac
f357a908bf Updated documentation to give proper include file in doxygen and define a module selectors
Also added a load(stream) and save(stream) to eoState
2000-04-09 09:46:20 +00:00
gustavo
5fe7510807 fixing makefiles 2000-03-30 17:11:20 +00:00
mac
6c79787c43 Changed some includes for the new dir structure 2000-03-22 16:49:35 +00:00
mac
81751e279f Added utilities directory, this contains state, parser etc. 2000-03-22 14:04:03 +00:00