|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Static factory creating scalar marginal-distribution objects. More...
#include <MarginalFactory.h>
Static Public Member Functions | |
| static std::unique_ptr< IMarginalDistribution > | create (MarginalType name, MarginalConfig cfg, unsigned int seed=std::random_device{}()) |
| Creates a concrete marginal-distribution object. | |
Static factory creating scalar marginal-distribution objects.
This factory converts:
Internally, construction is delegated through a std::visit over the config variant, so the actual type stored in MarginalConfig matters.
Definition at line 65 of file MarginalFactory.h.
|
static |
Creates a concrete marginal-distribution object.
The returned distribution is heap-allocated and owned through std::unique_ptr<IMarginalDistribution>.
| name | Requested marginal-distribution family. |
| cfg | Variant containing the concrete configuration data. |
| seed | Seed passed to the underlying distribution constructor. |
| std::invalid_argument | if:
|
Definition at line 17 of file MarginalFactory.cpp.