Montecarlo simulation for experiments in 1D.
Template arguments are:
HOW TO USE THIS CLASS: - Create an instance of the class. - Refill the "valueGenerator" member with an appropriate function. - If your experiment calculates the error directly from the base value,then refill the "errorFun1" member.
Definition at line 45 of file CMonteCarlo.h.
#include <mrpt/math/CMonteCarlo.h>
Classes | |
class | CStatisticalAnalyzer |
Public Member Functions | |
CMonteCarlo () | |
NUM | doExperiment (size_t N, double &time, bool showInWindow=false) |
Public Attributes | |
T(* | valueGenerator )(mrpt::random::CRandomGenerator &) |
NUM(* | errorFun1 )(const T &) |
OTHER(* | intermediateFun )(const T &) |
NUM(* | errorFun2 )(const T &, const OTHER &) |
Private Attributes | |
mrpt::random::CRandomGenerator | gen |
|
inline |
Definition at line 100 of file CMonteCarlo.h.
|
inline |
Definition at line 108 of file CMonteCarlo.h.
References mrpt::math::CMonteCarlo< T, NUM, OTHER >::errorFun1, mrpt::math::CMonteCarlo< T, NUM, OTHER >::errorFun2, mrpt::math::CMonteCarlo< T, NUM, OTHER >::gen, mrpt::math::CMonteCarlo< T, NUM, OTHER >::CStatisticalAnalyzer::getDistribution(), mrpt::math::CMonteCarlo< T, NUM, OTHER >::intermediateFun, mrpt::gui::CBaseGUIWindow::isOpen(), mrpt::gui::CDisplayWindowPlots::plot(), mrpt::system::CTicTac::Tac(), mrpt::system::CTicTac::Tic(), and mrpt::math::CMonteCarlo< T, NUM, OTHER >::valueGenerator.
NUM(* mrpt::math::CMonteCarlo< T, NUM, OTHER >::errorFun1) (const T &) |
Definition at line 96 of file CMonteCarlo.h.
Referenced by mrpt::math::CMonteCarlo< T, NUM, OTHER >::doExperiment().
NUM(* mrpt::math::CMonteCarlo< T, NUM, OTHER >::errorFun2) (const T &, const OTHER &) |
Definition at line 99 of file CMonteCarlo.h.
Referenced by mrpt::math::CMonteCarlo< T, NUM, OTHER >::doExperiment().
|
private |
Definition at line 48 of file CMonteCarlo.h.
Referenced by mrpt::math::CMonteCarlo< T, NUM, OTHER >::doExperiment().
OTHER(* mrpt::math::CMonteCarlo< T, NUM, OTHER >::intermediateFun) (const T &) |
Definition at line 98 of file CMonteCarlo.h.
Referenced by mrpt::math::CMonteCarlo< T, NUM, OTHER >::doExperiment().
T(* mrpt::math::CMonteCarlo< T, NUM, OTHER >::valueGenerator) (mrpt::random::CRandomGenerator &) |
Definition at line 94 of file CMonteCarlo.h.
Referenced by mrpt::math::CMonteCarlo< T, NUM, OTHER >::doExperiment().
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST |