doublelogflatjoin.cpp
Go to the documentation of this file.
33 DoubleLogFlatJoin::DoubleLogFlatJoin(const std::vector<std::string>& param, const Options& options) 106 // Lower log portion is collapsed; flat portion may now be fully above zero, and is allowed to collapse. 114 // Upper log portion is collapsed; flat portion may now be fully below zero, and is allowed to collapse. 121 // Both log portions collapsed; flat portion may now be anywhere, but is not allowed to collapse. 128 << "Values received were: ["<<lower<<", "<<flat_start<<", "<<flat_end<<", "<<upper<<"]." << endl 129 << "(if either log portion is collapsed then the flat portion is permitted to move from covering zero as appropriate)" << scan_end; 159 scan_err << "Missing option " << name <<" (or 'ranges') for DoubleLogFlatJoin prior. Must specify " << endl 160 << "'lower', 'flat_start', 'flat_end', and 'upper', or else all of these at once in a vector labelled 'ranges'." << scan_end; 167 void DoubleLogFlatJoin::transform(const std::vector <double> &unitpars, std::unordered_map <std::string, double> &output) const 172 scan_err << "Invalid input to DoubleLogFlatJoin prior (in 'transform'): Input parameters must be a vector of size 1! (has size=" << unitpars.size() << ")" << scan_end; 199 scan_err << "Problem transforming r-value for DoubleLogFlatJoin (received "<<r<<")!" << scan_end; 205 std::vector<double> DoubleLogFlatJoin::inverse_transform(const std::unordered_map<std::string, double> &physical) const 265 scan_err << "Problem computing prior density for DoubleLogFlatJoin (received x="<<x<<")!" << scan_end;
std::vector< double > inverse_transform(const std::unordered_map< std::string, double > &) const override Transform from parameter back to unit hypercube. Definition: doublelogflatjoin.cpp:205 double get_option(const str &, const Options &) Try to get options for double log-flat joined prior. Definition: doublelogflatjoin.cpp:151 const std::string & myparameter Name of the parameter that this prior is supposed to transform. Definition: doublelogflatjoin.hpp:38 bool hasKey(const args &... keys) const Getters for key/value pairs (which is all the options node should contain) Definition: yaml_options.hpp:67 bool no_lower_log Flags to register if special cases are active. Definition: doublelogflatjoin.hpp:56 #define scan_err Defined to macros to output errors in the form: scan_err << "error" << scan_end; scan_warn << "warnin... Definition: scanner_utils.hpp:54 DoubleLogFlatJoin(const std::vector< std::string > ¶m, const Options &) Constructor defined in doublelogflatjoin.cpp. Definition: doublelogflatjoin.cpp:33 bool no_upper_log Definition: doublelogflatjoin.hpp:57 double operator()(const std::vector< double > &vec) const Probability density function. Definition: doublelogflatjoin.cpp:235 Prior function made up of two log priors (positive and negative branch) joined across zero by a flat ... void transform(const std::vector< double > &unitpars, std::unordered_map< std::string, double > &output) const Transformation from unit interval to the double log + flat join (inverse prior transform) ... Definition: doublelogflatjoin.cpp:167 |