queso-0.52.0
|
This class defines the options that specify the behaviour of the MCMC sampler. More...
#include <InfiniteDimensionalMCMCSamplerOptions.h>
Public Member Functions | |
InfiniteDimensionalMCMCSamplerOptions (const BaseEnvironment &env, const char *prefix) | |
Given prefix, read the input file for parameters named prefix_*. More... | |
~InfiniteDimensionalMCMCSamplerOptions () | |
Destructor. More... | |
void | scanOptionsValues () |
Scans the input file for options prefixed with prefix . More... | |
void | print (std::ostream &os) const |
Prints this to os . More... | |
const BaseEnvironment & | env () const |
Returns the QUESO environment. More... | |
Public Attributes | |
std::string | m_prefix |
The prefix to look for in the input file. More... | |
std::string | m_dataOutputDirName |
Name of the output dir to save infinite dimensional output files to. More... | |
std::string | m_dataOutputFileName |
Name of the HDF5 output file to store chain statistics. More... | |
unsigned int | m_num_iters |
The total number of iterations to do. More... | |
unsigned int | m_save_freq |
The frequency at which to save the state of the chain. More... | |
double | m_rwmh_step |
The proposal step size. More... | |
Private Member Functions | |
void | defineMyOptions (po::options_description &optionsDesc) const |
void | getMyOptionValues (po::options_description &optionsDesc) |
Private Attributes | |
const BaseEnvironment & | m_env |
po::options_description * | m_optionsDesc |
std::string | m_option_help |
std::string | m_option_dataOutputDirName |
std::string | m_option_dataOutputFileName |
std::string | m_option_num_iters |
std::string | m_option_save_freq |
std::string | m_option_rwmh_step |
This class defines the options that specify the behaviour of the MCMC sampler.
Definition at line 39 of file InfiniteDimensionalMCMCSamplerOptions.h.
QUESO::InfiniteDimensionalMCMCSamplerOptions::InfiniteDimensionalMCMCSamplerOptions | ( | const BaseEnvironment & | env, |
const char * | prefix | ||
) |
Given prefix, read the input file for parameters named prefix_*.
Definition at line 35 of file InfiniteDimensionalMCMCSamplerOptions.C.
References m_env, QUESO::BaseEnvironment::optionsInputFileName(), UQ_FATAL_TEST_MACRO, and QUESO::BaseEnvironment::worldRank().
QUESO::InfiniteDimensionalMCMCSamplerOptions::~InfiniteDimensionalMCMCSamplerOptions | ( | ) |
Destructor.
Definition at line 54 of file InfiniteDimensionalMCMCSamplerOptions.C.
References m_optionsDesc.
|
private |
Definition at line 82 of file InfiniteDimensionalMCMCSamplerOptions.C.
References m_option_dataOutputDirName, m_option_dataOutputFileName, m_option_help, m_option_num_iters, m_option_rwmh_step, m_option_save_freq, UQ_INF_DATA_OUTPUT_DIR_NAME_ODV, UQ_INF_DATA_OUTPUT_FILE_NAME_ODV, UQ_INF_NUM_ITERS_ODV, UQ_INF_RWMH_STEP_ODV, and UQ_INF_SAVE_FREQ_ODV.
Referenced by scanOptionsValues().
const BaseEnvironment & QUESO::InfiniteDimensionalMCMCSamplerOptions::env | ( | ) | const |
Returns the QUESO environment.
Definition at line 147 of file InfiniteDimensionalMCMCSamplerOptions.C.
References m_env.
|
private |
Definition at line 95 of file InfiniteDimensionalMCMCSamplerOptions.C.
References QUESO::BaseEnvironment::allOptionsMap(), m_dataOutputDirName, m_dataOutputFileName, m_env, m_num_iters, m_option_dataOutputDirName, m_option_dataOutputFileName, m_option_help, m_option_num_iters, m_option_rwmh_step, m_option_save_freq, m_rwmh_step, m_save_freq, and QUESO::BaseEnvironment::subDisplayFile().
Referenced by scanOptionsValues().
void QUESO::InfiniteDimensionalMCMCSamplerOptions::print | ( | std::ostream & | os | ) | const |
Prints this
to os
.
Definition at line 128 of file InfiniteDimensionalMCMCSamplerOptions.C.
References m_dataOutputDirName, m_dataOutputFileName, m_num_iters, m_option_dataOutputDirName, m_option_dataOutputFileName, m_option_num_iters, m_option_rwmh_step, m_option_save_freq, m_rwmh_step, and m_save_freq.
Referenced by QUESO::operator<<().
void QUESO::InfiniteDimensionalMCMCSamplerOptions::scanOptionsValues | ( | ) |
Scans the input file for options prefixed with prefix
.
Definition at line 61 of file InfiniteDimensionalMCMCSamplerOptions.C.
References defineMyOptions(), getMyOptionValues(), m_env, m_optionsDesc, m_prefix, QUESO::BaseEnvironment::scanInputFileForMyOptions(), QUESO::BaseEnvironment::subDisplayFile(), UQ_FATAL_TEST_MACRO, and QUESO::BaseEnvironment::worldRank().
std::string QUESO::InfiniteDimensionalMCMCSamplerOptions::m_dataOutputDirName |
Name of the output dir to save infinite dimensional output files to.
For example, if m_dataOutputDirName
is set to 'outputData/chain' then a series of folders will be created, one for each QUESO subenvironment, called 'outputData/chain0', 'outputData/chain1', etc. Inside these folders, output data from the infinite dimensional chain will be saved as an HDF5 file.
Definition at line 65 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by getMyOptionValues(), and print().
std::string QUESO::InfiniteDimensionalMCMCSamplerOptions::m_dataOutputFileName |
Name of the HDF5 output file to store chain statistics.
Definition at line 68 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by getMyOptionValues(), and print().
|
private |
Definition at line 86 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by env(), getMyOptionValues(), InfiniteDimensionalMCMCSamplerOptions(), and scanOptionsValues().
unsigned int QUESO::InfiniteDimensionalMCMCSamplerOptions::m_num_iters |
The total number of iterations to do.
Definition at line 71 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by getMyOptionValues(), and print().
|
private |
Definition at line 90 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by defineMyOptions(), getMyOptionValues(), and print().
|
private |
Definition at line 91 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by defineMyOptions(), getMyOptionValues(), and print().
|
private |
Definition at line 89 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by defineMyOptions(), and getMyOptionValues().
|
private |
Definition at line 92 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by defineMyOptions(), getMyOptionValues(), and print().
|
private |
Definition at line 94 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by defineMyOptions(), getMyOptionValues(), and print().
|
private |
Definition at line 93 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by defineMyOptions(), getMyOptionValues(), and print().
|
private |
Definition at line 88 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by scanOptionsValues(), and ~InfiniteDimensionalMCMCSamplerOptions().
std::string QUESO::InfiniteDimensionalMCMCSamplerOptions::m_prefix |
The prefix to look for in the input file.
Definition at line 55 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by scanOptionsValues().
double QUESO::InfiniteDimensionalMCMCSamplerOptions::m_rwmh_step |
The proposal step size.
Definition at line 77 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by getMyOptionValues(), and print().
unsigned int QUESO::InfiniteDimensionalMCMCSamplerOptions::m_save_freq |
The frequency at which to save the state of the chain.
Definition at line 74 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by getMyOptionValues(), and print().