25 #include <boost/program_options.hpp>
27 #include <queso/GpmsaComputerModelOptions.h>
28 #include <queso/Miscellaneous.h>
56 m_option_help (m_prefix +
"help" ),
57 m_option_checkAgainstPreviousSample (m_prefix +
"checkAgainstPreviousSample" ),
58 m_option_dataOutputFileName (m_prefix +
"dataOutputFileName" ),
59 m_option_dataOutputAllowAll (m_prefix +
"dataOutputAllowAll" ),
60 m_option_dataOutputAllowedSet (m_prefix +
"dataOutputAllowedSet" ),
61 m_option_priorSeqNumSamples (m_prefix +
"priorSeqNumSamples" ),
62 m_option_priorSeqDataOutputFileName (m_prefix +
"priorSeqDataOutputFileName" ),
63 m_option_priorSeqDataOutputFileType (m_prefix +
"priorSeqDataOutputFileType" ),
64 m_option_priorSeqDataOutputAllowAll (m_prefix +
"priorSeqDataOutputAllowAll" ),
65 m_option_priorSeqDataOutputAllowedSet (m_prefix +
"priorSeqDataOutputAllowedSet" ),
66 m_option_nuggetValueForBtWyB (m_prefix +
"nuggetValueForBtWyB" ),
67 m_option_nuggetValueForBtWyBInv (m_prefix +
"nuggetValueForBtWyBInv" ),
68 m_option_formCMatrix (m_prefix +
"formCMatrix" ),
69 m_option_useTildeLogicForRankDefficientC(m_prefix +
"useTildeLogicForRankDefficientC"),
70 m_option_predLag (m_prefix +
"predLag" ),
71 m_option_predVUsBySamplingRVs (m_prefix +
"predVUsBySamplingRVs" ),
72 m_option_predVUsBySummingRVs (m_prefix +
"predVUsBySummingRVs" ),
73 m_option_predVUsAtKeyPoints (m_prefix +
"predVUsAtKeyPoints" ),
74 m_option_predWsBySamplingRVs (m_prefix +
"predWsBySamplingRVs" ),
75 m_option_predWsBySummingRVs (m_prefix +
"predWsBySummingRVs" ),
76 m_option_predWsAtKeyPoints (m_prefix +
"predWsAtKeyPoints" )
83 m_prefix ((std::string)(prefix) +
"gcm_"),
105 m_option_help (m_prefix +
"help" ),
106 m_option_checkAgainstPreviousSample (m_prefix +
"checkAgainstPreviousSample" ),
107 m_option_dataOutputFileName (m_prefix +
"dataOutputFileName" ),
108 m_option_dataOutputAllowAll (m_prefix +
"dataOutputAllowAll" ),
109 m_option_dataOutputAllowedSet (m_prefix +
"dataOutputAllowedSet" ),
110 m_option_priorSeqNumSamples (m_prefix +
"priorSeqNumSamples" ),
111 m_option_priorSeqDataOutputFileName (m_prefix +
"priorSeqDataOutputFileName" ),
112 m_option_priorSeqDataOutputFileType (m_prefix +
"priorSeqDataOutputFileType" ),
113 m_option_priorSeqDataOutputAllowAll (m_prefix +
"priorSeqDataOutputAllowAll" ),
114 m_option_priorSeqDataOutputAllowedSet (m_prefix +
"priorSeqDataOutputAllowedSet" ),
115 m_option_nuggetValueForBtWyB (m_prefix +
"nuggetValueForBtWyB" ),
116 m_option_nuggetValueForBtWyBInv (m_prefix +
"nuggetValueForBtWyBInv" ),
117 m_option_formCMatrix (m_prefix +
"formCMatrix" ),
118 m_option_useTildeLogicForRankDefficientC(m_prefix +
"useTildeLogicForRankDefficientC"),
119 m_option_predLag (m_prefix +
"predLag" ),
120 m_option_predVUsBySamplingRVs (m_prefix +
"predVUsBySamplingRVs" ),
121 m_option_predVUsBySummingRVs (m_prefix +
"predVUsBySummingRVs" ),
122 m_option_predVUsAtKeyPoints (m_prefix +
"predVUsAtKeyPoints" ),
123 m_option_predWsBySamplingRVs (m_prefix +
"predWsBySamplingRVs" ),
124 m_option_predWsBySummingRVs (m_prefix +
"predWsBySummingRVs" ),
125 m_option_predWsAtKeyPoints (m_prefix +
"predWsAtKeyPoints" )
367 m_prefix ((std::string)(prefix) +
"gcm_"),
369 m_optionsDesc (new boost::program_options::options_description(
"Mixed Inverse Problem options")),
370 m_option_help (m_prefix +
"help" ),
371 m_option_checkAgainstPreviousSample (m_prefix +
"checkAgainstPreviousSample" ),
372 m_option_dataOutputFileName (m_prefix +
"dataOutputFileName" ),
373 m_option_dataOutputAllowAll (m_prefix +
"dataOutputAllowAll" ),
374 m_option_dataOutputAllowedSet (m_prefix +
"dataOutputAllowedSet" ),
375 m_option_priorSeqNumSamples (m_prefix +
"priorSeqNumSamples" ),
376 m_option_priorSeqDataOutputFileName (m_prefix +
"priorSeqDataOutputFileName" ),
377 m_option_priorSeqDataOutputFileType (m_prefix +
"priorSeqDataOutputFileType" ),
378 m_option_priorSeqDataOutputAllowAll (m_prefix +
"priorSeqDataOutputAllowAll" ),
379 m_option_priorSeqDataOutputAllowedSet (m_prefix +
"priorSeqDataOutputAllowedSet" ),
380 m_option_nuggetValueForBtWyB (m_prefix +
"nuggetValueForBtWyB" ),
381 m_option_nuggetValueForBtWyBInv (m_prefix +
"nuggetValueForBtWyBInv" ),
382 m_option_formCMatrix (m_prefix +
"formCMatrix" ),
383 m_option_useTildeLogicForRankDefficientC(m_prefix +
"useTildeLogicForRankDefficientC"),
384 m_option_predLag (m_prefix +
"predLag" ),
385 m_option_predVUsBySamplingRVs (m_prefix +
"predVUsBySamplingRVs" ),
386 m_option_predVUsBySummingRVs (m_prefix +
"predVUsBySummingRVs" ),
387 m_option_predVUsAtKeyPoints (m_prefix +
"predVUsAtKeyPoints" ),
388 m_option_predWsBySamplingRVs (m_prefix +
"predWsBySamplingRVs" ),
389 m_option_predWsBySummingRVs (m_prefix +
"predWsBySummingRVs" ),
390 m_option_predWsAtKeyPoints (m_prefix +
"predWsAtKeyPoints" )
401 m_ov (alternativeOptionsValues),
402 m_prefix ((std::string)(prefix) +
"gcm_"),
404 m_optionsDesc (NULL),
405 m_option_help (m_prefix +
"help" ),
406 m_option_checkAgainstPreviousSample (m_prefix +
"checkAgainstPreviousSample" ),
407 m_option_dataOutputFileName (m_prefix +
"dataOutputFileName" ),
408 m_option_dataOutputAllowAll (m_prefix +
"dataOutputAllowAll" ),
409 m_option_dataOutputAllowedSet (m_prefix +
"dataOutputAllowedSet" ),
410 m_option_priorSeqNumSamples (m_prefix +
"priorSeqNumSamples" ),
411 m_option_priorSeqDataOutputFileName (m_prefix +
"priorSeqDataOutputFileName" ),
412 m_option_priorSeqDataOutputFileType (m_prefix +
"priorSeqDataOutputFileType" ),
413 m_option_priorSeqDataOutputAllowAll (m_prefix +
"priorSeqDataOutputAllowAll" ),
414 m_option_priorSeqDataOutputAllowedSet (m_prefix +
"priorSeqDataOutputAllowedSet" ),
415 m_option_nuggetValueForBtWyB (m_prefix +
"nuggetValueForBtWyB" ),
416 m_option_nuggetValueForBtWyBInv (m_prefix +
"nuggetValueForBtWyBInv" ),
417 m_option_formCMatrix (m_prefix +
"formCMatrix" ),
418 m_option_useTildeLogicForRankDefficientC(m_prefix +
"useTildeLogicForRankDefficientC"),
419 m_option_predLag (m_prefix +
"predLag" ),
420 m_option_predVUsBySamplingRVs (m_prefix +
"predVUsBySamplingRVs" ),
421 m_option_predVUsBySummingRVs (m_prefix +
"predVUsBySummingRVs" ),
422 m_option_predVUsAtKeyPoints (m_prefix +
"predVUsAtKeyPoints" ),
423 m_option_predWsBySamplingRVs (m_prefix +
"predWsBySamplingRVs" ),
424 m_option_predWsBySummingRVs (m_prefix +
"predWsBySummingRVs" ),
425 m_option_predWsAtKeyPoints (m_prefix +
"predWsAtKeyPoints" )
432 <<
": after setting values of options with prefix '" <<
m_prefix
433 <<
"', state of object is:"
462 <<
": after reading values of options with prefix '" <<
m_prefix
463 <<
"', state of object is:"
476 optionsDesc.add_options()
477 (
m_option_help.c_str(),
"produce help message for mixed inverse problem")
532 std::vector<double> tmpAllow(0,0.);
536 if (tmpAllow.size() > 0) {
537 for (
unsigned int i = 0; i < tmpAllow.size(); ++i) {
567 std::vector<double> tmpAllow(0,0.);
571 if (tmpAllow.size() > 0) {
572 for (
unsigned int i = 0; i < tmpAllow.size(); ++i) {
std::string m_option_priorSeqDataOutputFileType
bool m_dataOutputAllowAll
std::string m_option_formCMatrix
std::string m_dataOutputFileName
bool m_predVUsBySamplingRVs
GpmsaComputerModelOptions(const BaseEnvironment &env, const char *prefix)
unsigned int m_priorSeqNumSamples
std::string m_option_priorSeqDataOutputAllowedSet
std::string m_option_priorSeqDataOutputFileName
std::string m_option_dataOutputAllowedSet
#define UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_ALLOW_ALL_ODV
#define UQ_GCM_NUGGET_VALUE_FOR_BT_WY_B_INV_ODV
std::string m_option_dataOutputFileName
#define UQ_GCM_PRED_VUS_BY_SAMPLING_RVS_ODV
std::string m_option_checkAgainstPreviousSample
~GpmsaComputerModelOptions()
#define UQ_GCM_PRED_VUS_BY_SUMMING_RVS_ODV
std::string m_option_priorSeqDataOutputAllowAll
void scanInputFileForMyOptions(const boost::program_options::options_description &optionsDesc) const
This method scans the input file provided by the user to QUESO.
bool m_predVUsAtKeyPoints
#define UQ_GCM_USE_TILDE_LOGIC_FOR_RANK_DEFFICIENT_C_ODV
std::string m_option_priorSeqDataOutputAllowAll
std::string m_option_checkAgainstPreviousSample
#define UQ_GCM_DATA_OUTPUT_ALLOWED_SET_ODV
boost::program_options::options_description * m_optionsDesc
#define UQ_GCM_PRED_LAG_ODV
#define UQ_GCM_FORM_C_MATRIX_ODV
std::string m_option_dataOutputAllowedSet
std::string m_option_predVUsAtKeyPoints
std::string m_option_predWsBySamplingRVs
#define queso_require_not_equal_to_msg(expr1, expr2, msg)
bool m_predWsBySamplingRVs
std::string m_option_help
#define UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_FILE_NAME_ODV
void copy(const GcmOptionsValues &src)
std::string m_option_predLag
#define UQ_GCM_PRED_WS_BY_SAMPLING_RVS_ODV
std::string m_option_dataOutputFileName
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
std::string m_option_priorSeqNumSamples
#define UQ_GCM_PRIOR_SEQ_NUM_SAMPLES_ODV
std::set< unsigned int > m_dataOutputAllowedSet
boost::program_options::variables_map & allOptionsMap() const
std::string m_option_predWsBySummingRVs
std::string m_option_help
#define UQ_GCM_PRED_VUS_AT_KEY_POINTS_ODV
double m_nuggetValueForBtWyB
#define UQ_GCM_DATA_OUTPUT_FILE_NAME_ODV
#define UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_FILE_TYPE_ODV
#define queso_require_equal_to_msg(expr1, expr2, msg)
#define UQ_GCM_NUGGET_VALUE_FOR_BT_WY_B_ODV
#define UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_ALLOWED_SET_ODV
std::string m_option_nuggetValueForBtWyB
std::string m_option_predLag
bool m_checkAgainstPreviousSample
std::string m_option_formCMatrix
GcmOptionsValues & operator=(const GcmOptionsValues &rhs)
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.
std::string m_option_predVUsBySamplingRVs
std::string m_option_predWsAtKeyPoints
std::string m_option_dataOutputAllowAll
#define queso_require_msg(asserted, msg)
void getMyOptionValues(boost::program_options::options_description &optionsDesc)
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
std::string m_option_nuggetValueForBtWyBInv
bool m_useTildeLogicForRankDefficientC
bool m_predVUsBySummingRVs
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
#define UQ_GCM_DATA_OUTPUT_ALLOW_ALL_ODV
#define UQ_GCM_CHECK_AGAINST_PREVIOUS_SAMPLE_ODV
std::string m_option_priorSeqDataOutputFileName
unsigned int subId() const
Access function to the number of each sub-environment Id: m_subId.
void registerOption(std::string name, T defaultValue, std::string description)
Call this to register an option with the parser.
std::string m_option_useTildeLogicForRankDefficientC
std::set< unsigned int > m_priorSeqDataOutputAllowedSet
std::string m_option_predWsBySummingRVs
#define UQ_GCM_PRED_WS_BY_SUMMING_RVS_ODV
std::string m_option_predVUsAtKeyPoints
void MiscReadDoublesFromString(const std::string &inputString, std::vector< double > &outputDoubles)
std::string m_option_predVUsBySummingRVs
#define queso_deprecated()
void defineMyOptions(boost::program_options::options_description &optionsDesc) const
std::string m_option_priorSeqNumSamples
std::string m_option_nuggetValueForBtWyB
std::string m_option_dataOutputAllowAll
virtual ~GcmOptionsValues()
std::string m_option_priorSeqDataOutputFileType
void print(std::ostream &os) const
std::string m_option_predVUsBySamplingRVs
std::string m_priorSeqDataOutputFileName
std::string m_option_predVUsBySummingRVs
const BaseEnvironment & m_env
#define UQ_GCM_PRED_WS_AT_KEY_POINTS_ODV
std::string m_option_predWsAtKeyPoints
bool m_priorSeqDataOutputAllowAll
std::string m_option_nuggetValueForBtWyBInv
BoostInputOptionsParser * m_parser
std::string m_option_predWsBySamplingRVs
std::string m_option_priorSeqDataOutputAllowedSet
double m_nuggetValueForBtWyBInv
std::string m_option_useTildeLogicForRankDefficientC
void getOption(std::string &name, T &value)
Get option name from the parser and set value to the parsed value.
std::string m_priorSeqDataOutputFileType
bool m_predWsBySummingRVs