|
Open3D (C++ API)
0.19.0
|
#include <Random.h>
Public Member Functions | |
| template<typename InputIt> | |
| DiscreteGenerator (InputIt first, InputIt last) | |
| T | operator() () |
| Call this to generate a discretely distributed integer value. | |
Protected Attributes | |
| std::discrete_distribution< T > | distribution_ |
Generate discretely distributed integer values according to a range of weight values. This class is globally seeded by utility::random::Seed(). This class is a wrapper around std::discrete_distribution.
Example:
|
inline |
Generate discretely distributed integer values according to a range of weight values.
| first | The iterator or pointer pointing to the first element in the range of weights. |
| last | The iterator or pointer pointing to one past the last element in the range of weights. |
|
inline |
Call this to generate a discretely distributed integer value.
|
protected |