A gaussian distribution with vector mean
and vector or scalar stddev
.
When mean
and stddev
both have the same number of elements, that denotes an elementwise pairing of the 0th mean with 0th stddev, 1st mean with 1st stddev, etc.
Alternatively, stddev
can be a vector with a single element, no matter the size of mean
; that denotes the same stddev
value applied to every element of mean
.
Size | rows at compile time (max 6) or else Eigen::Dynamic. |
#include <drake/common/schema/stochastic.h>
Public Member Functions | |
GaussianVector () | |
GaussianVector (const drake::Vector< double, Size > &mean, const drake::VectorX< double > &stddev) | |
~GaussianVector () final | |
Eigen::VectorXd | Sample (drake::RandomGenerator *) const final |
Eigen::VectorXd | Mean () const final |
drake::VectorX< drake::symbolic::Expression > | ToSymbolic () const final |
template<typename Archive > | |
void | Serialize (Archive *a) |
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable | |
GaussianVector (const GaussianVector &)=default | |
GaussianVector & | operator= (const GaussianVector &)=default |
GaussianVector (GaussianVector &&)=default | |
GaussianVector & | operator= (GaussianVector &&)=default |
Public Member Functions inherited from DistributionVector | |
virtual | ~DistributionVector () |
Public Attributes | |
drake::Vector< double, Size > | mean |
drake::VectorX< double > | stddev |
Additional Inherited Members | |
Protected Member Functions inherited from DistributionVector | |
DistributionVector () | |
DistributionVector (const DistributionVector &)=default | |
DistributionVector & | operator= (const DistributionVector &)=default |
DistributionVector (DistributionVector &&)=default | |
DistributionVector & | operator= (DistributionVector &&)=default |
|
default |
|
default |
GaussianVector | ( | ) |
GaussianVector | ( | const drake::Vector< double, Size > & | mean, |
const drake::VectorX< double > & | stddev | ||
) |
|
final |
|
finalvirtual |
Implements DistributionVector.
|
default |
|
default |
|
finalvirtual |
Implements DistributionVector.
void Serialize | ( | Archive * | a | ) |
|
finalvirtual |
Implements DistributionVector.
drake::Vector<double, Size> mean |
drake::VectorX<double> stddev |