queso-0.52.0
InfiniteDimensionalMCMCSamplerOptions.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 //
3 // QUESO - a library to support the Quantification of Uncertainty
4 // for Estimation, Simulation and Optimization
5 //
6 // Copyright (C) 2008,2009,2010,2011,2012,2013 The PECOS Development Team
7 //
8 // This library is free software; you can redistribute it and/or
9 // modify it under the terms of the Version 2.1 GNU Lesser General
10 // Public License as published by the Free Software Foundation.
11 //
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // Lesser General Public License for more details.
16 //
17 // You should have received a copy of the GNU Lesser General Public
18 // License along with this library; if not, write to the Free Software
19 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
20 // Boston, MA 02110-1301 USA
21 //
22 //-----------------------------------------------------------------------el-
23 
24 #ifndef UQ_INFMCMC_OPTIONS_H
25 #define UQ_INFMCMC_OPTIONS_H
26 
27 #include <queso/Environment.h>
28 
29 namespace QUESO {
30 
40 {
41 public:
43  InfiniteDimensionalMCMCSamplerOptions(const BaseEnvironment& env, const char* prefix);
44 
47 
49  void scanOptionsValues();
50 
52  void print(std::ostream& os) const;
53 
55  std::string m_prefix;
56 
58 
65  std::string m_dataOutputDirName;
66 
68  std::string m_dataOutputFileName;
69 
71  unsigned int m_num_iters;
72 
74  unsigned int m_save_freq;
75 
77  double m_rwmh_step;
78 
80  const BaseEnvironment& env() const;
81 
82 private:
83  void defineMyOptions(po::options_description& optionsDesc) const;
84  void getMyOptionValues(po::options_description& optionsDesc);
85 
87 
88  po::options_description* m_optionsDesc;
89  std::string m_option_help;
92  std::string m_option_num_iters;
93  std::string m_option_save_freq;
94  std::string m_option_rwmh_step;
95 };
96 
97 std::ostream& operator<<(std::ostream& os, const InfiniteDimensionalMCMCSamplerOptions & opts);
98 
99 } // End namespace QUESO
100 
101 #endif // UQ_INFMCMC_OPTIONS_H
std::string m_dataOutputDirName
Name of the output dir to save infinite dimensional output files to.
unsigned int m_num_iters
The total number of iterations to do.
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
const BaseEnvironment & env() const
Returns the QUESO environment.
std::string m_dataOutputFileName
Name of the HDF5 output file to store chain statistics.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:187
This class defines the options that specify the behaviour of the MCMC sampler.
void defineMyOptions(po::options_description &optionsDesc) const
void getMyOptionValues(po::options_description &optionsDesc)
InfiniteDimensionalMCMCSamplerOptions(const BaseEnvironment &env, const char *prefix)
Given prefix, read the input file for parameters named prefix_*.
void print(std::ostream &os) const
Prints this to os.
unsigned int m_save_freq
The frequency at which to save the state of the chain.
void scanOptionsValues()
Scans the input file for options prefixed with prefix.
std::string m_prefix
The prefix to look for in the input file.

Generated on Thu Apr 23 2015 19:30:54 for queso-0.52.0 by  doxygen 1.8.5