28 #include <queso/VectorRV.h>
29 #include <queso/VectorFunction.h>
30 #include <queso/VectorFunctionSynchronizer.h>
31 #include <queso/MonteCarloSGOptions.h>
48 template <
class P_V,
class P_M,
class Q_V,
class Q_M>
81 void print (std::ostream& os)
const;
112 unsigned int seqSize);
115 const std::string& dataInputFileName,
116 const std::string& dataInputFileType,
119 unsigned int seqSize);
136 #endif // UQ_MOC_SG_H
A templated class that implements a Monte Carlo generator of samples.
void actualGenerateSequence(const BaseVectorRV< P_V, P_M > ¶mRv, BaseVectorSequence< P_V, P_M > &workingPSeq, BaseVectorSequence< Q_V, Q_M > &workingQSeq, unsigned int seqSize)
This method actually generates the QoI sequence.
const BaseEnvironment & m_env
MonteCarloSG(const char *prefix, const McOptionsValues *alternativeOptionsValues, const BaseVectorRV< P_V, P_M > ¶mRv, const BaseVectorFunction< P_V, P_M, Q_V, Q_M > &qoiFunction)
Constructor.
This class reads the options for the Monte Carlo sequence generator from an input file...
void print(std::ostream &os) const
Prints the sequence.
const VectorSpace< P_V, P_M > & m_paramSpace
unsigned int m_numQsNotSubWritten
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
const VectorSpace< Q_V, Q_M > & m_qoiSpace
const VectorFunctionSynchronizer< P_V, P_M, Q_V, Q_M > * m_qoiFunctionSynchronizer
void internGenerateSequence(const BaseVectorRV< P_V, P_M > ¶mRv, BaseVectorSequence< P_V, P_M > &workingPSeq, BaseVectorSequence< Q_V, Q_M > &workingQSeq)
Generates the QoI (output) sequence; it calls actualGenerateSequence().
const BaseVectorFunction< P_V, P_M, Q_V, Q_M > & m_qoiFunction
MonteCarloSGOptions * m_optionsObj
~MonteCarloSG()
Destructor.
A templated class for synchronizing the calls of vector-valued functions.
This class provides options for the Monte Carlo sequence generator if no input file is available...
friend std::ostream & operator<<(std::ostream &os, const MonteCarloSG< P_V, P_M, Q_V, Q_M > &obj)
McOptionsValues m_alternativeOptionsValues
const BaseVectorRV< P_V, P_M > & m_paramRv
A templated (base) class for handling vector functions.
unsigned int m_numPsNotSubWritten
void generateSequence(BaseVectorSequence< P_V, P_M > &workingPSeq, BaseVectorSequence< Q_V, Q_M > &workingQSeq)
Generates the QoI (output) sequence, it calls internGenerateSequence().
void actualReadSequence(const BaseVectorRV< P_V, P_M > ¶mRv, const std::string &dataInputFileName, const std::string &dataInputFileType, BaseVectorSequence< P_V, P_M > &workingPSeq, BaseVectorSequence< Q_V, Q_M > &workingQSeq, unsigned int seqSize)
Reads the sequence.