queso-0.53.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 #include <queso/BoostInputOptionsParser.h>
29 
30 namespace QUESO {
31 
41 {
42 public:
44  InfiniteDimensionalMCMCSamplerOptions(const BaseEnvironment& env, const char* prefix);
45 
48 
50  void print(std::ostream& os) const;
51 
53  std::string m_prefix;
54 
56 
63  std::string m_dataOutputDirName;
64 
66  std::string m_dataOutputFileName;
67 
69  unsigned int m_num_iters;
70 
72  unsigned int m_save_freq;
73 
75  double m_rwmh_step;
76 
78  const BaseEnvironment& env() const;
79 
80 private:
82 
84 
85  std::string m_option_help;
88  std::string m_option_num_iters;
89  std::string m_option_save_freq;
90  std::string m_option_rwmh_step;
91 
92  void checkOptions();
93 
94  friend std::ostream & operator<<(std::ostream & os,
96 };
97 
98 } // End namespace QUESO
99 
100 #endif // UQ_INFMCMC_OPTIONS_H
std::string m_dataOutputDirName
Name of the output dir to save infinite dimensional output files to.
std::string m_prefix
The prefix to look for in the input file.
std::string m_dataOutputFileName
Name of the HDF5 output file to store chain statistics.
const BaseEnvironment & env() const
Returns the QUESO environment.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:193
unsigned int m_save_freq
The frequency at which to save the state of the chain.
friend std::ostream & operator<<(std::ostream &os, const InfiniteDimensionalMCMCSamplerOptions &opts)
This class defines the options that specify the behaviour of the MCMC sampler.
void print(std::ostream &os) const
Prints this to os.
InfiniteDimensionalMCMCSamplerOptions(const BaseEnvironment &env, const char *prefix)
Given prefix, read the input file for parameters named prefix_*.
unsigned int m_num_iters
The total number of iterations to do.

Generated on Thu Jun 11 2015 13:52:31 for queso-0.53.0 by  doxygen 1.8.5