Drake
Drake C++ Documentation
UniformVector< Size > Class Template Referencefinal

Detailed Description

template<int Size>
class drake::schema::UniformVector< Size >

A uniform distribution with vector min inclusive and vector max exclusive.

Template Parameters
Sizerows at compile time (max 6) or else Eigen::Dynamic.

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

Public Member Functions

 UniformVector ()
 
 UniformVector (const drake::Vector< double, Size > &min, const drake::Vector< double, Size > &max)
 
 ~UniformVector () final
 
Eigen::VectorXd Sample (drake::RandomGenerator *generator) const final
 
Eigen::VectorXd Mean () const final
 
drake::VectorX< drake::symbolic::ExpressionToSymbolic () const final
 
template<typename Archive >
void Serialize (Archive *a)
 
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable
 UniformVector (const UniformVector &)=default
 
UniformVectoroperator= (const UniformVector &)=default
 
 UniformVector (UniformVector &&)=default
 
UniformVectoroperator= (UniformVector &&)=default
 
- Public Member Functions inherited from DistributionVector
virtual ~DistributionVector ()
 

Public Attributes

drake::Vector< double, Size > min
 
drake::Vector< double, Size > max
 

Additional Inherited Members

- Protected Member Functions inherited from DistributionVector
 DistributionVector ()
 
 DistributionVector (const DistributionVector &)=default
 
DistributionVectoroperator= (const DistributionVector &)=default
 
 DistributionVector (DistributionVector &&)=default
 
DistributionVectoroperator= (DistributionVector &&)=default
 

Constructor & Destructor Documentation

◆ UniformVector() [1/4]

UniformVector ( const UniformVector< Size > &  )
default

◆ UniformVector() [2/4]

UniformVector ( UniformVector< Size > &&  )
default

◆ UniformVector() [3/4]

◆ UniformVector() [4/4]

UniformVector ( const drake::Vector< double, Size > &  min,
const drake::Vector< double, Size > &  max 
)

◆ ~UniformVector()

~UniformVector ( )
final

Member Function Documentation

◆ Mean()

Eigen::VectorXd Mean ( ) const
finalvirtual

Implements DistributionVector.

◆ operator=() [1/2]

UniformVector& operator= ( const UniformVector< Size > &  )
default

◆ operator=() [2/2]

UniformVector& operator= ( UniformVector< Size > &&  )
default

◆ Sample()

Eigen::VectorXd Sample ( drake::RandomGenerator generator) const
finalvirtual

Implements DistributionVector.

◆ Serialize()

void Serialize ( Archive *  a)

◆ ToSymbolic()

drake::VectorX<drake::symbolic::Expression> ToSymbolic ( ) const
finalvirtual

Implements DistributionVector.

Member Data Documentation

◆ max

drake::Vector<double, Size> max

◆ min

drake::Vector<double, Size> min

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