1.1.0
CCC
 
CalcSimuTurningBands Class Reference

#include <CalcSimuTurningBands.hpp>

Inheritance diagram for CalcSimuTurningBands:
ACalcSimulation ACalcInterpolator ACalcDbToDb ACalculator

Public Member Functions

 CalcSimuTurningBands (int nbsimu=0, int nbtuba=0, bool flag_check=false, int seed=4324324)
 
 CalcSimuTurningBands (const CalcSimuTurningBands &r)=delete
 
CalcSimuTurningBandsoperator= (const CalcSimuTurningBands &r)=delete
 
virtual ~CalcSimuTurningBands ()
 
int getNBtuba () const
 
void setNBtuba (int nbtuba)
 
int getNDirs () const
 
int simulate (Db *dbin, Db *dbout, Model *model, ANeigh *neigh, int icase, int flag_bayes=false, const VectorDouble &dmean=VectorDouble(), const MatrixSquareSymmetric &dcov=MatrixSquareSymmetric(), bool flag_pgs=false, bool flag_gibbs=false, bool flag_dgm=false)
 
int simulatePotential (Db *dbiso, Db *dbgrd, Db *dbtgt, Db *dbout, Model *model, double delta)
 
const MatrixSquareSymmetricgetBayesCov () const
 
void setBayesCov (const MatrixSquareSymmetric &bayes_cov)
 
const VectorDoublegetBayesMean () const
 
void setBayesMean (const VectorDouble &dmean)
 
bool isFlagCheck () const
 
void setFlagCheck (bool flag_check)
 
bool isFlagBayes () const
 
void setFlagBayes (bool flag_bayes)
 
void setFlagDgm (bool flag_dgm)
 
bool isFlagGibbs () const
 
void setFlagGibbs (bool flag_gibbs)
 
bool isFlagPgs () const
 
void setFlagPgs (bool flag_pgs)
 
int getIcase () const
 
void setIcase (int icase)
 
int getNbtuba () const
 
void setNbtuba (int nbtuba)
 
- Public Member Functions inherited from ACalcSimulation
 ACalcSimulation (int nbimu, int seed=4324324)
 
 ACalcSimulation (const ACalcSimulation &r)=delete
 
ACalcSimulationoperator= (const ACalcSimulation &r)=delete
 
virtual ~ACalcSimulation ()
 
int getSeed () const
 
int getNbSimu () const
 
void setSeed (int seed)
 
void setNbSimu (int nbsimu)
 
- Public Member Functions inherited from ACalcInterpolator
 ACalcInterpolator ()
 
 ACalcInterpolator (const ACalcInterpolator &r)=delete
 
ACalcInterpolatoroperator= (const ACalcInterpolator &r)=delete
 
virtual ~ACalcInterpolator ()
 
void setModel (Model *model)
 
void setNeigh (ANeigh *neigh)
 
ModelgetModel () const
 
ANeighgetNeigh () const
 
bool hasModel (bool verbose=true) const
 
bool hasNeigh (bool verbose=true) const
 
- Public Member Functions inherited from ACalcDbToDb
 ACalcDbToDb (bool mustShareSameSpaceDimension=true)
 
 ACalcDbToDb (const ACalcDbToDb &r)=delete
 
ACalcDbToDboperator= (const ACalcDbToDb &r)=delete
 
virtual ~ACalcDbToDb ()
 
void setDbin (Db *dbin)
 
void setDbout (Db *dbout)
 
void setNamingConvention (const NamingConvention &namconv)
 
void setMustShareSpaceDimension (bool mustShareSpaceDimension)
 
DbgetDbin () const
 
DbgetDbout () const
 
DbGridgetGridin () const
 
DbGridgetGridout () const
 
bool hasDbin (bool verbose=true) const
 
bool hasDbout (bool verbose=true) const
 
bool isGridIn (bool verbose=true) const
 
bool isGridOut (bool verbose=true) const
 
- Public Member Functions inherited from ACalculator
 ACalculator ()
 
 ACalculator (const ACalculator &r)=delete
 
ACalculatoroperator= (const ACalculator &r)=delete
 
virtual ~ACalculator ()
 
bool run ()
 

Static Public Member Functions

static bool isTurningBandsWorkable (const Model *model)
 

Constructor & Destructor Documentation

CalcSimuTurningBands::CalcSimuTurningBands ( int  nbsimu = 0,
int  nbtuba = 0,
bool  flag_check = false,
int  seed = 4324324 
)
CalcSimuTurningBands::CalcSimuTurningBands ( const CalcSimuTurningBands r)
delete
CalcSimuTurningBands::~CalcSimuTurningBands ( )
virtual

Member Function Documentation

const MatrixSquareSymmetric& CalcSimuTurningBands::getBayesCov ( ) const
inline
const VectorDouble& CalcSimuTurningBands::getBayesMean ( ) const
inline
int CalcSimuTurningBands::getIcase ( ) const
inline
int CalcSimuTurningBands::getNBtuba ( ) const
inline
int CalcSimuTurningBands::getNbtuba ( ) const
inline
int CalcSimuTurningBands::getNDirs ( ) const
inline
bool CalcSimuTurningBands::isFlagBayes ( ) const
inline
bool CalcSimuTurningBands::isFlagCheck ( ) const
inline
bool CalcSimuTurningBands::isFlagGibbs ( ) const
inline
bool CalcSimuTurningBands::isFlagPgs ( ) const
inline
bool CalcSimuTurningBands::isTurningBandsWorkable ( const Model model)
static

Check if the Model can be simulated using Turning Bands

Returns
True if the Model is valid; 0 otherwise
Parameters
[in]modelModel structure
CalcSimuTurningBands& CalcSimuTurningBands::operator= ( const CalcSimuTurningBands r)
delete
void CalcSimuTurningBands::setBayesCov ( const MatrixSquareSymmetric bayes_cov)
inline
void CalcSimuTurningBands::setBayesMean ( const VectorDouble dmean)
inline
void CalcSimuTurningBands::setFlagBayes ( bool  flag_bayes)
inline
void CalcSimuTurningBands::setFlagCheck ( bool  flag_check)
inline
void CalcSimuTurningBands::setFlagDgm ( bool  flag_dgm)
inline
void CalcSimuTurningBands::setFlagGibbs ( bool  flag_gibbs)
inline
void CalcSimuTurningBands::setFlagPgs ( bool  flag_pgs)
inline
void CalcSimuTurningBands::setIcase ( int  icase)
inline
void CalcSimuTurningBands::setNBtuba ( int  nbtuba)
inline
void CalcSimuTurningBands::setNbtuba ( int  nbtuba)
inline
int CalcSimuTurningBands::simulate ( Db dbin,
Db dbout,
Model model,
ANeigh neigh,
int  icase,
int  flag_bayes = false,
const VectorDouble dmean = VectorDouble(),
const MatrixSquareSymmetric dcov = MatrixSquareSymmetric(),
bool  flag_pgs = false,
bool  flag_gibbs = false,
bool  flag_dgm = false 
)

Perform the Simulation Process using the Turning Bands Method

Returns
Error return code
Parameters
[in]dbinInput Db structure
[in]dboutOutput Db structure
[in]modelModel structure
[in]neighANeigh structure
[in]icaseCase for PGS or -1
[in]flag_bayes1 if the Bayes option is switched ON
[in]dmeanArray giving the prior means for the drift terms
[in]dcovArray containing the prior covariance matrix for the drift terms
[in]flag_pgs1 if called from PGS
[in]flag_gibbs1 if called from Gibbs
[in]flag_dgm1 if the Discrete Gaussian Model is used
int CalcSimuTurningBands::simulatePotential ( Db dbiso,
Db dbgrd,
Db dbtgt,
Db dbout,
Model model,
double  delta 
)

Perform the (non-conditional) Simulation(s) using the Turning Bands Method

Returns
Error return code
Parameters
[in]dbisoIsovalues Db structure
[in]dbgrdGradient Db structure
[in]dbtgtTangent Db structure
[in]dboutOutput Db structure
[in]modelModel structure
[in]deltaValue of the increment

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