![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <Random.h>
Public Member Functions | |
| NormalGenerator (const T mean=0.0, const T stddev=1.0) | |
| T | operator() () |
| Call this to generate a normally distributed floating point value. More... | |
Protected Attributes | |
| std::normal_distribution< T > | distribution_ |
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:
|
inline |
|
inline |
Call this to generate a normally distributed floating point value.
Definition at line 168 of file Random.h.
References cloudViewer::utility::random::NormalGenerator< T >::distribution_, cloudViewer::utility::random::GetEngine(), and cloudViewer::utility::random::GetMutex().
|
protected |
Definition at line 174 of file Random.h.
Referenced by cloudViewer::utility::random::NormalGenerator< T >::operator()().