state-observation 1.7.0
Loading...
Searching...
No Matches
gaussian-white-noise.hpp
Go to the documentation of this file.
1
11#ifndef SENSORSIMULATIONGAUSSIANWHITENOISEHPP
12#define SENSORSIMULATIONGAUSSIANWHITENOISEHPP
13
14#include <state-observation/api.h>
16
17namespace stateObservation
18{
19
30{
31public:
34
37
40
43 virtual Vector getNoisy(const Vector &);
44
47 virtual void setStandardDeviation(const Matrix & std);
48
52 virtual void setCovarianceMatrix(const Matrix & cov);
53
55 virtual void setBias(const Vector & bias);
56
58 virtual void setDimension(Index dim_);
59
61 virtual Index getDimension() const;
62
66
67protected:
68 virtual void checkMatrix_(const Matrix & m) const;
69
70 virtual void checkVector_(const Vector & v) const;
71
73
75
77
79
80 void (*sum_)(const Vector & stateVector, const Vector & tangentVector, Vector & result);
81};
82
83} // namespace stateObservation
84
85#endif // SENSORSIMULATIONGAUSSIANWHITENOISEHPP
The class derivates the NoiseBase class to implement a gaussian white noise with a given covariance m...
Definition gaussian-white-noise.hpp:30
virtual void checkMatrix_(const Matrix &m) const
virtual Vector getNoisy(const Vector &)
virtual void setStandardDeviation(const Matrix &std)
void setSumFunction(void(*sum)(const Vector &stateVector, const Vector &tangentVector, Vector &result))
virtual void checkVector_(const Vector &v) const
virtual void setBias(const Vector &bias)
sets the bias of the white noise
Vector bias_
Definition gaussian-white-noise.hpp:76
Matrix std_
Definition gaussian-white-noise.hpp:74
virtual ~GaussianWhiteNoise()
Virtual destructor.
Definition gaussian-white-noise.hpp:33
virtual void setDimension(Index dim_)
sets the dimension of the noise vector
virtual void setCovarianceMatrix(const Matrix &cov)
Index dim_
Definition gaussian-white-noise.hpp:72
Vector noisy_
Definition gaussian-white-noise.hpp:78
GaussianWhiteNoise()
The default constructor.
virtual Index getDimension() const
Gets the dimension of the noise vector.
GaussianWhiteNoise(Index dimension)
The constructor that provides the dimension of the noise vector.
Definition noise-base.hpp:29
Definition bidim-elastic-inv-pendulum-dyn-sys.hpp:21
Eigen::MatrixXd Matrix
Dynamic sized Matrix.
Definition definitions.hpp:100
Eigen::Index Index
Definition definitions.hpp:138
Eigen::VectorXd Vector
Dynamic sized scalar vector.
Definition definitions.hpp:76