Provides std::uniform_real_distribution, U(a, b), for symbolic expressions.
When operator() is called, it returns a symbolic expression a + (b - a) * v where v is a symbolic random variable associated with the standard uniform distribution.
#include <drake/common/symbolic/expression/expression.h>
Public Types | |
| using | RealType = drake::symbolic::Expression |
| using | result_type = RealType |
Public Member Functions | |
| uniform_real_distribution (RealType a, RealType b=1.0) | |
Constructs a new distribution object with a minimum value a and a maximum value b. | |
| uniform_real_distribution () | |
| Constructs a new distribution object with a = 0.0 and b = 1.0. | |
| void | reset () |
| Resets the internal state of the distribution object. | |
| result_type | operator() () |
| Generates a symbolic expression representing a random value that is distributed according to the associated probability function. | |
| template<class Generator> | |
| result_type | operator() (Generator &) |
| Generates a symbolic expression representing a random value that is distributed according to the associated probability function. | |
| RealType | a () const |
| Returns the minimum value a. | |
| RealType | b () const |
| Returns the maximum value b. | |
| result_type | min () const |
| Returns the minimum potentially generated value. | |
| result_type | max () const |
| Returns the maximum potentially generated value. | |
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable | |
| uniform_real_distribution (const uniform_real_distribution &)=default | |
| uniform_real_distribution & | operator= (const uniform_real_distribution &)=default |
| uniform_real_distribution (uniform_real_distribution &&)=default | |
| uniform_real_distribution & | operator= (uniform_real_distribution &&)=default |
Friends | |
| bool | operator== (const uniform_real_distribution< drake::symbolic::Expression > &lhs, const uniform_real_distribution< drake::symbolic::Expression > &rhs) |
| using RealType = drake::symbolic::Expression |
| using result_type = RealType |
Constructs a new distribution object with a minimum value a and a maximum value b.
| std::exception | if a and b are constant expressions but a > b. |
| uniform_real_distribution | ( | ) |
Constructs a new distribution object with a = 0.0 and b = 1.0.
|
default |
|
default |
|
nodiscard |
Returns the minimum value a.
|
nodiscard |
Returns the maximum value b.
|
nodiscard |
Returns the maximum potentially generated value.
|
nodiscard |
Returns the minimum potentially generated value.
| result_type operator() | ( | ) |
Generates a symbolic expression representing a random value that is distributed according to the associated probability function.
| result_type operator() | ( | Generator & | ) |
Generates a symbolic expression representing a random value that is distributed according to the associated probability function.
|
default |
|
default |
| void reset | ( | ) |
Resets the internal state of the distribution object.
|
friend |