Uniform random points in N-D. More...
#include <UniformRandom.h>
Public Types | |
typedef T | Number |
The number type. | |
typedef void | argument_type |
Since this is a generator, the argument type is void . | |
typedef ads::FixedArray< N, Number > | result_type |
The result type is a Cartesian point in N-D. | |
Public Member Functions | |
UniformRandomPoint () | |
Default constructor. | |
UniformRandomPoint (const result_type &min, const result_type &max) | |
Construct from the lower and upper bounds. | |
UniformRandomPoint (const result_type &min, const result_type &max, const unsigned int n) | |
Construct from the lower and upper bounds and a seed. | |
UniformRandomPoint (const UniformRandomPoint &x) | |
Copy constructor. | |
UniformRandomPoint & | operator= (const UniformRandomPoint &other) |
Assignment operator. | |
~UniformRandomPoint () | |
Destructor. | |
const result_type & | min () const |
Return the lower bound of the interval. | |
const result_type & | max () const |
Return the upper bound of the interval. | |
const result_type & | operator() () const |
Return a random point in the closed interval [min() .. max()]. |
Uniform random points in N-D.