25 #ifndef UQ_MH_SG_OPTIONS_H 
   26 #define UQ_MH_SG_OPTIONS_H 
   28 #include <queso/Environment.h> 
   29 #include <queso/MLSamplingLevelOptions.h> 
   30 #include <queso/SequenceStatisticalOptions.h> 
   32 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS 
   33 #include <queso/BoostInputOptionsParser.h> 
   34 #endif  // DISABLE_BOOST_PROGRAM_OPTIONS 
   36 #undef  UQ_MH_SG_REQUIRES_INVERTED_COV_MATRICES 
   37 #define UQ_NOTHING_JUST_FOR_TEST_OF_SVN_ID 1 
   39 #define UQ_MH_SG_FILENAME_FOR_NO_FILE   "." 
   42 #define UQ_MH_SG_HELP                                                 "" 
   43 #define UQ_MH_SG_DATA_OUTPUT_FILE_NAME_ODV                            UQ_MH_SG_FILENAME_FOR_NO_FILE 
   44 #define UQ_MH_SG_DATA_OUTPUT_ALLOW_ALL_ODV                            0 
   45 #define UQ_MH_SG_DATA_OUTPUT_ALLOWED_SET_ODV                          "" 
   47 #define UQ_MH_SG_TOTALLY_MUTE_ODV                                     0 
   48 #define UQ_MH_SG_INITIAL_POSITION_DATA_INPUT_FILE_NAME_ODV            UQ_MH_SG_FILENAME_FOR_NO_FILE 
   49 #define UQ_MH_SG_INITIAL_POSITION_DATA_INPUT_FILE_TYPE_ODV            UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT 
   50 #define UQ_MH_SG_INITIAL_PROPOSAL_COV_MATRIX_DATA_INPUT_FILE_NAME_ODV UQ_MH_SG_FILENAME_FOR_NO_FILE 
   51 #define UQ_MH_SG_INITIAL_PROPOSAL_COV_MATRIX_DATA_INPUT_FILE_TYPE_ODV UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT 
   52 #define UQ_MH_SG_LIST_OF_DISABLED_PARAMETERS_ODV                      "" 
   53 #define UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_NAME_ODV                   UQ_MH_SG_FILENAME_FOR_NO_FILE 
   54 #define UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_TYPE_ODV                   UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT 
   55 #define UQ_MH_SG_RAW_CHAIN_SIZE_ODV                                   100 
   56 #define UQ_MH_SG_RAW_CHAIN_GENERATE_EXTRA_ODV                         0 
   57 #define UQ_MH_SG_RAW_CHAIN_DISPLAY_PERIOD_ODV                         500 
   58 #define UQ_MH_SG_RAW_CHAIN_MEASURE_RUN_TIMES_ODV                      1 
   59 #define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_PERIOD_ODV                     0 
   60 #define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_NAME_ODV                  UQ_MH_SG_FILENAME_FOR_NO_FILE 
   61 #define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_TYPE_ODV                  UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT 
   62 #define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV                  0 
   63 #define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV                "" 
   64 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS 
   65 #define UQ_MH_SG_RAW_CHAIN_COMPUTE_STATS_ODV                          0 
   67 #define UQ_MH_SG_FILTERED_CHAIN_GENERATE_ODV                          0 
   68 #define UQ_MH_SG_FILTERED_CHAIN_DISCARDED_PORTION_ODV                 0. 
   69 #define UQ_MH_SG_FILTERED_CHAIN_LAG_ODV                               1 
   70 #define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_FILE_NAME_ODV             UQ_MH_SG_FILENAME_FOR_NO_FILE 
   71 #define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_FILE_TYPE_ODV             UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT 
   72 #define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV             0 
   73 #define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV           "" 
   74 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS 
   75 #define UQ_MH_SG_FILTERED_CHAIN_COMPUTE_STATS_ODV                     0 
   77 #define UQ_MH_SG_DISPLAY_CANDIDATES_ODV                               0 
   78 #define UQ_MH_SG_PUT_OUT_OF_BOUNDS_IN_CHAIN_ODV                       1 
   79 #define UQ_MH_SG_TK_USE_LOCAL_HESSIAN_ODV                             0 
   80 #define UQ_MH_SG_TK_USE_NEWTON_COMPONENT_ODV                          1 
   81 #define UQ_MH_SG_DR_MAX_NUM_EXTRA_STAGES_ODV                          0 
   82 #define UQ_MH_SG_DR_LIST_OF_SCALES_FOR_EXTRA_STAGES_ODV               "" 
   83 #define UQ_MH_SG_DR_DURING_AM_NON_ADAPTIVE_INT_ODV                    1 
   84 #define UQ_MH_SG_AM_KEEP_INITIAL_MATRIX_ODV                           0 
   85 #define UQ_MH_SG_AM_INIT_NON_ADAPT_INT_ODV                            0 
   86 #define UQ_MH_SG_AM_ADAPT_INTERVAL_ODV                                0 
   87 #define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_PERIOD_ODV           0 
   88 #define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_FILE_NAME_ODV        UQ_MH_SG_FILENAME_FOR_NO_FILE 
   89 #define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_FILE_TYPE_ODV        UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT 
   90 #define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_ALLOW_ALL_ODV        0 
   91 #define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_ALLOWED_SET_ODV      "" 
   92 #define UQ_MH_SG_AM_ETA_ODV                                           1. 
   93 #define UQ_MH_SG_AM_EPSILON_ODV                                       1.e-5 
   94 #define UQ_MH_SG_ENABLE_BROOKS_GELMAN_CONV_MONITOR                    0 
   95 #define UQ_MH_SG_BROOKS_GELMAN_LAG                                    100 
   96 #define UQ_MH_SG_OUTPUT_LOG_LIKELIHOOD                                1 
   97 #define UQ_MH_SG_OUTPUT_LOG_TARGET                                    1 
   98 #define UQ_MH_SG_DO_LOGIT_TRANSFORM                                   1 
   99 #define UQ_MH_SG_ALGORITHM                                            "logit_random_walk" 
  100 #define UQ_MH_SG_TK                                                   "logit_random_walk" 
  102 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS 
  104   namespace program_options {
 
  105     class options_description;
 
  108 #endif  // DISABLE_BOOST_PROGRAM_OPTIONS 
  112 class BaseEnvironment;
 
  134 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS 
  136                                      const SsOptionsValues* alternativeFilteredSsOptionsValues);
 
  138                                      const SsOptionsValues* alternativeFilteredSsOptionsValues,
 
  334 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS 
  335   bool                               m_rawChainComputeStats;
 
  390 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS 
  391   bool                               m_filteredChainComputeStats;
 
  619 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS 
  621 #endif  // DISABLE_BOOST_PROGRAM_OPTIONS 
  667 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS 
  668   std::string                   m_option_rawChain_computeStats;
 
  685 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS 
  686   std::string                   m_option_filteredChain_computeStats;
 
  748   friend std::ostream & 
