... | ... |
@@ -695,9 +695,9 @@ |
695 | 695 |
///@{ |
696 | 696 |
|
697 | 697 |
/// \brief Returns a random bool |
698 | 698 |
/// |
699 |
/// It returns a random bool with given probability of true result |
|
699 |
/// It returns a random bool with given probability of true result. |
|
700 | 700 |
bool boolean(double p) { |
701 | 701 |
return operator()() < p; |
702 | 702 |
} |
703 | 703 |
|
... | ... |
@@ -718,9 +718,9 @@ |
718 | 718 |
return std::sqrt(-2*std::log(S)/S)*V1; |
719 | 719 |
} |
720 | 720 |
/// Gauss distribution with given mean and standard deviation |
721 | 721 |
|
722 |
/// Gauss distribution with given mean and standard deviation |
|
722 |
/// Gauss distribution with given mean and standard deviation. |
|
723 | 723 |
/// \sa gauss() |
724 | 724 |
double gauss(double mean,double std_dev) |
725 | 725 |
{ |
726 | 726 |
return gauss()*std_dev+mean; |
... | ... |
@@ -808,9 +808,9 @@ |
808 | 808 |
/// |
809 | 809 |
|
810 | 810 |
///@{ |
811 | 811 |
|
812 |
/// Uniform distribution on the full unit circle |
|
812 |
/// Uniform distribution on the full unit circle |
|
813 | 813 |
|
814 | 814 |
/// Uniform distribution on the full unit circle. |
815 | 815 |
/// |
816 | 816 |
dim2::Point<double> disc() |
0 comments (0 inline)