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::utils::CTicTac::Tac(), mrpt::utils::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.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |