class Gambit::Priors::CompositePrior

[No description available] More…

#include <composite.hpp>

Inherits from Gambit::Priors::BasePrior

Public Functions

Name
CompositePrior(const Options & model_options, const Options & prior_options)
Special “build-a-prior” classi.
CompositePrior(const std::vector< std::string > & params, const Options & options)
virtual doublelog_prior_density(const std::unordered_map< std::string, double > & ) const override
Log of prior density.
virtual std::vector< std::string >getShownParameters() const override
virtual voidtransform(hyper_cube_ref< double > unit, std::unordered_map< std::string, double > & physical) const override
Transform from unit hypercube to physical parameter.
virtual voidinverse_transform(const std::unordered_map< std::string, double > & physical, hyper_cube_ref< double > unit) const override
Transform from physical parameter to unit hypercube.
~CompositePrior()

Additional inherited members

Public Functions inherited from Gambit::Priors::BasePrior

Name
virtual~BasePrior() =default
BasePrior()
BasePrior(const int param_size)
BasePrior(const std::vector< std::string > & param_names, const int param_size =0)
BasePrior(const std::string & param_name, const int param_size =0)
unsigned intsize() const
voidsetSize(const unsigned int size)
unsigned int &sizeRef()
std::vector< std::string >getParameters() const

Protected Attributes inherited from Gambit::Priors::BasePrior

Name
std::vector< std::string >param_names

Detailed Description

class Gambit::Priors::CompositePrior;

Special “build-a-prior” class This is the class to use for setting simple 1D priors (from the library above) on individual parameters. It actually also allows for any combination of MD priors to be set on any combination of subspaces of the full prior.

Public Functions Documentation

function CompositePrior

CompositePrior(
    const Options & model_options,
    const Options & prior_options
)

Special “build-a-prior” classi.

function CompositePrior

CompositePrior(
    const std::vector< std::string > & params,
    const Options & options
)

function log_prior_density

inline virtual double log_prior_density(
    const std::unordered_map< std::string, double > & 
) const override

Log of prior density.

Reimplements: Gambit::Priors::BasePrior::log_prior_density

function getShownParameters

inline virtual std::vector< std::string > getShownParameters() const override

Reimplements: Gambit::Priors::BasePrior::getShownParameters

function transform

inline virtual void transform(
    hyper_cube_ref< double > unit,
    std::unordered_map< std::string, double > & physical
) const override

Transform from unit hypercube to physical parameter.

Reimplements: Gambit::Priors::BasePrior::transform

function inverse_transform

inline virtual void inverse_transform(
    const std::unordered_map< std::string, double > & physical,
    hyper_cube_ref< double > unit
) const override

Transform from physical parameter to unit hypercube.

Reimplements: Gambit::Priors::BasePrior::inverse_transform

function ~CompositePrior

inline ~CompositePrior()

Updated on 2024-07-18 at 13:53:32 +0000