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
A templated (base) class for handling vector functions.
const BaseEnvironment & m_env
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 VectorSpace< Q_V, Q_M > & m_qoiSpace
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 BaseVectorRV< P_V, P_M > & m_paramRv
This class provides options for the Monte Carlo sequence generator if no input file is available...
bool m_userDidNotProvideOptions
void print(std::ostream &os) const
Prints the sequence.
const VectorSpace< P_V, P_M > & m_paramSpace
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.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
unsigned int m_numQsNotSubWritten
A templated class for synchronizing the calls of vector-valued functions.
const BaseVectorFunction< P_V, P_M, Q_V, Q_M > & m_qoiFunction
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.
const McOptionsValues * m_optionsObj
const VectorFunctionSynchronizer< P_V, P_M, Q_V, Q_M > * m_qoiFunctionSynchronizer
~MonteCarloSG()
Destructor.
void generateSequence(BaseVectorSequence< P_V, P_M > &workingPSeq, BaseVectorSequence< Q_V, Q_M > &workingQSeq)
Generates the QoI (output) sequence, it calls internGenerateSequence().
friend std::ostream & operator<<(std::ostream &os, const MonteCarloSG< P_V, P_M, Q_V, Q_M > &obj)
unsigned int m_numPsNotSubWritten
A templated class that implements a Monte Carlo generator of samples.