![]() |
Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Von Neumann's rejection method for one dimensional PDF. More...
#include <bayeux/mygsl/von_neumann_method.h>
Public Member Functions | |
| bool | is_initialized () const |
| double | get_xmin () const |
| double | get_xmax () const |
| double | get_fmax () const |
| size_t | get_max_counts () const |
| von_neumann_method () | |
| von_neumann_method (double xmin_, double xmax_, const i_unary_function &func_, double fmax_=0.0, size_t nsamples_=DEFAULT_NSAMPLES, size_t max_counts_=DEFAULT_MAX_COUNTS) | |
| void | initialize (double xmin_, double xmax_, const i_unary_function &func_, double fmax_, size_t nsamples_, size_t max_counts_) |
| void | init (double xmin_, double xmax_, const i_unary_function &func_, double fmax_, size_t nsamples_=DEFAULT_NSAMPLES, size_t max_counts_=DEFAULT_MAX_COUNTS) |
| void | reset () |
| double | shoot (rng &) |
| void | dump (std::ostream &out_=std::clog) const |
Static Public Attributes | |
| static const double | AUTO_FMAX |
| static const size_t | MIN_NSAMPLES = 2 |
| static const size_t | DEFAULT_NSAMPLES = 1000 |
| static const size_t | DEFAULT_MAX_COUNTS = 10000 |
| static const size_t | NO_MAX_COUNTS = 0 |
Von Neumann's rejection method for one dimensional PDF.
| mygsl::von_neumann_method::von_neumann_method | ( | ) |
| mygsl::von_neumann_method::von_neumann_method | ( | double | xmin_, |
| double | xmax_, | ||
| const i_unary_function & | func_, | ||
| double | fmax_ = 0.0, |
||
| size_t | nsamples_ = DEFAULT_NSAMPLES, |
||
| size_t | max_counts_ = DEFAULT_MAX_COUNTS |
||
| ) |
| void mygsl::von_neumann_method::dump | ( | std::ostream & | out_ = std::clog | ) | const |
| double mygsl::von_neumann_method::get_fmax | ( | ) | const |
| size_t mygsl::von_neumann_method::get_max_counts | ( | ) | const |
| double mygsl::von_neumann_method::get_xmax | ( | ) | const |
| double mygsl::von_neumann_method::get_xmin | ( | ) | const |
| void mygsl::von_neumann_method::init | ( | double | xmin_, |
| double | xmax_, | ||
| const i_unary_function & | func_, | ||
| double | fmax_, | ||
| size_t | nsamples_ = DEFAULT_NSAMPLES, |
||
| size_t | max_counts_ = DEFAULT_MAX_COUNTS |
||
| ) |
| void mygsl::von_neumann_method::initialize | ( | double | xmin_, |
| double | xmax_, | ||
| const i_unary_function & | func_, | ||
| double | fmax_, | ||
| size_t | nsamples_, | ||
| size_t | max_counts_ | ||
| ) |
| bool mygsl::von_neumann_method::is_initialized | ( | ) | const |
| void mygsl::von_neumann_method::reset | ( | ) |
| double mygsl::von_neumann_method::shoot | ( | rng & | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
1.8.15