class Gambit::Priors::DoubleLogFlatJoin

[No description available] More…

#include <doublelogflatjoin.hpp>

Inherits from Gambit::Priors::BasePrior

Public Functions

Name
DoubleLogFlatJoin(const std::vector< std::string > & param, const Options & options)
Constructor defined in doublelogflatjoin.cpp.
virtual voidtransform(hyper_cube_ref< double > unitpars, std::unordered_map< std::string, double > & output) const override
Transformation from unit interval to the double log + flat join (inverse prior transform)
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.
virtual doublelog_prior_density(const std::unordered_map< std::string, double > & physical) const override
Probability density function.

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)
virtual std::vector< std::string >getShownParameters() const
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::DoubleLogFlatJoin;

1D double log prior with flat bridge over zero. (for creating a prior similar to log that works across positive and negative values continuously). Takes the arguments: [minval : flat_start : flat_end : maxval]

Public Functions Documentation

function DoubleLogFlatJoin

DoubleLogFlatJoin(
    const std::vector< std::string > & param,
    const Options & options
)

Constructor defined in doublelogflatjoin.cpp.

Constructor.

function transform

virtual void transform(
    hyper_cube_ref< double > unitpars,
    std::unordered_map< std::string, double > & output
) const override

Transformation from unit interval to the double log + flat join (inverse prior transform)

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

Transformation from unit interval to the double log + flat join.

function inverse_transform

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 log_prior_density

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

Probability density function.

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


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