#include <Random.h>
|
| NormalGenerator (const T mean=0.0, const T stddev=1.0) |
|
T | operator() () |
| Call this to generate a normally distributed floating point value.
|
|
template<typename T>
class open3d::utility::random::NormalGenerator< T >
Generate normally distributed floating point values with mean and std. This class is globally seeded by utility::random::Seed(). This class is a wrapper around std::normal_distribution.
Example:
for (size_t i = 0; i < 10; i++) {
std::cout << gen() << std::endl;
}
void Seed(const int seed)
Set Open3D global random seed.
Definition Random.cpp:53
◆ NormalGenerator()
Generate normally distributed floating point value with mean and std.
- Parameters
-
mean | The mean of the distribution. |
stddev | The standard deviation of the distribution. |
◆ operator()()
Call this to generate a normally distributed floating point value.
◆ distribution_
The documentation for this class was generated from the following file: