Base class for a single distribution, to be used with YAML archives.
(See class DistributionVector for vector-valued distributions.)
See Implementing Serialize for implementation details, especially the unusually public member fields of our subclasses.
#include <drake/common/schema/stochastic.h>
Public Member Functions | |
virtual | ~Distribution () |
virtual double | Sample (drake::RandomGenerator *generator) const =0 |
virtual double | Mean () const =0 |
virtual drake::symbolic::Expression | ToSymbolic () const =0 |
Protected Member Functions | |
Distribution () | |
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable | |
Distribution (const Distribution &)=default | |
Distribution & | operator= (const Distribution &)=default |
Distribution (Distribution &&)=default | |
Distribution & | operator= (Distribution &&)=default |
|
virtual |
|
protecteddefault |
|
protecteddefault |
|
protected |
|
pure virtual |
Implemented in UniformDiscrete, Uniform, Gaussian, and Deterministic.
|
protecteddefault |
|
protecteddefault |
|
pure virtual |
Implemented in UniformDiscrete, Uniform, Gaussian, and Deterministic.
|
pure virtual |
Implemented in UniformDiscrete, Uniform, Gaussian, and Deterministic.