25 #include <boost/program_options.hpp> 
   27 #include <queso/GPMSAOptions.h> 
   30 #define UQ_GPMSA_HELP "" 
   31 #define UQ_GPMSA_EMULATOR_PRECISION_SHAPE_ODV 5.0 
   32 #define UQ_GPMSA_EMULATOR_PRECISION_SCALE_ODV 0.2 
   33 #define UQ_GPMSA_EMULATOR_CORRELATION_STRENGTH_ALPHA_ODV 1.0 
   34 #define UQ_GPMSA_EMULATOR_CORRELATION_STRENGTH_BETA_ODV 0.1 
   35 #define UQ_GPMSA_DISCREPANCY_PRECISION_SHAPE_ODV 1.0 
   36 #define UQ_GPMSA_DISCREPANCY_PRECISION_SCALE_ODV 1e4 
   37 #define UQ_GPMSA_DISCREPANCY_CORRELATION_STRENGTH_ALPHA_ODV 1.0 
   38 #define UQ_GPMSA_DISCREPANCY_CORRELATION_STRENGTH_BETA_ODV 0.1 
   39 #define UQ_GPMSA_EMULATOR_DATA_PRECISION_SHAPE_ODV 3.0 
   40 #define UQ_GPMSA_EMULATOR_DATA_PRECISION_SCALE_ODV 333.333 
   48   m_prefix((std::string)(prefix) + 
"gpmsa_"),
 
   62   m_option_help(m_prefix + 
"help"),
 
   63   m_option_emulatorPrecisionShape(m_prefix + 
"emulator_precision_shape"),
 
   64   m_option_emulatorPrecisionScale(m_prefix + 
"emulator_precision_scale"),
 
   65   m_option_emulatorCorrelationStrengthAlpha(m_prefix + 
"emulator_correlation_strength_alpha"),
 
   66   m_option_emulatorCorrelationStrengthBeta(m_prefix + 
"emulator_correlation_strength_beta"),
 
   67   m_option_discrepancyPrecisionShape(m_prefix + 
"discrepancy_precision_shape"),
 
   68   m_option_discrepancyPrecisionScale(m_prefix + 
"discrepancy_precision_scale"),
 
   69   m_option_discrepancyCorrelationStrengthAlpha(m_prefix + 
"discrepancy_correlation_strength_alpha"),
 
   70   m_option_discrepancyCorrelationStrengthBeta(m_prefix + 
"discrepancy_correlation_strength_beta"),
 
   71   m_option_emulatorDataPrecisionShape(m_prefix + 
"emulator_data_precision_shape"),
 
   72   m_option_emulatorDataPrecisionScale(m_prefix + 
"emulator_data_precision_scale")
 
  140   os << (*(obj.
m_parser)) << std::endl;
 
#define UQ_GPMSA_EMULATOR_PRECISION_SHAPE_ODV
 
std::string m_help
If this string is non-empty, print the options object to the output file. 
 
std::string m_option_help
 
This class defines the options that specify the behaviour of the Gaussian process emulator...
 
#define queso_error_msg(msg)
 
std::string m_option_emulatorCorrelationStrengthAlpha
 
#define UQ_GPMSA_DISCREPANCY_CORRELATION_STRENGTH_ALPHA_ODV
 
double m_emulatorPrecisionShape
The shape parameter for the Gamma hyperprior for the emulator precision. 
 
double m_discrepancyCorrelationStrengthAlpha
The alpha paramter for the Beta hyperprior for the discrepancy correlation strength. 
 
#define UQ_GPMSA_DISCREPANCY_PRECISION_SHAPE_ODV
 
#define UQ_GPMSA_DISCREPANCY_PRECISION_SCALE_ODV
 
#define UQ_GPMSA_EMULATOR_CORRELATION_STRENGTH_BETA_ODV
 
std::string m_option_emulatorDataPrecisionShape
 
std::string m_option_discrepancyPrecisionShape
 
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
 
std::string m_option_emulatorPrecisionScale
 
std::string optionsInputFileName() const 
Access to the attribute m_optionsInputFileName, which stores the name of the input file passed by the...
 
void scanInputFile()
This is the method that parses the input file. 
 
void print(std::ostream &os) const 
Prints this to os. 
 
double m_emulatorPrecisionScale
The scale parameter for the Gamma hyperprior for the emulator precision. 
 
double m_discrepancyPrecisionShape
The shape parameter for the Gamma hyperprior for the discrepancy precision. 
 
std::ofstream * subDisplayFile() const 
Access function for m_subDisplayFile (displays file on stream). 
 
const BaseEnvironment & m_env
 
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
 
double m_emulatorDataPrecisionShape
The shape parameter for the Gamma hyperprior for the emulator data precision. 
 
GPMSAOptions(const BaseEnvironment &env, const char *prefix)
Given prefix, read the input file for parameters named prefix_*. 
 
BoostInputOptionsParser * m_parser
 
std::string m_option_emulatorCorrelationStrengthBeta
 
void registerOption(std::string name, T defaultValue, std::string description)
Call this to register an option with the parser. 
 
virtual ~GPMSAOptions()
Destructor. 
 
std::string m_option_discrepancyPrecisionScale
 
double m_emulatorCorrelationStrengthBeta
The beta paramter for the Beta hyperprior for the emulator correlation strength. 
 
std::string m_option_emulatorDataPrecisionScale
 
#define UQ_GPMSA_DISCREPANCY_CORRELATION_STRENGTH_BETA_ODV
 
double m_discrepancyCorrelationStrengthBeta
The beta paramter for the Beta hyperprior for the discrepancy correlation strength. 
 
double m_emulatorDataPrecisionScale
The scale parameter for the Gamma hyperprior for the emulator data precision. 
 
std::string m_option_discrepancyCorrelationStrengthAlpha
 
#define UQ_GPMSA_EMULATOR_DATA_PRECISION_SCALE_ODV
 
std::string m_option_emulatorPrecisionShape
 
#define UQ_GPMSA_EMULATOR_PRECISION_SCALE_ODV
 
double m_emulatorCorrelationStrengthAlpha
The alpha paramter for the Beta hyperprior for the emulator correlation strength. ...
 
#define UQ_GPMSA_EMULATOR_CORRELATION_STRENGTH_ALPHA_ODV
 
#define UQ_GPMSA_EMULATOR_DATA_PRECISION_SHAPE_ODV
 
void getOption(std::string &name, T &value)
Get option name from the parser and set value to the parsed value. 
 
std::string m_option_discrepancyCorrelationStrengthBeta
 
double m_discrepancyPrecisionScale
The scale parameter for the Gamma hyperprior for the discrepancy precision.