queso-0.57.1
|
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... | |
virtual | ~InfiniteDimensionalMCMCSamplerOptions () |
Destructor. 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 | checkOptions () |
Private Attributes | |
BoostInputOptionsParser * | m_parser |
const BaseEnvironment & | m_env |
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 |
Friends | |
std::ostream & | operator<< (std::ostream &os, const InfiniteDimensionalMCMCSamplerOptions &opts) |
This class defines the options that specify the behaviour of the MCMC sampler.
Definition at line 45 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 36 of file InfiniteDimensionalMCMCSamplerOptions.C.
References checkOptions(), QUESO::BoostInputOptionsParser::getOption(), QUESO::BaseEnvironment::input(), 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_parser, m_rwmh_step, m_save_freq, QUESO::BaseEnvironment::optionsInputFileName(), QUESO::queso_require_not_equal_to_msg, QUESO::BoostInputOptionsParser::registerOption(), and QUESO::BoostInputOptionsParser::scanInputFile().
|
virtual |
|
private |
Definition at line 85 of file InfiniteDimensionalMCMCSamplerOptions.C.
References m_num_iters, m_rwmh_step, m_save_freq, and QUESO::queso_require_equal_to_msg.
Referenced by InfiniteDimensionalMCMCSamplerOptions().
const BaseEnvironment & QUESO::InfiniteDimensionalMCMCSamplerOptions::env | ( | ) | const |
Returns the QUESO environment.
Definition at line 117 of file InfiniteDimensionalMCMCSamplerOptions.C.
References m_env.
void QUESO::InfiniteDimensionalMCMCSamplerOptions::print | ( | std::ostream & | os | ) | const |
Prints this
to os
.
Definition at line 95 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<<().
|
friend |
Definition at line 106 of file InfiniteDimensionalMCMCSamplerOptions.C.
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 68 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by QUESO::InfiniteDimensionalMCMCSampler::_write_state(), QUESO::InfiniteDimensionalMCMCSampler::InfiniteDimensionalMCMCSampler(), InfiniteDimensionalMCMCSamplerOptions(), and print().
std::string QUESO::InfiniteDimensionalMCMCSamplerOptions::m_dataOutputFileName |
Name of the HDF5 output file to store chain statistics.
Definition at line 71 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by QUESO::InfiniteDimensionalMCMCSampler::InfiniteDimensionalMCMCSampler(), InfiniteDimensionalMCMCSamplerOptions(), and print().
|
private |
Definition at line 90 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by env(), and InfiniteDimensionalMCMCSamplerOptions().
unsigned int QUESO::InfiniteDimensionalMCMCSamplerOptions::m_num_iters |
The total number of iterations to do.
Definition at line 74 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by checkOptions(), InfiniteDimensionalMCMCSamplerOptions(), and print().
|
private |
Definition at line 93 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by InfiniteDimensionalMCMCSamplerOptions(), and print().
|
private |
Definition at line 94 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by InfiniteDimensionalMCMCSamplerOptions(), and print().
|
private |
Definition at line 92 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by InfiniteDimensionalMCMCSamplerOptions().
|
private |
Definition at line 95 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by InfiniteDimensionalMCMCSamplerOptions(), and print().
|
private |
Definition at line 97 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by InfiniteDimensionalMCMCSamplerOptions(), and print().
|
private |
Definition at line 96 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by InfiniteDimensionalMCMCSamplerOptions(), and print().
|
private |
Definition at line 87 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by InfiniteDimensionalMCMCSamplerOptions(), and QUESO::operator<<().
std::string QUESO::InfiniteDimensionalMCMCSamplerOptions::m_prefix |
The prefix to look for in the input file.
Definition at line 58 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by QUESO::InfiniteDimensionalMCMCSampler::InfiniteDimensionalMCMCSampler().
double QUESO::InfiniteDimensionalMCMCSamplerOptions::m_rwmh_step |
The proposal step size.
Definition at line 80 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by QUESO::InfiniteDimensionalMCMCSampler::_propose(), checkOptions(), InfiniteDimensionalMCMCSamplerOptions(), and print().
unsigned int QUESO::InfiniteDimensionalMCMCSamplerOptions::m_save_freq |
The frequency at which to save the state of the chain.
Definition at line 77 of file InfiniteDimensionalMCMCSamplerOptions.h.
Referenced by QUESO::InfiniteDimensionalMCMCSampler::_append_scalar_dataset(), checkOptions(), InfiniteDimensionalMCMCSamplerOptions(), print(), and QUESO::InfiniteDimensionalMCMCSampler::step().