#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. More...
|
|
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. More...
|
|
static void | setSeed (unsigned int seed) |
| sets the seed to the generator More...
|
|
static void | setRandomSeed () |
| sets the seed to the generator More...
|
|
◆ ProbabilityLawSimulation()
stateObservation::tools::ProbabilityLawSimulation::ProbabilityLawSimulation |
( |
| ) |
|
|
inlineprotected |
Private constructor for preventing instanciation of Probability Law Simulation.
◆ getGaussianMatrix()
template<typename BiasType , typename StdType = Eigen::Matrix<double, BiasType::RowsAtCompileTime, BiasType::RowsAtCompileTime>>
static 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)
◆ getGaussianScalar()
static 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
◆ getUniformMatrix()
template<typename ReturnType = Matrix>
static 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 |
◆ getUniformScalar()
static 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
◆ setRandomSeed()
static void stateObservation::tools::ProbabilityLawSimulation::setRandomSeed |
( |
| ) |
|
|
static |
sets the seed to the generator
◆ setSeed()
static void stateObservation::tools::ProbabilityLawSimulation::setSeed |
( |
unsigned int |
seed | ) |
|
|
static |
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: