queso-0.53.0
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
QUESO::GpmsaComputerModelOptions Class Reference

#include <GpmsaComputerModelOptions.h>

Collaboration diagram for QUESO::GpmsaComputerModelOptions:
Collaboration graph
[legend]

Public Member Functions

 GpmsaComputerModelOptions (const BaseEnvironment &env, const char *prefix)
 
 GpmsaComputerModelOptions (const BaseEnvironment &env, const char *prefix, const GcmOptionsValues &alternativeOptionsValues)
 
 ~GpmsaComputerModelOptions ()
 
void scanOptionsValues ()
 
void print (std::ostream &os) const
 

Public Attributes

GcmOptionsValues m_ov
 
std::string m_prefix
 

Private Member Functions

void defineMyOptions (boost::program_options::options_description &optionsDesc) const
 
void getMyOptionValues (boost::program_options::options_description &optionsDesc)
 

Private Attributes

const BaseEnvironmentm_env
 
boost::program_options::options_description * m_optionsDesc
 
std::string m_option_help
 
std::string m_option_checkAgainstPreviousSample
 
std::string m_option_dataOutputFileName
 
std::string m_option_dataOutputAllowAll
 
std::string m_option_dataOutputAllowedSet
 
std::string m_option_priorSeqNumSamples
 
std::string m_option_priorSeqDataOutputFileName
 
std::string m_option_priorSeqDataOutputFileType
 
std::string m_option_priorSeqDataOutputAllowAll
 
std::string m_option_priorSeqDataOutputAllowedSet
 
std::string m_option_nuggetValueForBtWyB
 
std::string m_option_nuggetValueForBtWyBInv
 
std::string m_option_formCMatrix
 
std::string m_option_useTildeLogicForRankDefficientC
 
std::string m_option_predLag
 
std::string m_option_predVUsBySamplingRVs
 
std::string m_option_predVUsBySummingRVs
 
std::string m_option_predVUsAtKeyPoints
 
std::string m_option_predWsBySamplingRVs
 
std::string m_option_predWsBySummingRVs
 
std::string m_option_predWsAtKeyPoints
 

Detailed Description

Definition at line 132 of file GpmsaComputerModelOptions.h.

Constructor & Destructor Documentation

QUESO::GpmsaComputerModelOptions::GpmsaComputerModelOptions ( const BaseEnvironment env,
const char *  prefix 
)

Definition at line 362 of file GpmsaComputerModelOptions.C.

References m_env, QUESO::BaseEnvironment::optionsInputFileName(), queso_deprecated, and queso_require_not_equal_to_msg.

365  :
366  m_ov (),
367  m_prefix ((std::string)(prefix) + "gcm_"),
368  m_env (env),
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" )
391 {
393  queso_require_not_equal_to_msg(m_env.optionsInputFileName(), "", "this constructor is incompatible with the abscense of an options input file");
394 }
boost::program_options::options_description * m_optionsDesc
#define queso_require_not_equal_to_msg(expr1, expr2, msg)
Definition: asserts.h:86
std::string optionsInputFileName() const
Access to the attribute m_optionsInputFileName, which stores the name of the input file passed by the...
Definition: Environment.C:307
#define queso_deprecated()
Definition: Defines.h:120
QUESO::GpmsaComputerModelOptions::GpmsaComputerModelOptions ( const BaseEnvironment env,
const char *  prefix,
const GcmOptionsValues alternativeOptionsValues 
)

Definition at line 396 of file GpmsaComputerModelOptions.C.

References m_env, m_prefix, QUESO::BaseEnvironment::optionsInputFileName(), queso_deprecated, queso_require_equal_to_msg, and QUESO::BaseEnvironment::subDisplayFile().

