Chooses from among discrete values
with equal probability.
#include <drake/common/schema/stochastic.h>
Public Member Functions | |
UniformDiscrete () | |
UniformDiscrete (std::vector< double > values) | |
~UniformDiscrete () final | |
double | Sample (drake::RandomGenerator *) const final |
double | Mean () const final |
drake::symbolic::Expression | ToSymbolic () const final |
template<typename Archive > | |
void | Serialize (Archive *a) |
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable | |
UniformDiscrete (const UniformDiscrete &)=default | |
UniformDiscrete & | operator= (const UniformDiscrete &)=default |
UniformDiscrete (UniformDiscrete &&)=default | |
UniformDiscrete & | operator= (UniformDiscrete &&)=default |
Public Member Functions inherited from Distribution | |
virtual | ~Distribution () |
Public Attributes | |
std::vector< double > | values |
Additional Inherited Members | |
Protected Member Functions inherited from Distribution | |
Distribution () | |
Distribution (const Distribution &)=default | |
Distribution & | operator= (const Distribution &)=default |
Distribution (Distribution &&)=default | |
Distribution & | operator= (Distribution &&)=default |
|
default |
|
default |
UniformDiscrete | ( | ) |
|
explicit |
|
final |
|
finalvirtual |
Implements Distribution.
|
default |
|
default |
|
finalvirtual |
Implements Distribution.
void Serialize | ( | Archive * | a | ) |
|
finalvirtual |
Implements Distribution.
std::vector<double> values |