0
3
0
| ... | ... |
@@ -74,6 +74,4 @@ |
| 74 | 74 |
///\file |
| 75 | 75 |
///\brief Mersenne Twister random number generator |
| 76 |
/// |
|
| 77 |
///\author Balazs Dezso |
|
| 78 | 76 |
|
| 79 | 77 |
namespace lemon {
|
| ... | ... |
@@ -517,10 +515,8 @@ |
| 517 | 515 |
/// good programming convenience to use this global generator to get |
| 518 | 516 |
/// random numbers. |
| 519 |
/// |
|
| 520 |
/// \author Balazs Dezso |
|
| 521 | 517 |
class Random {
|
| 522 | 518 |
private: |
| 523 | 519 |
|
| 524 |
// |
|
| 520 |
// Architecture word |
|
| 525 | 521 |
typedef unsigned long Word; |
| 526 | 522 |
|
| ... | ... |
@@ -724,6 +720,6 @@ |
| 724 | 720 |
/// Gauss distribution with given mean and standard deviation |
| 725 | 721 |
|
| 722 |
/// Gauss distribution with given mean and standard deviation |
|
| 726 | 723 |
/// \sa gauss() |
| 727 |
/// |
|
| 728 | 724 |
double gauss(double mean,double std_dev) |
| 729 | 725 |
{
|
| ... | ... |
@@ -815,4 +811,7 @@ |
| 815 | 811 |
|
| 816 | 812 |
/// Uniform distribution on the full unit circle. |
| 813 |
|
|
| 814 |
/// Uniform distribution on the full unit circle. |
|
| 815 |
/// |
|
| 817 | 816 |
dim2::Point<double> disc() |
| 818 | 817 |
{
|
| ... | ... |
@@ -49,7 +49,11 @@ |
| 49 | 49 |
///\sa Tolerance<long double> |
| 50 | 50 |
///\sa Tolerance<int> |
| 51 |
#if defined __GNUC__ && !defined __STRICT_ANSI__ |
|
| 51 | 52 |
///\sa Tolerance<long long int> |
| 53 |
#endif |
|
| 52 | 54 |
///\sa Tolerance<unsigned int> |
| 55 |
#if defined __GNUC__ && !defined __STRICT_ANSI__ |
|
| 53 | 56 |
///\sa Tolerance<unsigned long long int> |
| 57 |
#endif |
|
| 54 | 58 |
|
| 55 | 59 |
template<class T> |
| ... | ... |
@@ -131,5 +135,5 @@ |
| 131 | 135 |
bool negative(Value a) const { return -_epsilon>a; }
|
| 132 | 136 |
///Returns \c true if \c a is \e surely non-zero |
| 133 |
bool nonZero(Value a) const { return positive(a)||negative(a); }
|
|
| 137 |
bool nonZero(Value a) const { return positive(a)||negative(a); }
|
|
| 134 | 138 |
|
| 135 | 139 |
///@} |
| ... | ... |
@@ -182,5 +186,5 @@ |
| 182 | 186 |
bool negative(Value a) const { return -_epsilon>a; }
|
| 183 | 187 |
///Returns \c true if \c a is \e surely non-zero |
| 184 |
bool nonZero(Value a) const { return positive(a)||negative(a); }
|
|
| 188 |
bool nonZero(Value a) const { return positive(a)||negative(a); }
|
|
| 185 | 189 |
|
| 186 | 190 |
///@} |
| ... | ... |
@@ -233,5 +237,5 @@ |
| 233 | 237 |
bool negative(Value a) const { return -_epsilon>a; }
|
| 234 | 238 |
///Returns \c true if \c a is \e surely non-zero |
| 235 |
bool nonZero(Value a) const { return positive(a)||negative(a); }
|
|
| 239 |
bool nonZero(Value a) const { return positive(a)||negative(a); }
|
|
| 236 | 240 |
|
| 237 | 241 |
///@} |
| ... | ... |
@@ -266,5 +270,5 @@ |
| 266 | 270 |
static bool negative(Value a) { return 0>a; }
|
| 267 | 271 |
///Returns \c true if \c a is \e surely non-zero |
| 268 |
static bool nonZero(Value a) { return a!=0; }
|
|
| 272 |
static bool nonZero(Value a) { return a!=0; }
|
|
| 269 | 273 |
|
| 270 | 274 |
///@} |
| ... | ... |
@@ -299,5 +303,5 @@ |
| 299 | 303 |
static bool negative(Value) { return false; }
|
| 300 | 304 |
///Returns \c true if \c a is \e surely non-zero |
| 301 |
static bool nonZero(Value a) { return a!=0; }
|
|
| 305 |
static bool nonZero(Value a) { return a!=0; }
|
|
| 302 | 306 |
|
| 303 | 307 |
///@} |
| ... | ... |
@@ -333,5 +337,5 @@ |
| 333 | 337 |
static bool negative(Value a) { return 0>a; }
|
| 334 | 338 |
///Returns \c true if \c a is \e surely non-zero |
| 335 |
static bool nonZero(Value a) { return a!=0;}
|
|
| 339 |
static bool nonZero(Value a) { return a!=0;}
|
|
| 336 | 340 |
|
| 337 | 341 |
///@} |
| ... | ... |
@@ -366,5 +370,5 @@ |
| 366 | 370 |
static bool negative(Value) { return false; }
|
| 367 | 371 |
///Returns \c true if \c a is \e surely non-zero |
| 368 |
static bool nonZero(Value a) { return a!=0;}
|
|
| 372 |
static bool nonZero(Value a) { return a!=0;}
|
|
| 369 | 373 |
|
| 370 | 374 |
///@} |
| ... | ... |
@@ -403,5 +407,5 @@ |
| 403 | 407 |
static bool negative(Value a) { return 0>a; }
|
| 404 | 408 |
///Returns \c true if \c a is \e surely non-zero |
| 405 |
static bool nonZero(Value a) { return a!=0;}
|
|
| 409 |
static bool nonZero(Value a) { return a!=0;}
|
|
| 406 | 410 |
|
| 407 | 411 |
///@} |
| ... | ... |
@@ -438,5 +442,5 @@ |
| 438 | 442 |
static bool negative(Value) { return false; }
|
| 439 | 443 |
///Returns \c true if \c a is \e surely non-zero |
| 440 |
static bool nonZero(Value a) { return a!=0;}
|
|
| 444 |
static bool nonZero(Value a) { return a!=0;}
|
|
| 441 | 445 |
|
| 442 | 446 |
///@} |
0 comments (0 inline)