Drake
Drake C++ Documentation
Uniform Class Referencefinal

Detailed Description

A uniform distribution with min inclusive and max exclusive.

#include <drake/common/schema/stochastic.h>

Public Member Functions

 Uniform ()
 
 Uniform (double min, double max)
 
 ~Uniform () 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
 Uniform (const Uniform &)=default
 
Uniformoperator= (const Uniform &)=default
 
 Uniform (Uniform &&)=default
 
Uniformoperator= (Uniform &&)=default
 
- Public Member Functions inherited from Distribution
virtual ~Distribution ()
 

Public Attributes

double min {}
 
double max {}
 

Additional Inherited Members

- Protected Member Functions inherited from Distribution
 Distribution ()
 
 Distribution (const Distribution &)=default
 
Distributionoperator= (const Distribution &)=default
 
 Distribution (Distribution &&)=default
 
Distributionoperator= (Distribution &&)=default
 

Constructor & Destructor Documentation

◆ Uniform() [1/4]

Uniform ( const Uniform )
default

◆ Uniform() [2/4]

Uniform ( Uniform &&  )
default

◆ Uniform() [3/4]

Uniform ( )

◆ Uniform() [4/4]

Uniform ( double  min,
double  max 
)

◆ ~Uniform()

~Uniform ( )
final

Member Function Documentation

◆ Mean()

double Mean ( ) const
finalvirtual

Implements Distribution.

◆ operator=() [1/2]

Uniform& operator= ( const Uniform )
default

◆ operator=() [2/2]

Uniform& operator= ( Uniform &&  )
default

◆ Sample()

double Sample ( drake::RandomGenerator ) const
finalvirtual

Implements Distribution.

◆ Serialize()

void Serialize ( Archive *  a)

◆ ToSymbolic()

drake::symbolic::Expression ToSymbolic ( ) const
finalvirtual

Implements Distribution.

Member Data Documentation

◆ max

double max {}

◆ min

double min {}

The documentation for this class was generated from the following file: