28 #include <queso/VectorRV.h>
29 #include <queso/VectorFunction.h>
30 #include <queso/VectorFunctionSynchronizer.h>
31 #include <queso/MonteCarloSGOptions.h>
51 template <
class P_V = GslVector,
class P_M = GslMatrix,
class Q_V = GslVector,
class Q_M = GslMatrix>
84 void print (std::ostream& os)
const;
115 unsigned int seqSize);
118 const std::string& dataInputFileName,
119 const std::string& dataInputFileType,
122 unsigned int seqSize);
140 #endif // UQ_MOC_SG_H
friend std::ostream & operator<<(std::ostream &os, const MonteCarloSG< P_V, P_M, Q_V, Q_M > &obj)
A templated class for synchronizing the calls of vector-valued functions.
bool m_userDidNotProvideOptions
A templated (base) class for handling vector functions.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
This class provides options for the Monte Carlo sequence generator if no input file is available...
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.
A templated class that implements a Monte Carlo generator of samples.
const McOptionsValues * m_optionsObj
const VectorFunctionSynchronizer< P_V, P_M, Q_V, Q_M > * m_qoiFunctionSynchronizer
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.
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.
Base class for handling vector and array samples (sequence of vectors or arrays). ...
unsigned int m_numQsNotSubWritten
const BaseVectorFunction< P_V, P_M, Q_V, Q_M > & m_qoiFunction
const VectorSpace< P_V, P_M > & m_paramSpace
const BaseEnvironment & m_env
void generateSequence(BaseVectorSequence< P_V, P_M > &workingPSeq, BaseVectorSequence< Q_V, Q_M > &workingQSeq)
Generates the QoI (output) sequence, it calls internGenerateSequence().
~MonteCarloSG()
Destructor.
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().
unsigned int m_numPsNotSubWritten
const VectorSpace< Q_V, Q_M > & m_qoiSpace
const BaseVectorRV< P_V, P_M > & m_paramRv
void print(std::ostream &os) const
Prints the sequence.