Drake
Drake C++ Documentation
Gaussian Class Referencefinal

Detailed Description

A gaussian distribution with mean and stddev.

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

Public Member Functions

 Gaussian ()
 
 Gaussian (double mean, double stddev)
 
 ~Gaussian () 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
 Gaussian (const Gaussian &)=default
 
Gaussianoperator= (const Gaussian &)=default
 
 Gaussian (Gaussian &&)=default
 
Gaussianoperator= (Gaussian &&)=default
 
- Public Member Functions inherited from Distribution
virtual ~Distribution ()
 

Public Attributes

double mean {}
 
double stddev {}
 

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

◆ Gaussian() [1/4]

Gaussian ( const Gaussian )
default

◆ Gaussian() [2/4]

Gaussian ( Gaussian &&  )
default

◆ Gaussian() [3/4]

Gaussian ( )

◆ Gaussian() [4/4]

Gaussian ( double  mean,
double  stddev 
)

◆ ~Gaussian()

~Gaussian ( )
final

Member Function Documentation

◆ Mean()

double Mean ( ) const
finalvirtual

Implements Distribution.

◆ operator=() [1/2]

Gaussian& operator= ( const Gaussian )
default

◆ operator=() [2/2]

Gaussian& operator= ( Gaussian &&  )
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

◆ mean

double mean {}

◆ stddev

double stddev {}

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