|
Infinity Engine v0.6.20
C++ API Documentation
|
Parameter set for the distribution. More...
#include <PRNGDistribution.hpp>
Public Types | |
| using | distribution_type = UniformRealDistribution< RealType > |
Public Member Functions | |
| param_type () | |
| Default constructor. Creates parameters for uniform distribution over [0, 1). | |
| param_type (RealType a, RealType b=RealType(1)) | |
| Constructs parameters with specified bounds. | |
| RealType | a () const |
| Gets the lower bound. | |
| RealType | b () const |
| Gets the upper bound. | |
Friends | |
| bool | operator== (const param_type &lhs, const param_type &rhs) |
| bool | operator!= (const param_type &lhs, const param_type &rhs) |
Parameter set for the distribution.
Stores the lower and upper bounds of the distribution range. Can be used to change distribution parameters without recreating the distribution object.
| using Infinity::Engine::UniformRealDistribution< RealType >::param_type::distribution_type = UniformRealDistribution<RealType> |
|
inline |
Default constructor. Creates parameters for uniform distribution over [0, 1).
|
inlineexplicit |
Constructs parameters with specified bounds.
| a | Lower bound (inclusive) |
| b | Upper bound (exclusive) |
|
inline |
Gets the lower bound.
|
inline |
Gets the upper bound.
|
friend |
|
friend |