|
| static double | getGaussianScalar (double std=1, double bias=0) |
| template<typename BiasType, typename StdType = Eigen::Matrix<double, BiasType::RowsAtCompileTime, BiasType::RowsAtCompileTime>> |
| static Eigen::Matrix< double, BiasType::RowsAtCompileTime, BiasType::ColsAtCompileTime > | getGaussianMatrix (BiasType bias=Eigen::Matrix< double, BiasType::RowsAtCompileTime, BiasType::ColsAtCompileTime >::Zero(), StdType std=Eigen::Matrix< double, BiasType::RowsAtCompileTime, BiasType::RowsAtCompileTime >::Identity(), Index rows=Index(EigenType< BiasType >::type::RowsAtCompileTime), Index cols=Index(EigenType< BiasType >::type::ColsAtCompileTime)) |
| static double | getUniformScalar (double min=-1., double max=1.) |
| | Get a scalar following a uniform distribution between min and max.
|
| template<typename ReturnType = Matrix> |
| static MatrixType< ReturnType >::type | getUniformMatrix (Index rows=ReturnType::RowsAtCompileTime, Index cols=ReturnType::ColsAtCompileTime, double min=-1., double max=1.) |
| | Get a Matrix following a uniform distribution between min and max.
|
|
static void | setSeed (unsigned int seed) |
| | sets the seed to the generator
|
|
static void | setRandomSeed () |
| | sets the seed to the generator
|
◆ ProbabilityLawSimulation()
| stateObservation::tools::ProbabilityLawSimulation::ProbabilityLawSimulation |
( |
| ) |
|
|
inlineprotected |
◆ getGaussianScalar()
| double stateObservation::tools::ProbabilityLawSimulation::getGaussianScalar |
( |
double | std = 1, |
|
|
double | bias = 0 ) |
|
static |
gets a scalar Gaussian random variable having a given bias and standard deviation(std) default is the cetered unit Gaussian
◆ getGaussianMatrix()
template<typename BiasType, typename StdType = Eigen::Matrix<double, BiasType::RowsAtCompileTime, BiasType::RowsAtCompileTime>>
| Eigen::Matrix< double, BiasType::RowsAtCompileTime, BiasType::ColsAtCompileTime > stateObservation::tools::ProbabilityLawSimulation::getGaussianMatrix |
( |
BiasType | bias = Eigen::Matrix< double, BiasType::RowsAtCompileTime, BiasType::ColsAtCompileTime >::Zero(), |
|
|
StdType | std = Eigen::Matrix< double, BiasType::RowsAtCompileTime, BiasType::RowsAtCompileTime >::Identity(), |
|
|
Index | rows = Index(EigenType< BiasType >::type::RowsAtCompileTime), |
|
|
Index | cols = Index(EigenType< BiasType >::type::ColsAtCompileTime) ) |
|
static |
gets vector Gaussian random variable having a given bias and standard deviation(std)
◆ getUniformScalar()
| double stateObservation::tools::ProbabilityLawSimulation::getUniformScalar |
( |
double | min = -1., |
|
|
double | max = 1. ) |
|
static |
Get a scalar following a uniform distribution between min and max.
- Parameters
-
| min | the minimal value of the variable |
| max | the maximal value of the variable |
- Returns
- double The simulated random variable
◆ getUniformMatrix()
template<typename ReturnType = Matrix>
| MatrixType< ReturnType >::type stateObservation::tools::ProbabilityLawSimulation::getUniformMatrix |
( |
Index | rows = ReturnType::RowsAtCompileTime, |
|
|
Index | cols = ReturnType::ColsAtCompileTime, |
|
|
double | min = -1., |
|
|
double | max = 1. ) |
|
static |
Get a Matrix following a uniform distribution between min and max.
- Parameters
-
| min | the minimal value of the variable |
| max | the maximal value of the variable |
◆ defaultSeed_
| const int stateObservation::tools::ProbabilityLawSimulation::defaultSeed_ |
|
staticprotected |
◆ rd_
| std::random_device stateObservation::tools::ProbabilityLawSimulation::rd_ |
|
staticprotected |
◆ gen_
| std::mt19937 stateObservation::tools::ProbabilityLawSimulation::gen_ |
|
staticprotected |
The documentation for this class was generated from the following file: