#include <AGibbs.hpp>
Public Member Functions | |
| 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) | |
| AGibbs & | operator= (const AGibbs &r) |
| virtual | ~AGibbs () |
| virtual String | toString (const AStringFormat *strfmt=nullptr) const override |
| Interface for AStringable. More... | |
| virtual int | calculInitialize (VectorVectorDouble &y, int isimu, int ipgs)=0 |
| Interface for AGibbs. More... | |
| virtual void | update (VectorVectorDouble &y, int isimu, int ipgs, int iter)=0 |
| virtual int | covmatAlloc (bool verbose, bool verboseTimer=false)=0 |
| virtual double | getSimulate (VectorVectorDouble &y, double yk, double sk, int icase, int ipgs, int ivar, int iact, int iter)=0 |
| virtual int | checkGibbs (const VectorVectorDouble &y, int isimu, int ipgs)=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) |
| Db * | getDb () 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) | |
| AStringable & | operator= (const AStringable &r) |
| virtual | ~AStringable () |
| virtual void | display (const AStringFormat *strfmt=nullptr) const final |
| virtual void | display (int level) const final |
| AGibbs::AGibbs | ( | ) |
| AGibbs::AGibbs | ( | Db * | db | ) |
| AGibbs::AGibbs | ( | Db * | db, |
| int | npgs, | ||
| int | nvar, | ||
| int | nburn, | ||
| int | niter, | ||
| int | seed, | ||
| int | flag_order, | ||
| bool | flag_decay | ||
| ) |
| AGibbs::AGibbs | ( | const AGibbs & | r | ) |
|
virtual |
| VectorVectorDouble AGibbs::allocY | ( | ) | const |
Returns a Vector of Vector Double used to store one simulation. Its first dimension is set to 'npgs' * 'nvar' Its second dimension if set to the number of samples
|
pure virtual |
Interface for AGibbs.
Implemented in GibbsMultiMono, and GibbsMulti.
|
pure virtual |
Implemented in GibbsMultiMono, and GibbsMulti.
|
inlinevirtual |
Reimplemented in GibbsMMulti.
|
pure virtual |
Implemented in GibbsUPropMono, GibbsUMultiMono, GibbsUMulti, and GibbsMMulti.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| int AGibbs::getRank | ( | int | ipgs, |
| int | ivar | ||
| ) | const |
| int AGibbs::getSampleNumber | ( | ) | const |
| int AGibbs::getSampleRank | ( | int | i | ) | const |
|
pure virtual |
Implemented in GibbsMultiMono, and GibbsMulti.
| void AGibbs::init | ( | int | npgs, |
| int | nvar, | ||
| int | nburn, | ||
| int | niter, | ||
| int | seed = 3241, |
||
| int | flag_order = 0, |
||
| bool | flag_decay = true |
||
| ) |
| int AGibbs::run | ( | VectorVectorDouble & | y, |
| int | ipgs0 = 0, |
||
| int | isimu0 = 0, |
||
| bool | verboseTimer = false, |
||
| bool | flagCheck = false |
||
| ) |
Simulate a vector for the current 'ipgs' and current 'isimu'
| y | Simulation vector (used in input and output) |
| ipgs0 | Rank of the current 'pgs' |
| isimu0 | Rank of the current simulation |
| verboseTimer | Verbose option for time consumption |
| flagCheck | True if the checks must be performed |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void AGibbs::storeResult | ( | const VectorVectorDouble & | y, |
| int | isimu, | ||
| int | ipgs | ||
| ) |
Store the Gaussian array in ELoc::GAUS variable. This should be performed once for all GS and all variables
| y | The Gaussian vector to be stored |
| isimu | Rank of the simulation |
| ipgs | Rank of the GS |
|
overridevirtual |
Interface for AStringable.
Reimplemented from AStringable.
|
pure virtual |
Implemented in GibbsUPropMono, GibbsUMultiMono, GibbsUMulti, and GibbsMMulti.