#include <state-observation/tools/probability-law-simulation.hpp>
|
| 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 |
Private constructor for preventing instanciation of Probability Law Simulation.
◆ getGaussianMatrix()
gets vector Gaussian random variable having a given bias and standard deviation(std)
◆ getGaussianScalar()
gets a scalar Gaussian random variable having a given bias and standard deviation(std) default is the cetered unit Gaussian
◆ getUniformMatrix()
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 |
◆ getUniformScalar()
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
◆ setRandomSeed()
| static void stateObservation::tools::ProbabilityLawSimulation::setRandomSeed |
( |
| ) |
|
|
static |
sets the seed to the generator
◆ setSeed()
sets the seed to the generator
◆ defaultSeed_
| const int stateObservation::tools::ProbabilityLawSimulation::defaultSeed_ |
|
staticprotected |
◆ gen_
| std::mt19937 stateObservation::tools::ProbabilityLawSimulation::gen_ |
|
staticprotected |
◆ rd_
| std::random_device stateObservation::tools::ProbabilityLawSimulation::rd_ |
|
staticprotected |
The documentation for this class was generated from the following file: