32#include "gsl/gsl_monte_vegas.h"
44 mode = GSL_VEGAS_MODE_IMPORTANCE;
64 if (ret)
stage = ival;
74 auto opt = std::make_unique<GenAlgoOptions>();
75 opt->SetRealValue(
"alpha",
alpha);
77 opt->SetIntValue(
"stage",
stage);
78 opt->SetIntValue(
"mode",
mode);
79 opt->SetIntValue(
"verbose",
verbose);
110 if (ret)
alpha = val;
117 ret = opt.
GetIntValue(
"min_calls_per_bisection",ival);
124 auto opt = std::make_unique<GenAlgoOptions>();
125 opt->SetRealValue(
"alpha",
alpha);
126 opt->SetRealValue(
"dither",
dither);
Generic interface for defining configuration options of a numerical algorithm.
virtual bool GetIntValue(const char *, int &) const
virtual bool GetRealValue(const char *, double &) const
Namespace for new Math classes and functions.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
Structure collecting parameters for MISER multidimensional integration.
MiserParameters(size_t dim=10)
size_t min_calls_per_bisection
MiserParameters & operator=(const ROOT::Math::IOptions &opt)
void SetDefaultValues(size_t dim=10)
default MISER parameters (copied from gsl/monte/vegas.c)
std::unique_ptr< ROOT::Math::IOptions > MakeIOptions() const
convert to options (return object is managed by the user)
Structures collecting parameters for VEGAS multidimensional integration For implementation of default...
VegasParameters & operator=(const ROOT::Math::IOptions &opt)
void SetDefaultValues()
default VEGAS parameters (copied from gsl/monte/vegas.c)
std::unique_ptr< ROOT::Math::IOptions > MakeIOptions() const
Convert to options.