Provides std::exponential_distribution, Exp(λ), for symbolic expressions.
When operator() is called, it returns a symbolic expression v / λ where v is a symbolic random variable associated with the standard exponential distribution (λ = 1).
#include <drake/common/symbolic/expression/expression.h>
Public Types | |
| using | RealType = drake::symbolic::Expression |
| using | result_type = RealType |
Public Member Functions | |
| exponential_distribution (RealType lambda) | |
Constructs a new distribution object with lambda. | |
| exponential_distribution () | |
| Constructs a new distribution object with lambda = 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 | lambda () const |
| Returns the lambda λ distribution parameter. | |
| 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 | |
| exponential_distribution (const exponential_distribution &)=default | |
| exponential_distribution & | operator= (const exponential_distribution &)=default |
| exponential_distribution (exponential_distribution &&)=default | |
| exponential_distribution & | operator= (exponential_distribution &&)=default |
Friends | |
| bool | operator== (const exponential_distribution< drake::symbolic::Expression > &lhs, const exponential_distribution< drake::symbolic::Expression > &rhs) |
| using RealType = drake::symbolic::Expression |
| using result_type = RealType |
|
explicit |
Constructs a new distribution object with lambda.
| std::exception | if lambda is a non-positive constant expression. |
| exponential_distribution | ( | ) |
Constructs a new distribution object with lambda = 1.0.
|
default |
|
default |
|
nodiscard |
Returns the lambda λ distribution parameter.
|
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 |