|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Partial base implementation of a copula with RNG support. More...
#include <GenericCopula.h>


Public Member Functions | |
| GenericCopula (unsigned int seed=std::random_device{}()) | |
| Constructs the copula base with a seeded random engine. | |
Public Member Functions inherited from ICopula | |
| virtual | ~ICopula ()=default |
| Virtual destructor. | |
| virtual std::vector< std::vector< double > > | sample_u (std::size_t n)=0 |
| Draws multiple samples from the copula. | |
| virtual std::vector< double > | sample_u ()=0 |
| Draws a single sample from the copula. | |
| virtual double | log_density (std::vector< double > u)=0 |
| Evaluates the log-density of the copula at a point in the unit cube. | |
| virtual RealMatrix | dlog_density (std::vector< double > u)=0 |
| Evaluates the gradient of the log-density of the copula at a point in the unit cube. | |
| virtual RealMatrix | ddlog_density (std::vector< double > u)=0 |
| Evaluates the hessian of the log-density of the copula at a point in the unit cube. | |
| virtual LogDensityDiff | log_c_dc_ddc (std::vector< double > u)=0 |
| Evaluates the value, gradient and hessian of the log-density of the copula at a point in the unit cube. | |
Protected Attributes | |
| const gsl_rng_type * | rng_tp {gsl_rng_mt19937} |
| gsl_rng_sptr | eng_ {nullptr, &gsl_rng_free} |
| GSL RNG type used by the copula. | |
Partial base implementation of a copula with RNG support.
This class mainly exists to factorize:
Derived classes are responsible for:
Definition at line 44 of file GenericCopula.h.
|
explicit |
Constructs the copula base with a seeded random engine.
| seed | Seed used to initialize the underlying GSL RNG. |
Definition at line 3 of file GenericCopula.cpp.
|
protected |
GSL RNG type used by the copula.
Definition at line 55 of file GenericCopula.h.
|
protected |
Definition at line 54 of file GenericCopula.h.