operator<<(std::ostream & os,
 
  751 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS 
  753   SsOptionsValues             m_alternativeRawSsOptionsValues;
 
  754   SsOptionsValues             m_alternativeFilteredSsOptionsValues;
 
  797   void print            (std::ostream& os) 
const;
 
  803 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS 
  804   SequenceStatisticalOptions* m_rawChainStatisticalOptionsObj;
 
  805   bool                               m_rawChainStatOptsInstantiated;
 
  806   SequenceStatisticalOptions* m_filteredChainStatisticalOptionsObj;
 
  807   bool                               m_filteredChainStatOptsInstantiated;
 
  812 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS 
  813   void   defineMyOptions  (boost::program_options::options_description& optionsDesc) 
const;
 
  817   void   getMyOptionValues(boost::program_options::options_description& optionsDesc);
 
  818 #endif  // DISABLE_BOOST_PROGRAM_OPTIONS 
  821 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS 
  823 #endif  // DISABLE_BOOST_PROGRAM_OPTIONS 
  848 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS 
  849   std::string                   m_option_rawChain_computeStats;
 
  858 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS 
  859   std::string                   m_option_filteredChain_computeStats;
 
  896 #endif // UQ_MH_SG_OPTIONS_H 
MhOptionsValues & operator=(const MhOptionsValues &rhs)
Assignment operator; it copies rhs to this. 
 
double m_filteredChainDiscardedPortion
What initial fraction of the filtered chain is discarded. 
 
std::string m_option_filteredChain_dataOutputFileType
 
virtual ~MhOptionsValues()
Destructor. 
 
std::vector< double > m_drScalesForExtraStages
The vector of scale factors for the proposal covariance matrix to use for delayed rejection...
 
bool m_displayCandidates
Toggle to tell QUESO whether or not to write proposal (candidate) state to output file...
 
std::string m_rawChainDataOutputFileName
If not ".", filename to write the Markov chain to. 
 
bool m_totallyMute
If true, zero output is written to files. Default is false. 
 
bool m_putOutOfBoundsInChain
Flag to tell QUESO how chains should be upon generating a proposal that is out of the problem domain...
 
std::set< unsigned int > m_amAdaptedMatricesDataOutputAllowedSet
This option is a no-op. The default is the empty set. 
 
std::string m_option_rawChain_dataInputFileType
Option name for MhOptionsValues::m_rawChainDataInputFileType. Option name is m_prefix + "mh_rawChain_...
 
std::string m_option_help
 
MhOptionsValues m_ov
This class is where the actual options are stored. 
 
std::string m_option_am_keepInitialMatrix
 
std::string m_option_initialProposalCovMatrix_dataInputFileName
Option name for MhOptionsValues::m_initialProposalCovMatrixDataInputFileName. Option name is m_prefix...
 
unsigned int m_rawChainDataOutputPeriod
The frequency with which to write chain output. Defaults to 0. 
 
std::string m_option_filteredChain_dataOutputFileName
 
std::string m_option_outputLogTarget
 
std::string m_filteredChainDataOutputFileName
If not ".", file name to save the filtered chain to. Default is ".". 
 
std::string m_option_rawChain_measureRunTimes
Option name for MhOptionsValues::m_rawChainMeasureRunTimes. Option name is m_prefix + "mh_rawChain_me...
 
std::string m_rawChainDataOutputFileType
The filetype of m_rawChainDataOutputFileName. 
 
bool m_drDuringAmNonAdaptiveInt
Do delayed rejection during the initial non-adaptive part of sampling? 
 
std::string m_option_rawChain_generateExtra
 
void checkOptions(const BaseEnvironment *env)
 
std::string m_option_listOfDisabledParameters
Option name for MhOptionsValues::m_parameterDisabledSet. Option name is m_prefix + "mh_listOfDisabled...
 
std::string m_option_am_eta
See MhOptionsValues::m_amEta. 
 
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
 
std::string m_option_BrooksGelmanLag
Option name for MhOptionsValues::m_BrooksGelmanLag. Option name is m_prefix + "mh_BrooksGelmanLag". 
 
std::string m_initialPositionDataInputFileName
If not ".", reads the contents of the file and uses that to start the MCMC. Default is "...
 
std::string m_option_putOutOfBoundsInChain
 
std::string m_option_dr_listOfScalesForExtraStages
Option name for MhOptionsValues::m_drScalesForExtraStages. Option name is m_prefix + "mh_dr_listOfSca...
 
std::string m_option_am_adaptInterval
 
std::string m_option_initialProposalCovMatrix_dataInputFileName
 
unsigned int m_BrooksGelmanLag
The lag with which to compute the Brooks-Gelman convergence statistic. 
 
std::string m_option_putOutOfBoundsInChain
Option name for MhOptionsValues::m_putOutOfBoundsInChain. Option name is m_prefix + "mh_putOutOfBound...
 
friend std::ostream & operator<<(std::ostream &os, const MhOptionsValues &obj)
 
std::string m_option_rawChain_displayPeriod
 
std::string m_option_dataOutputFileName
 
This class reads the options for the Metropolis-Hastings generator of samples from an input file...
 
bool m_outputLogTarget
Flag for deciding whether or not to dump log target values in output Default is true. 
 
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
 
std::string m_option_totallyMute
Option name for MhOptionsValues::m_totallyMute. Option name is m_prefix + "mh_totallyMute". 
 
unsigned int m_rawChainDisplayPeriod
The frequency with which to output diagnostic information. 
 
std::string m_option_rawChain_dataOutputFileName
 
std::string m_option_listOfDisabledParameters
 
std::string m_option_doLogitTransform
 
std::string m_option_rawChain_dataOutputAllowAll
 
std::string m_initialProposalCovMatrixDataInputFileName
If not ".", reads the contents of the file as the initial proposal covariance matrix. 
 
std::string m_option_am_epsilon
See MhOptionsValues::m_amEpsilon. 
 
std::string m_option_am_eta
Option name for MhOptionsValues::m_amEta. Option name is m_prefix + "mh_am_eta". 
 
unsigned int m_enableBrooksGelmanConvMonitor
The frequency with which to compute the Brooks-Gelman convergence statistic. 
 
std::string m_option_rawChain_displayPeriod
Option name for MhOptionsValues::m_rawChainDisplayPeriod. Option name is m_prefix + "mh_rawChain_disp...
 
std::string m_option_tk
Option name for MhOptionsValues::m_tk. Option name is m_prefix + "mh_tk". 
 
std::string m_option_algorithm
Option name for MhOptionsValues::m_algorithm. Option name is m_prefix + "mh_algorithm". 
 
std::string m_option_filteredChain_generate
Option name for MhOptionsValues::m_filteredChainGenerate. Option name is m_prefix + "mh_filteredChain...
 
bool m_tkUseLocalHessian
Flag to tell QUESO whether or not to use Hessian information for the proposal covariance matrix...
 
std::string m_dataOutputFileName
The base name of output files where the chain (and related information) will be written. 
 
std::string m_option_am_adaptedMatrices_dataOutputPeriod
 
std::string m_option_filteredChain_discardedPortion
 
std::string m_option_am_adaptedMatrices_dataOutputFileType
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputFileType. Option name is m_prefix + "mh...
 
bool m_filteredChainDataOutputAllowAll
Toggle for whether or not to allow all processes to write filtered Markov chain output to a file...
 
std::set< unsigned int > m_parameterDisabledSet
Set of parameters that don't get sampled. 
 
bool m_filteredChainGenerate
Toggle the option to save a filtered chain. 
 
std::string m_option_dr_maxNumExtraStages
 
const BaseEnvironment & m_env
 
std::string m_option_help
Option name for MhOptionsValues::m_help. Option name is m_prefix + "mh_help". 
 
std::string m_option_rawChain_dataOutputAllowedSet
Option name for MhOptionsValues::m_rawChainDataOutputAllowedSet. Option name is m_prefix + "mh_rawCha...
 
std::string m_option_enableBrooksGelmanConvMonitor
Option name for MhOptionsValues::m_enableBrooksGelmanConvMonitor. Option name is m_prefix + "mh_enabl...
 
std::string m_option_outputLogTarget
Option name for MhOptionsValues::m_outputLogTarget. Option name is m_prefix + "mh_outputLogTarget". 
 
std::string m_option_rawChain_dataInputFileType
 
void getMyOptionValues(boost::program_options::options_description &optionsDesc)
Gets the sequence options defined to the Metropolis-Hastings algorithm. 
 
std::string m_option_am_adaptedMatrices_dataOutputAllowAll
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputAllowAll. Option name is m_prefix + "mh...
 
std::string m_rawChainDataInputFileType
The filetype of m_rawChainDataInputFileName. Only "m" (matlab) is currently supported. Default is "m". 
 
std::string m_amAdaptedMatricesDataOutputFileName
If not ".", this is the file to write adapted proposal covariance matrices to. Default is "...
 
std::string m_option_filteredChain_lag
 
std::string m_option_dataOutputFileName
Option name for MhOptionsValues::m_dataOutputFileName. Option name is m_prefix + "mh_dataOutputFileNa...
 
std::string m_initialProposalCovMatrixDataInputFileType
The filetype of m_initialProposalCovMatrixDataInputFileName. Only "m" (matlab) is currently supported...
 
std::string m_option_am_adaptedMatrices_dataOutputFileName
 
std::string m_option_filteredChain_dataOutputAllowAll
Option name for MhOptionsValues::m_filteredChainDataOutputAllowAll. Option name is m_prefix + "mh_fil...
 
std::string m_option_initialPosition_dataInputFileName
 
std::string m_option_rawChain_generateExtra
Option name for MhOptionsValues::m_rawChainGenerateExtra. Option name is m_prefix + "mh_rawChain_gene...
 
std::string m_option_rawChain_dataOutputFileType
Option name for MhOptionsValues::m_rawChainDataOutputFileType. Option name is m_prefix + "mh_rawChain...
 
unsigned int m_amInitialNonAdaptInterval
The number of initial samples to do without adapting the proposal covariance matrix. 
 
std::string m_option_tk_useLocalHessian
Option name for MhOptionsValues::m_tkUseLocalHessian. Option name is m_prefix + "mh_tk_useLocalHessia...
 
std::string m_option_am_adaptedMatrices_dataOutputFileName
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputFileName. Option name is m_prefix + "mh...
 
std::string m_option_outputLogLikelihood
 
std::string m_option_doLogitTransform
Option name for MhOptionsValues::m_doLogitTransform. Option name is m_prefix + "mh_doLogitTransform"...
 
std::string m_option_dataOutputAllowAll
Option name for MhOptionsValues::m_dataOutputAllowAll. Option name is m_prefix + "mh_dataOutputAllowA...
 
std::string m_option_filteredChain_dataOutputAllowedSet
 
MhOptionsValues()
Default constructor. 
 
std::string m_option_displayCandidates
 
std::string m_tk
Which transition kernel to use for MCMC. Default is "random_walk". 
 
std::string m_option_dataOutputAllowedSet
Option name for MhOptionsValues::m_dataOutputAllowedSet. Option name is m_prefix + "mh_dataOutputAllo...
 
std::string m_option_rawChain_size
 
std::string m_algorithm
Which algorithm to use for the MCMC. Default is "random_walk". 
 
std::string m_option_am_epsilon
Option name for MhOptionsValues::m_amEpsilon. Option name is m_prefix + "mh_am_epsilon". 
 
bool m_outputLogLikelihood
Flag for deciding whether or not to dump log likelihood values in output. Default is true...
 
std::string m_option_tk_useLocalHessian
 
std::string m_option_rawChain_dataOutputFileType
 
This class provides options for each level of the Multilevel sequence generator if no input file is a...
 
unsigned int m_drMaxNumExtraStages
The number of delayed rejection stages to do. Default is 0. 
 
std::string m_option_displayCandidates
Option name for MhOptionsValues::m_displayCandidates. Option name is m_prefix + "mh_displayCandidates...
 
std::string m_help
If non-empty string, print options and values to the output file. 
 
std::string m_initialPositionDataInputFileType
The filetype of m_initialPositionDataInputFileName. Only "m" (matlab) is currently supported...
 
std::string m_option_initialPosition_dataInputFileType
 
std::string m_rawChainDataInputFileName
Filename for reading an already-produced Markov chain. 
 
void scanOptionsValues()
It scans the option values from the options input file. 
 
std::string m_option_am_initialNonAdaptInterval
Option name for MhOptionsValues::m_amInitialNonAdaptInterval. Option name is m_prefix + "mh_am_initia...
 
std::string m_prefix
Prefix for input file option names. Prepends all options for this class. 
 
std::string m_option_rawChain_dataOutputAllowedSet
 
std::string m_option_outputLogLikelihood
Option name for MhOptionsValues::m_outputLogLikelihood. Option name is m_prefix + "mh_outputLogLikeli...
 
std::string m_filteredChainDataOutputFileType
The filetype of m_filteredChainDataOutputFileName. Only "m" (matlab) is currently supported...
 
std::string m_option_am_adaptedMatrices_dataOutputFileType
 
std::string m_option_rawChain_dataOutputFileName
Option name for MhOptionsValues::m_rawChainDataOutputFileName. Option name is m_prefix + "mh_rawChain...
 
std::string m_option_initialProposalCovMatrix_dataInputFileType
 
std::string m_option_am_adaptedMatrices_dataOutputAllowedSet
 
std::string m_option_initialPosition_dataInputFileType
Option name for MhOptionsValues::m_initialPositionDataInputFileType. Option name is m_prefix + "mh_in...
 
std::string m_option_filteredChain_dataOutputAllowedSet
Option name for MhOptionsValues::m_filteredChainDataOutputAllowedSet. Option name is m_prefix + "mh_f...
 
std::string m_option_filteredChain_generate
 
std::string m_option_filteredChain_discardedPortion
Option name for MhOptionsValues::m_filteredChainDiscardedPortion. Option name is m_prefix + "mh_filte...
 
boost::program_options::options_description * m_optionsDesc
 
bool m_dataOutputAllowAll
If true, all processes write output and m_dataOutputAllowedSet is ignored. 
 
bool m_rawChainGenerateExtra
If true, extra chain information is computed/stored. 
 
std::string m_amAdaptedMatricesDataOutputFileType
The filetype of m_amAdaptedMatricesDataOutputFileName. Only "m" (matlab) is currently supported...
 
std::string m_option_algorithm
 
MetropolisHastingsSGOptions(const BaseEnvironment &env, const char *prefix)
Constructor: reads options from the input file. 
 
std::string m_option_rawChain_measureRunTimes
 
std::string m_option_BrooksGelmanLag
 
bool m_rawChainDataOutputAllowAll
Toggle for whether or not to allow all processes to write Markov chain output to a file...
 
std::string m_option_tk_useNewtonComponent
Option name for MhOptionsValues::m_tkUseNewtonComponent. Option name is m_prefix + "mh_tk_useNewtonCo...
 
std::string m_option_initialProposalCovMatrix_dataInputFileType
Option name for MhOptionsValues::m_initialProposalCovMatrixDataInputFileType. Option name is m_prefix...
 
std::string m_option_initialPosition_dataInputFileName
Option name for MhOptionsValues::m_initialPositionDataInputFileName. Option name is m_prefix + "mh_in...
 
std::string m_option_totallyMute
 
unsigned int m_filteredChainLag
Set the lag for the filtered chain. Default is 1. 
 
std::string m_option_enableBrooksGelmanConvMonitor
 
std::string m_option_am_initialNonAdaptInterval
 
double m_amEta
Proposal covariance scaling factor, usually 2.4 * 2.4 / d. 
 
void defineMyOptions(boost::program_options::options_description &optionsDesc) const 
Defines the options for the Metropolis-Hastings generator of samples as the default options...
 
std::string m_option_am_adaptedMatrices_dataOutputAllowAll
 
std::set< unsigned int > m_dataOutputAllowedSet
The set of MPI ranks that can write output. See m_dataOutputAllowAll. 
 
bool m_tkUseNewtonComponent
This option is a no-op. Default is true. 
 
unsigned int m_rawChainSize
The size of the chain (number of posterior samples) to generate. Default is 100. 
 
void print(std::ostream &os) const 
It prints the option values. 
 
~MetropolisHastingsSGOptions()
Destructor. 
 
std::string m_option_dr_maxNumExtraStages
Option name for MhOptionsValues::m_drMaxNumExtraStages. Option name is m_prefix + "mh_dr_maxNumExtraS...
 
std::string m_option_dr_listOfScalesForExtraStages
 
BoostInputOptionsParser * m_parser
 
This class provides options for the Metropolis-Hastings generator of samples if no input file is avai...
 
std::string m_option_dr_duringAmNonAdaptiveInt
Option name for MhOptionsValues::m_drDuringAmNonAdaptiveInt. Option name is m_prefix + "mh_dr_duringA...
 
std::set< unsigned int > m_filteredChainDataOutputAllowedSet
The set of MPI ranks that will write filtered Markov chain output to a file. See also m_filteredChain...
 
bool m_amAdaptedMatricesDataOutputAllowAll
This option is a no-op. The default is false. 
 
std::string m_option_rawChain_dataOutputPeriod
Option name for MhOptionsValues::m_rawChainDataOutputPeriod. Option name is m_prefix + "mh_rawChain_d...
 
const BaseEnvironment * m_env
 
std::string m_option_rawChain_dataOutputAllowAll
Option name for MhOptionsValues::m_rawChainDataOutputAllowAll. Option name is m_prefix + "mh_rawChain...
 
bool m_rawChainMeasureRunTimes
If true, measures timings spent in various chain computions and writes them to the output file...
 
std::string m_option_tk_useNewtonComponent
 
std::string m_option_am_adaptedMatrices_dataOutputPeriod
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputPeriod. Option name is m_prefix + "mh_a...
 
double m_amEpsilon
Regularisation parameter for the DRAM covariance matrix. 
 
bool m_doLogitTransform
Flag for deciding whether or not to do logit transform of bounded domains Default is true...
 
std::set< unsigned int > m_rawChainDataOutputAllowedSet
The set of MPI ranks that will write Markov chain output to a file. See also m_rawChainDataOutputAllo...
 
std::string m_option_am_keepInitialMatrix
Option name for MhOptionsValues::m_amKeepInitialMatrix. Option name is m_prefix + "mh_am_keepInitialM...
 
std::string m_option_dataOutputAllowedSet
 
std::string m_option_filteredChain_dataOutputAllowAll
 
std::string m_option_dataOutputAllowAll
 
std::string m_option_filteredChain_lag
Option name for MhOptionsValues::m_filteredChainLag. Option name is m_prefix + "mh_filteredChain_lag"...
 
unsigned int m_amAdaptInterval
The frequency at which to adapt the proposal covariance matrix. 
 
std::string m_option_rawChain_dataInputFileName
 
std::string m_option_am_adaptedMatrices_dataOutputAllowedSet
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputAllowedSet. Option name is m_prefix + "...
 
std::string m_option_filteredChain_dataOutputFileType
Option name for MhOptionsValues::m_filteredChainDataOutputFileType. Option name is m_prefix + "mh_fil...
 
bool m_amKeepInitialMatrix
This option is a no-op. The default is false. 
 
void copy(const MhOptionsValues &src)
Copies the option values from src to this. 
 
std::string m_option_dr_duringAmNonAdaptiveInt
 
std::string m_option_am_adaptInterval
Option name for MhOptionsValues::m_amAdaptInterval. Option name is m_prefix + "mh_am_adaptInterval". 
 
std::string m_option_rawChain_size
Option name for MhOptionsValues::m_rawChainSize. Option name is m_prefix + "mh_rawChain_size". 
 
std::string m_option_rawChain_dataOutputPeriod
 
unsigned int m_amAdaptedMatricesDataOutputPeriod
The frequency (after m_amInitialNonAdaptInterval samples are done) of printing the last adapted propo...
 
std::string m_option_rawChain_dataInputFileName
Option name for MhOptionsValues::m_rawChainDataInputFileName. Option name is m_prefix + "mh_rawChain_...
 
std::string m_option_filteredChain_dataOutputFileName
Option name for MhOptionsValues::m_filteredChainDataOutputFileName. Option name is m_prefix + "mh_fil...