queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
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 QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
30 #include <queso/BoostInputOptionsParser.h>
31 #else
32 #include <queso/getpot.h>
33 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
34 
35 namespace QUESO {
36 
46 {
47 public:
49  InfiniteDimensionalMCMCSamplerOptions(const BaseEnvironment& env, const char* prefix);
50 
53 
55  void print(std::ostream& os) const;
56 
58  std::string m_prefix;
59 
61 
68  std::string m_dataOutputDirName;
69 
71  std::string m_dataOutputFileName;
72 
74  unsigned int m_num_iters;
75 
77  unsigned int m_save_freq;
78 
80  double m_rwmh_step;
81 
83  const BaseEnvironment& env() const;
84 
85 private:
86 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
88 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
89 
91 
92  std::string m_option_help;
95  std::string m_option_num_iters;
96  std::string m_option_save_freq;
97  std::string m_option_rwmh_step;
98 
99  void checkOptions();
100 
101  friend std::ostream & operator<<(std::ostream & os,
103 };
104 
105 } // End namespace QUESO
106 
107 #endif // UQ_INFMCMC_OPTIONS_H
void print(std::ostream &os) const
Prints this to os.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:198
unsigned int m_num_iters
The total number of iterations to do.
std::string m_dataOutputFileName
Name of the HDF5 output file to store chain statistics.
std::string m_dataOutputDirName
Name of the output dir to save infinite dimensional output files to.
InfiniteDimensionalMCMCSamplerOptions(const BaseEnvironment &env, const char *prefix)
Given prefix, read the input file for parameters named prefix_*.
const BaseEnvironment & env() const
Returns the QUESO environment.
unsigned int m_save_freq
The frequency at which to save the state of the chain.
This class defines the options that specify the behaviour of the MCMC sampler.
friend std::ostream & operator<<(std::ostream &os, const InfiniteDimensionalMCMCSamplerOptions &opts)
std::string m_prefix
The prefix to look for in the input file.

Generated on Tue Jun 5 2018 19:48:54 for queso-0.57.1 by  doxygen 1.8.5