1.8.0
CCC
 
Loading...
Searching...
No Matches
gstlrn::AGibbs Class Referenceabstract

#include <AGibbs.hpp>

Inheritance diagram for gstlrn::AGibbs:
gstlrn::AStringable gstlrn::GibbsMulti gstlrn::GibbsMultiMono gstlrn::GibbsMMulti gstlrn::GibbsUMulti gstlrn::GibbsUMultiMono gstlrn::GibbsUPropMono

Public Member Functions

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

Constructor & Destructor Documentation

◆ AGibbs() [1/4]

gstlrn::AGibbs::AGibbs ( )

◆ AGibbs() [2/4]

gstlrn::AGibbs::AGibbs ( Db db)

◆ AGibbs() [3/4]

gstlrn::AGibbs::AGibbs ( Db db,
Id  npgs,
Id  nvar,
Id  nburn,
Id  niter,
Id  seed,
Id  flag_order,
bool  flag_decay 
)

◆ AGibbs() [4/4]

gstlrn::AGibbs::AGibbs ( const AGibbs r)

◆ ~AGibbs()

gstlrn::AGibbs::~AGibbs ( )
virtual

Member Function Documentation

◆ allocY()

gstlrn::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

Returns

◆ calculInitialize()

virtual Id gstlrn::AGibbs::calculInitialize ( 1 &  y,
Id  isimu,
Id  ipgs 
)
pure virtual

Interface for AGibbs.

Implemented in gstlrn::GibbsMulti, and gstlrn::GibbsMultiMono.

◆ checkGibbs()

virtual Id gstlrn::AGibbs::checkGibbs ( const 1 &  y,
Id  isimu,
Id  ipgs 
)
pure virtual

◆ cleanup()

virtual void gstlrn::AGibbs::cleanup ( )
inlinevirtual

Reimplemented in gstlrn::GibbsMMulti.

◆ covmatAlloc()

virtual Id gstlrn::AGibbs::covmatAlloc ( bool  verbose,
bool  verboseTimer = false 
)
pure virtual

◆ getDb()

Db * gstlrn::AGibbs::getDb ( ) const
inline

◆ getFlagOrder()

Id gstlrn::AGibbs::getFlagOrder ( ) const
inline

◆ getNburn()

Id gstlrn::AGibbs::getNburn ( ) const
inline

◆ getNiter()

Id gstlrn::AGibbs::getNiter ( ) const
inline

◆ getNpgs()

Id gstlrn::AGibbs::getNpgs ( ) const
inline

◆ getNSample()

Id gstlrn::AGibbs::getNSample ( ) const

◆ getNvar()

Id gstlrn::AGibbs::getNvar ( ) const
inline

◆ getOptionStats()

bool gstlrn::AGibbs::getOptionStats ( ) const
inline

◆ getRank()

Id gstlrn::AGibbs::getRank ( Id  ipgs,
Id  ivar 
) const

◆ getSampleRank()

Id gstlrn::AGibbs::getSampleRank ( Id  i) const

◆ getSimulate()

virtual double gstlrn::AGibbs::getSimulate ( 1 &  y,
double  yk,
double  sk,
Id  icase,
Id  ipgs,
Id  ivar,
Id  iact,
Id  iter 
)
pure virtual

◆ init()

void gstlrn::AGibbs::init ( Id  npgs,
Id  nvar,
Id  nburn,
Id  niter,
Id  seed = 3241,
Id  flag_order = 0,
bool  flag_decay = true 
)

◆ operator=()

AGibbs & gstlrn::AGibbs::operator= ( const AGibbs r)

◆ run()

Id gstlrn::AGibbs::run ( 1 &  y,
Id  ipgs0 = 0,
Id  isimu0 = 0,
bool  verboseTimer = false,
bool  flagCheck = false 
)

Simulate a vector for the current 'ipgs' and current 'isimu'

Parameters
ySimulation vector (used in input and output)
ipgs0Rank of the current 'pgs'
isimu0Rank of the current simulation
verboseTimerVerbose option for time consumption
flagCheckTrue if the checks must be performed
Returns

◆ setFlagOrder()

void gstlrn::AGibbs::setFlagOrder ( Id  flagOrder)
inline

◆ setNburn()

void gstlrn::AGibbs::setNburn ( Id  nburn)
inline

◆ setNiter()

void gstlrn::AGibbs::setNiter ( Id  niter)
inline

◆ setNpgs()

void gstlrn::AGibbs::setNpgs ( Id  npgs)
inline

◆ setNvar()

void gstlrn::AGibbs::setNvar ( Id  nvar)
inline

◆ setOptionStats()

void gstlrn::AGibbs::setOptionStats ( Id  option_stats)
inline

◆ storeResult()

void gstlrn::AGibbs::storeResult ( const 1 &  y,
Id  isimu,
Id  ipgs 
)

Store the Gaussian array in ELoc::GAUS variable. This should be performed once for all GS and all variables

Parameters
yThe Gaussian vector to be stored
isimuRank of the simulation
ipgsRank of the GS

◆ toString()

String gstlrn::AGibbs::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Interface for AStringable.

Reimplemented from gstlrn::AStringable.

◆ update()

virtual void gstlrn::AGibbs::update ( 1 &  y,
Id  isimu,
Id  ipgs,
Id  iter 
)
pure virtual

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