400  :
401  m_ov (alternativeOptionsValues),
402  m_prefix ((std::string)(prefix) + "gcm_"),
403  m_env (env),
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" )
426 {
428  queso_require_equal_to_msg(m_env.optionsInputFileName(), "", "this constructor is incompatible with the existence of an options input file");
429 
430  if (m_env.subDisplayFile() != NULL) {
431  *m_env.subDisplayFile() << "In GpmsaComputerModelOptions::constructor(2)"
432  << ": after setting values of options with prefix '" << m_prefix
433  << "', state of object is:"
434  << "\n" << *this
435  << std::endl;
436  }
437 }
boost::program_options::options_description * m_optionsDesc
#define queso_require_equal_to_msg(expr1, expr2, msg)
Definition: asserts.h:85
std::string optionsInputFileName() const
Access to the attribute m_optionsInputFileName, which stores the name of the input file passed by the...
Definition: Environment.C:307
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
Definition: Environment.C:274
#define queso_deprecated()
Definition: Defines.h:120
QUESO::GpmsaComputerModelOptions::~GpmsaComputerModelOptions ( )

Definition at line 439 of file GpmsaComputerModelOptions.C.

References m_optionsDesc, and queso_deprecated.

440 {
442 
443  if (m_optionsDesc) delete m_optionsDesc;
444 }
boost::program_options::options_description * m_optionsDesc
#define queso_deprecated()
Definition: Defines.h:120

Member Function Documentation

void QUESO::GpmsaComputerModelOptions::defineMyOptions ( boost::program_options::options_description &  optionsDesc) const
private

Definition at line 472 of file GpmsaComputerModelOptions.C.

References m_option_checkAgainstPreviousSample, m_option_dataOutputAllowAll, m_option_dataOutputAllowedSet, m_option_dataOutputFileName, m_option_formCMatrix, m_option_help, m_option_nuggetValueForBtWyB, m_option_nuggetValueForBtWyBInv, m_option_predLag, m_option_predVUsAtKeyPoints, m_option_predVUsBySamplingRVs, m_option_predVUsBySummingRVs, m_option_predWsAtKeyPoints, m_option_predWsBySamplingRVs, m_option_predWsBySummingRVs, m_option_priorSeqDataOutputAllowAll, m_option_priorSeqDataOutputAllowedSet, m_option_priorSeqDataOutputFileName, m_option_priorSeqDataOutputFileType, m_option_priorSeqNumSamples, m_option_useTildeLogicForRankDefficientC, queso_deprecated, UQ_GCM_CHECK_AGAINST_PREVIOUS_SAMPLE_ODV, UQ_GCM_DATA_OUTPUT_ALLOW_ALL_ODV, UQ_GCM_DATA_OUTPUT_ALLOWED_SET_ODV, UQ_GCM_DATA_OUTPUT_FILE_NAME_ODV, UQ_GCM_FORM_C_MATRIX_ODV, UQ_GCM_NUGGET_VALUE_FOR_BT_WY_B_INV_ODV, UQ_GCM_NUGGET_VALUE_FOR_BT_WY_B_ODV, UQ_GCM_PRED_LAG_ODV, UQ_GCM_PRED_VUS_AT_KEY_POINTS_ODV, UQ_GCM_PRED_VUS_BY_SAMPLING_RVS_ODV, UQ_GCM_PRED_VUS_BY_SUMMING_RVS_ODV, UQ_GCM_PRED_WS_AT_KEY_POINTS_ODV, UQ_GCM_PRED_WS_BY_SAMPLING_RVS_ODV, UQ_GCM_PRED_WS_BY_SUMMING_RVS_ODV, UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_ALLOW_ALL_ODV, UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_ALLOWED_SET_ODV, UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_FILE_NAME_ODV, UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_FILE_TYPE_ODV, UQ_GCM_PRIOR_SEQ_NUM_SAMPLES_ODV, and UQ_GCM_USE_TILDE_LOGIC_FOR_RANK_DEFFICIENT_C_ODV.

Referenced by scanOptionsValues().

473 {
475 
476  optionsDesc.add_options()
477  (m_option_help.c_str(), "produce help message for mixed inverse problem")
478  (m_option_checkAgainstPreviousSample.c_str(), boost::program_options::value<bool >()->default_value(UQ_GCM_CHECK_AGAINST_PREVIOUS_SAMPLE_ODV ), "check against previous sample" )
479  (m_option_dataOutputFileName.c_str(), boost::program_options::value<std::string >()->default_value(UQ_GCM_DATA_OUTPUT_FILE_NAME_ODV ), "name of data output file" )
480  (m_option_dataOutputAllowAll.c_str(), boost::program_options::value<bool >()->default_value(UQ_GCM_DATA_OUTPUT_ALLOW_ALL_ODV ), "allow all or not" )
481  (m_option_dataOutputAllowedSet.c_str(), boost::program_options::value<std::string >()->default_value(UQ_GCM_DATA_OUTPUT_ALLOWED_SET_ODV ), "subEnvs that will write to data output file" )
482  (m_option_priorSeqNumSamples.c_str(), boost::program_options::value<unsigned int>()->default_value(UQ_GCM_PRIOR_SEQ_NUM_SAMPLES_ODV ), "prior sequence size" )
483  (m_option_priorSeqDataOutputFileName.c_str(), boost::program_options::value<std::string >()->default_value(UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_FILE_NAME_ODV ), "prior sequence data output filename" )
484  (m_option_priorSeqDataOutputFileType.c_str(), boost::program_options::value<std::string >()->default_value(UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_FILE_TYPE_ODV ), "prior sequence data output filetype" )
485  (m_option_priorSeqDataOutputAllowAll.c_str(), boost::program_options::value<bool >()->default_value(UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_ALLOW_ALL_ODV ), "allow all or not" )
486  (m_option_priorSeqDataOutputAllowedSet.c_str(), boost::program_options::value<std::string >()->default_value(UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_ALLOWED_SET_ODV ), "subEnvs that will write to data output file" )
487  (m_option_nuggetValueForBtWyB.c_str(), boost::program_options::value<double >()->default_value(UQ_GCM_NUGGET_VALUE_FOR_BT_WY_B_ODV ), "nugget value for Bt_Wy_W matrix" )
488  (m_option_nuggetValueForBtWyBInv.c_str(), boost::program_options::value<double >()->default_value(UQ_GCM_NUGGET_VALUE_FOR_BT_WY_B_INV_ODV ), "nugget value for Bt_Wy_W inverse matrix" )
489  (m_option_formCMatrix.c_str(), boost::program_options::value<double >()->default_value(UQ_GCM_FORM_C_MATRIX_ODV ), "form C matrix" )
490  (m_option_useTildeLogicForRankDefficientC.c_str(), boost::program_options::value<bool >()->default_value(UQ_GCM_USE_TILDE_LOGIC_FOR_RANK_DEFFICIENT_C_ODV), "use tilde logic for rank defficient C" )
491  (m_option_predLag.c_str(), boost::program_options::value<unsigned int>()->default_value(UQ_GCM_PRED_LAG_ODV ), "predLag" )
492  (m_option_predVUsBySamplingRVs.c_str(), boost::program_options::value<bool >()->default_value(UQ_GCM_PRED_VUS_BY_SAMPLING_RVS_ODV ), "predVUsBySamplingRVs" )
493  (m_option_predVUsBySummingRVs.c_str(), boost::program_options::value<bool >()->default_value(UQ_GCM_PRED_VUS_BY_SUMMING_RVS_ODV ), "predVUsBySummingRVs" )
494  (m_option_predVUsAtKeyPoints.c_str(), boost::program_options::value<bool >()->default_value(UQ_GCM_PRED_VUS_AT_KEY_POINTS_ODV ), "predVUsAtKeyPoints" )
495  (m_option_predWsBySamplingRVs.c_str(), boost::program_options::value<bool >()->default_value(UQ_GCM_PRED_WS_BY_SAMPLING_RVS_ODV ), "predWsBySamplingRVs" )
496  (m_option_predWsBySummingRVs.c_str(), boost::program_options::value<bool >()->default_value(UQ_GCM_PRED_WS_BY_SUMMING_RVS_ODV ), "predWsBySummingRVs" )
497  (m_option_predWsAtKeyPoints.c_str(), boost::program_options::value<bool >()->default_value(UQ_GCM_PRED_WS_AT_KEY_POINTS_ODV ), "predWsAtKeyPoints" )
498  ;
499 
500  return;
501 }
#define UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_ALLOW_ALL_ODV
#define UQ_GCM_NUGGET_VALUE_FOR_BT_WY_B_INV_ODV
#define UQ_GCM_PRED_VUS_BY_SAMPLING_RVS_ODV
#define UQ_GCM_PRED_VUS_BY_SUMMING_RVS_ODV
#define UQ_GCM_USE_TILDE_LOGIC_FOR_RANK_DEFFICIENT_C_ODV
#define UQ_GCM_DATA_OUTPUT_ALLOWED_SET_ODV
#define UQ_GCM_PRED_LAG_ODV
#define UQ_GCM_FORM_C_MATRIX_ODV
#define UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_FILE_NAME_ODV
#define UQ_GCM_PRED_WS_BY_SAMPLING_RVS_ODV
#define UQ_GCM_PRIOR_SEQ_NUM_SAMPLES_ODV
#define UQ_GCM_PRED_VUS_AT_KEY_POINTS_ODV
#define UQ_GCM_DATA_OUTPUT_FILE_NAME_ODV
#define UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_FILE_TYPE_ODV
#define UQ_GCM_NUGGET_VALUE_FOR_BT_WY_B_ODV
#define UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_ALLOWED_SET_ODV
#define UQ_GCM_DATA_OUTPUT_ALLOW_ALL_ODV
#define UQ_GCM_CHECK_AGAINST_PREVIOUS_SAMPLE_ODV
#define UQ_GCM_PRED_WS_BY_SUMMING_RVS_ODV
#define queso_deprecated()
Definition: Defines.h:120
#define UQ_GCM_PRED_WS_AT_KEY_POINTS_ODV
void QUESO::GpmsaComputerModelOptions::getMyOptionValues ( boost::program_options::options_description &  optionsDesc)
private

Definition at line 504 of file GpmsaComputerModelOptions.C.

References QUESO::BaseEnvironment::allOptionsMap(), QUESO::GcmOptionsValues::m_checkAgainstPreviousSample, QUESO::GcmOptionsValues::m_dataOutputAllowAll, QUESO::GcmOptionsValues::m_dataOutputAllowedSet, QUESO::GcmOptionsValues::m_dataOutputFileName, m_env, QUESO::GcmOptionsValues::m_formCMatrix, QUESO::GcmOptionsValues::m_nuggetValueForBtWyB, QUESO::GcmOptionsValues::m_nuggetValueForBtWyBInv, m_option_checkAgainstPreviousSample, m_option_dataOutputAllowAll, m_option_dataOutputAllowedSet, m_option_dataOutputFileName, m_option_formCMatrix, m_option_help, m_option_nuggetValueForBtWyB, m_option_nuggetValueForBtWyBInv, m_option_predLag, m_option_predVUsAtKeyPoints, m_option_predVUsBySamplingRVs, m_option_predVUsBySummingRVs, m_option_predWsAtKeyPoints, m_option_predWsBySamplingRVs, m_option_predWsBySummingRVs, m_option_priorSeqDataOutputAllowAll, m_option_priorSeqDataOutputAllowedSet, m_option_priorSeqDataOutputFileName, m_option_priorSeqDataOutputFileType, m_option_priorSeqNumSamples, m_option_useTildeLogicForRankDefficientC, m_ov, QUESO::GcmOptionsValues::m_predLag, QUESO::GcmOptionsValues::m_predVUsAtKeyPoints, QUESO::GcmOptionsValues::m_predVUsBySamplingRVs, QUESO::GcmOptionsValues::m_predVUsBySummingRVs, QUESO::GcmOptionsValues::m_predWsAtKeyPoints, QUESO::GcmOptionsValues::m_predWsBySamplingRVs, QUESO::GcmOptionsValues::m_predWsBySummingRVs, QUESO::GcmOptionsValues::m_priorSeqDataOutputAllowAll, QUESO::GcmOptionsValues::m_priorSeqDataOutputAllowedSet, QUESO::GcmOptionsValues::m_priorSeqDataOutputFileName, QUESO::GcmOptionsValues::m_priorSeqDataOutputFileType, QUESO::GcmOptionsValues::m_priorSeqNumSamples, QUESO::GcmOptionsValues::m_useTildeLogicForRankDefficientC, QUESO::MiscReadDoublesFromString(), queso_deprecated, QUESO::BaseEnvironment::subDisplayFile(), and QUESO::BaseEnvironment::subId().

Referenced by scanOptionsValues().

505 {
507 
508  if (m_env.allOptionsMap().count(m_option_help)) {
509  if (m_env.subDisplayFile()) {
510  *m_env.subDisplayFile() << optionsDesc
511  << std::endl;
512  }
513  }
514 
516  m_ov.m_checkAgainstPreviousSample = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_checkAgainstPreviousSample]).as<bool>();
517  }
518 
520  m_ov.m_dataOutputFileName = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_dataOutputFileName]).as<std::string>();
521  }
522 
524  m_ov.m_dataOutputAllowAll = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_dataOutputAllowAll]).as<bool>();
525  }
526 
529  }
532  std::vector<double> tmpAllow(0,0.);
533  std::string inputString = m_env.allOptionsMap()[m_option_dataOutputAllowedSet].as<std::string>();
534  MiscReadDoublesFromString(inputString,tmpAllow);
535 
536  if (tmpAllow.size() > 0) {
537  for (unsigned int i = 0; i < tmpAllow.size(); ++i) {
538  m_ov.m_dataOutputAllowedSet.insert((unsigned int) tmpAllow[i]);
539  }
540  }
541  }
542 
543  //std::cout << "In GpmsaComputerModelOptions::getMyOptionValues(), m_option_priorSeqNumSamples = " << m_option_priorSeqNumSamples << "___" << std::endl;
545  //std::cout << "In GpmsaComputerModelOptions::getMyOptionValues(), going to read m_option_priorSeqNumSamples..." << std::endl;
546  m_ov.m_priorSeqNumSamples = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_priorSeqNumSamples]).as<unsigned int>();
547  //std::cout << "In GpmsaComputerModelOptions::getMyOptionValues(), just read m_option_priorSeqNumSamples = " << m_ov.m_priorSeqNumSamples << std::endl;
548  }
549 
551  m_ov.m_priorSeqDataOutputFileName = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_priorSeqDataOutputFileName]).as<std::string>();
552  }
553 
555  m_ov.m_priorSeqDataOutputFileType = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_priorSeqDataOutputFileType]).as<std::string>();
556  }
557 
559  m_ov.m_priorSeqDataOutputAllowAll = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_priorSeqDataOutputAllowAll]).as<bool>();
560  }
561 
564  }
567  std::vector<double> tmpAllow(0,0.);
568  std::string inputString = m_env.allOptionsMap()[m_option_priorSeqDataOutputAllowedSet].as<std::string>();
569  MiscReadDoublesFromString(inputString,tmpAllow);
570 
571  if (tmpAllow.size() > 0) {
572  for (unsigned int i = 0; i < tmpAllow.size(); ++i) {
573  m_ov.m_priorSeqDataOutputAllowedSet.insert((unsigned int) tmpAllow[i]);
574  }
575  }
576  }
577 
579  m_ov.m_nuggetValueForBtWyB = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_nuggetValueForBtWyB]).as<double>();
580  }
581 
583  m_ov.m_nuggetValueForBtWyBInv = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_nuggetValueForBtWyBInv]).as<double>();
584  }
585 
587  m_ov.m_formCMatrix = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_formCMatrix]).as<double>();
588  }
589 
591  m_ov.m_useTildeLogicForRankDefficientC = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_useTildeLogicForRankDefficientC]).as<bool>();
592  }
593 
594  if (m_env.allOptionsMap().count(m_option_predLag)) {
595  m_ov.m_predLag = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_predLag]).as<unsigned int>();
596  }
597 
599  m_ov.m_predVUsBySamplingRVs = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_predVUsBySamplingRVs]).as<bool>();
600  }
601 
603  m_ov.m_predVUsBySummingRVs = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_predVUsBySummingRVs]).as<bool>();
604  }
605 
607  m_ov.m_predVUsAtKeyPoints = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_predVUsAtKeyPoints]).as<bool>();
608  }
609 
611  m_ov.m_predWsBySamplingRVs = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_predWsBySamplingRVs]).as<bool>();
612  }
613 
615  m_ov.m_predWsBySummingRVs = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_predWsBySummingRVs]).as<bool>();
616  }
617 
619  m_ov.m_predWsAtKeyPoints = ((const boost::program_options::variable_value&) m_env.allOptionsMap()[m_option_predWsAtKeyPoints]).as<bool>();
620  }
621 
622  return;
623 }
std::set< unsigned int > m_dataOutputAllowedSet
boost::program_options::variables_map & allOptionsMap() const
Definition: Environment.C:336
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
Definition: Environment.C:274
unsigned int subId() const
Access function to the number of each sub-environment Id: m_subId.
Definition: Environment.C:295
std::set< unsigned int > m_priorSeqDataOutputAllowedSet
void MiscReadDoublesFromString(const std::string &inputString, std::vector< double > &outputDoubles)
Definition: Miscellaneous.C:40
#define queso_deprecated()
Definition: Defines.h:120
void QUESO::GpmsaComputerModelOptions::print ( std::ostream &  os) const

Definition at line 626 of file GpmsaComputerModelOptions.C.

References QUESO::GcmOptionsValues::m_checkAgainstPreviousSample, QUESO::GcmOptionsValues::m_dataOutputAllowAll, QUESO::GcmOptionsValues::m_dataOutputAllowedSet, QUESO::GcmOptionsValues::m_dataOutputFileName, QUESO::GcmOptionsValues::m_formCMatrix, QUESO::GcmOptionsValues::m_nuggetValueForBtWyB, QUESO::GcmOptionsValues::m_nuggetValueForBtWyBInv, m_option_checkAgainstPreviousSample, m_option_dataOutputAllowAll, m_option_dataOutputAllowedSet, m_option_dataOutputFileName, m_option_formCMatrix, m_option_nuggetValueForBtWyB, m_option_nuggetValueForBtWyBInv, m_option_predLag, m_option_predVUsAtKeyPoints, m_option_predVUsBySamplingRVs, m_option_predVUsBySummingRVs, m_option_predWsAtKeyPoints, m_option_predWsBySamplingRVs, m_option_predWsBySummingRVs, m_option_priorSeqDataOutputAllowAll, m_option_priorSeqDataOutputAllowedSet, m_option_priorSeqDataOutputFileName, m_option_priorSeqDataOutputFileType, m_option_priorSeqNumSamples, m_option_useTildeLogicForRankDefficientC, m_ov, QUESO::GcmOptionsValues::m_predLag, QUESO::GcmOptionsValues::m_predVUsAtKeyPoints, QUESO::GcmOptionsValues::m_predVUsBySamplingRVs, QUESO::GcmOptionsValues::m_predVUsBySummingRVs, QUESO::GcmOptionsValues::m_predWsAtKeyPoints, QUESO::GcmOptionsValues::m_predWsBySamplingRVs, QUESO::GcmOptionsValues::m_predWsBySummingRVs, QUESO::GcmOptionsValues::m_priorSeqDataOutputAllowAll, QUESO::GcmOptionsValues::m_priorSeqDataOutputAllowedSet, QUESO::GcmOptionsValues::m_priorSeqDataOutputFileName, QUESO::GcmOptionsValues::m_priorSeqDataOutputFileType, QUESO::GcmOptionsValues::m_priorSeqNumSamples, QUESO::GcmOptionsValues::m_useTildeLogicForRankDefficientC, and queso_deprecated.

Referenced by QUESO::operator<<().

627 {
629 
633  << "\n" << m_option_dataOutputAllowedSet << " = ";
634  for (std::set<unsigned int>::iterator setIt = m_ov.m_dataOutputAllowedSet.begin(); setIt != m_ov.m_dataOutputAllowedSet.end(); ++setIt) {
635  os << *setIt << " ";
636  }
637  os << "\n" << m_option_priorSeqNumSamples << " = " << m_ov.m_priorSeqNumSamples
641  << "\n" << m_option_priorSeqDataOutputAllowedSet << " = ";
642  for (std::set<unsigned int>::iterator setIt = m_ov.m_priorSeqDataOutputAllowedSet.begin(); setIt != m_ov.m_priorSeqDataOutputAllowedSet.end(); ++setIt) {
643  os << *setIt << " ";
644  }
647  << "\n" << m_option_formCMatrix << " = " << m_ov.m_formCMatrix
649  << "\n" << m_option_predLag << " = " << m_ov.m_predLag
656  << std::endl;
657 
658  return;
659 }
std::set< unsigned int > m_dataOutputAllowedSet
std::set< unsigned int > m_priorSeqDataOutputAllowedSet
#define queso_deprecated()
Definition: Defines.h:120
void QUESO::GpmsaComputerModelOptions::scanOptionsValues ( )

Definition at line 447 of file GpmsaComputerModelOptions.C.

References defineMyOptions(), getMyOptionValues(), m_env, m_optionsDesc, m_prefix, queso_deprecated, queso_require_msg, QUESO::BaseEnvironment::scanInputFileForMyOptions(), and QUESO::BaseEnvironment::subDisplayFile().

448 {
450  queso_require_msg(m_optionsDesc, "m_optionsDesc variable is NULL");
451 
454  //std::cout << "scan 000\n"
455  // << std::endl;
457  //std::cout << "scan 001\n"
458  // << std::endl;
459 
460  if (m_env.subDisplayFile() != NULL) {
461  *m_env.subDisplayFile() << "In GpmsaComputerModelOptions::scanOptionsValues()"
462  << ": after reading values of options with prefix '" << m_prefix
463  << "', state of object is:"
464  << "\n" << *this
465  << std::endl;
466  }
467 
468  return;
469 }
void scanInputFileForMyOptions(const boost::program_options::options_description &optionsDesc) const
This method scans the input file provided by the user to QUESO.
Definition: Environment.C:345
boost::program_options::options_description * m_optionsDesc
#define queso_require_msg(asserted, msg)
Definition: asserts.h:69
void getMyOptionValues(boost::program_options::options_description &optionsDesc)
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
Definition: Environment.C:274
#define queso_deprecated()
Definition: Defines.h:120
void defineMyOptions(boost::program_options::options_description &optionsDesc) const

Member Data Documentation

const BaseEnvironment& QUESO::GpmsaComputerModelOptions::m_env
private
std::string QUESO::GpmsaComputerModelOptions::m_option_checkAgainstPreviousSample
private

Definition at line 157 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_dataOutputAllowAll
private

Definition at line 159 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_dataOutputAllowedSet
private

Definition at line 160 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_dataOutputFileName
private

Definition at line 158 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_formCMatrix
private

Definition at line 168 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_help
private

Definition at line 156 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), and getMyOptionValues().

std::string QUESO::GpmsaComputerModelOptions::m_option_nuggetValueForBtWyB
private

Definition at line 166 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_nuggetValueForBtWyBInv
private

Definition at line 167 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_predLag
private

Definition at line 170 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_predVUsAtKeyPoints
private

Definition at line 173 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_predVUsBySamplingRVs
private

Definition at line 171 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_predVUsBySummingRVs
private

Definition at line 172 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_predWsAtKeyPoints
private

Definition at line 176 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_predWsBySamplingRVs
private

Definition at line 174 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_predWsBySummingRVs
private

Definition at line 175 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_priorSeqDataOutputAllowAll
private

Definition at line 164 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_priorSeqDataOutputAllowedSet
private

Definition at line 165 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_priorSeqDataOutputFileName
private

Definition at line 162 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_priorSeqDataOutputFileType
private

Definition at line 163 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_priorSeqNumSamples
private

Definition at line 161 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::GpmsaComputerModelOptions::m_option_useTildeLogicForRankDefficientC
private

Definition at line 169 of file GpmsaComputerModelOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

boost::program_options::options_description* QUESO::GpmsaComputerModelOptions::m_optionsDesc
private

Definition at line 155 of file GpmsaComputerModelOptions.h.

Referenced by scanOptionsValues(), and ~GpmsaComputerModelOptions().

GcmOptionsValues QUESO::GpmsaComputerModelOptions::m_ov
std::string QUESO::GpmsaComputerModelOptions::m_prefix

Definition at line 147 of file GpmsaComputerModelOptions.h.

Referenced by GpmsaComputerModelOptions(), and scanOptionsValues().


The documentation for this class was generated from the following files:

Generated on Thu Jun 11 2015 13:52:35 for queso-0.53.0 by  doxygen 1.8.5