fixed bug #1318. extended RNG::fill with the optional saturateRange parameter

This commit is contained in:
Vadim Pisarevsky
2012-03-29 12:00:34 +00:00
parent ee8c4aeb4b
commit 586ff429ec
4 changed files with 57 additions and 5 deletions

View File

@@ -1979,7 +1979,7 @@ public:
float uniform(float a, float b);
//! returns uniformly distributed double-precision floating-point random number from [a,b) range
double uniform(double a, double b);
void fill( InputOutputArray mat, int distType, InputArray a, InputArray b );
void fill( InputOutputArray mat, int distType, InputArray a, InputArray b, bool saturateRange=false );
//! returns Gaussian random variate with mean zero.
double gaussian(double sigma);