1.2.2
CCC
 
GibbsMultiMono Class Reference

#include <GibbsMultiMono.hpp>

Inheritance diagram for GibbsMultiMono:
AGibbs AStringable GibbsUMultiMono GibbsUPropMono

Public Member Functions

 GibbsMultiMono ()
 
 GibbsMultiMono (Db *db, std::vector< Model * > models, double rho)
 
 GibbsMultiMono (const GibbsMultiMono &r)
 
GibbsMultiMonooperator= (const GibbsMultiMono &r)
 
virtual ~GibbsMultiMono ()
 
ModelgetModels (int ivar) const
 
double getRho () const
 
int getVariableNumber () const
 
int calculInitialize (VectorVectorDouble &y, int isimu, int ipgs) override
 Interface for AGibbs. More...
 
double getSimulate (VectorVectorDouble &y, double yk, double sk, int icase, int ipgs, int ivar, int iact, int iter) override
 
int checkGibbs (const VectorVectorDouble &y, int isimu, int ipgs) override
 
- Public Member Functions inherited from AGibbs
 AGibbs ()
 
 AGibbs (Db *db)
 
 AGibbs (Db *db, int npgs, int nvar, int nburn, int niter, int seed, int flag_order, bool flag_decay)
 
 AGibbs (const AGibbs &r)
 
AGibbsoperator= (const AGibbs &r)
 
virtual ~AGibbs ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Interface for AStringable. More...
 
virtual void update (VectorVectorDouble &y, int isimu, int ipgs, int iter)=0
 
virtual int covmatAlloc (bool verbose, bool verboseTimer=false)=0
 
virtual void cleanup ()
 
void init (int npgs, int nvar, int nburn, int niter, int seed=3241, int flag_order=0, bool flag_decay=true)
 
int run (VectorVectorDouble &y, int ipgs0=0, int isimu0=0, bool verboseTimer=false, bool flagCheck=false)
 
int getNvar () const
 
void setNvar (int nvar)
 
int getNpgs () const
 
void setNpgs (int npgs)
 
int getNburn () const
 
void setNburn (int nburn)
 
int getNiter () const
 
void setNiter (int niter)
 
int getFlagOrder () const
 
void setFlagOrder (int flagOrder)
 
bool getOptionStats () const
 
void setOptionStats (int option_stats)
 
DbgetDb () const
 
VectorVectorDouble allocY () const
 
void storeResult (const VectorVectorDouble &y, int isimu, int ipgs)
 
int getSampleNumber () const
 
int getSampleRank (int i) const
 
int getRank (int ipgs, int ivar) const
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 

Constructor & Destructor Documentation

GibbsMultiMono::GibbsMultiMono ( )
GibbsMultiMono::GibbsMultiMono ( Db db,
std::vector< Model * >  models,
double  rho 
)
GibbsMultiMono::GibbsMultiMono ( const GibbsMultiMono r)
GibbsMultiMono::~GibbsMultiMono ( )
virtual

Member Function Documentation

int GibbsMultiMono::calculInitialize ( VectorVectorDouble y,
int  isimu,
int  ipgs 
)
overridevirtual

Interface for AGibbs.

Initializes the Gibbs sampler for a set of inequalities

Returns
Error return code
Parameters
[in]yGaussian vector
[in]isimuRank of the simulation
[in]ipgsRank of the GS

Implements AGibbs.

int GibbsMultiMono::checkGibbs ( const VectorVectorDouble y,
int  isimu,
int  ipgs 
)
overridevirtual

Check/Show the facies against gaussian at wells

Returns
Error return code
Parameters
[in]yGaussian vector
[in]isimuRank of the simulation
[in]ipgsRank of the GS

Implements AGibbs.

Model* GibbsMultiMono::getModels ( int  ivar) const
inline
double GibbsMultiMono::getRho ( ) const
inline
double GibbsMultiMono::getSimulate ( VectorVectorDouble y,
double  yk,
double  sk,
int  icase,
int  ipgs,
int  ivar,
int  iact,
int  iter 
)
overridevirtual

Generate a simulated value

Parameters
y: Gaussian vector
yk: Kriged value
sk: Standard deviation
icase: Rank in the 'y' array
ipgs: Rank of the current GS
ivar: Rank of the current Variable
iact: Rank of the target sample (relative)
iter: Rank of the iteration
Returns
Simulated value

Implements AGibbs.

int GibbsMultiMono::getVariableNumber ( ) const
inline
GibbsMultiMono & GibbsMultiMono::operator= ( const GibbsMultiMono r)

The documentation for this class was generated from the following files: