queso-0.56.1
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 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
30 #include <queso/BoostInputOptionsParser.h>
31 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
32 
33 namespace QUESO {
34 
44 {
45 public:
47  InfiniteDimensionalMCMCSamplerOptions(const BaseEnvironment& env, const char* prefix);
48 
51 
53  void print(std::ostream& os) const;
54 
56  std::string m_prefix;
57 
59 
66  std::string m_dataOutputDirName;
67 
69  std::string m_dataOutputFileName;
70 
72  unsigned int m_num_iters;
73 
75  unsigned int m_save_freq;
76 
78  double m_rwmh_step;
79 
81  const BaseEnvironment& env() const;
82 
83 private:
84 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
86 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
87 
89 
90  std::string m_option_help;
93  std::string m_option_num_iters;
94  std::string m_option_save_freq;
95  std::string m_option_rwmh_step;
96 
97  void checkOptions();
98 
99  friend std::ostream & operator<<(std::ostream & os,
101 };
102 
103 } // End namespace QUESO
104 
105 #endif // UQ_INFMCMC_OPTIONS_H
unsigned int m_save_freq
The frequency at which to save the state of the chain.
std::string m_prefix
The prefix to look for in the input file.
This class defines the options that specify the behaviour of the MCMC sampler.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:197
std::string m_dataOutputDirName
Name of the output dir to save infinite dimensional output files to.
const BaseEnvironment & env() const
Returns the QUESO environment.
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.
std::string m_dataOutputFileName
Name of the HDF5 output file to store chain statistics.
unsigned int m_num_iters
The total number of iterations to do.
friend std::ostream & operator<<(std::ostream &os, const InfiniteDimensionalMCMCSamplerOptions &opts)

Generated on Thu Dec 15 2016 13:23:10 for queso-0.56.1 by  doxygen 1.8.5