gstlearn  0.3.3
CCC
SPDE.hpp File Reference
#include "gstlearn_export.hpp"
#include "geoslib_define.h"
#include "Enum/ESPDECalcMode.hpp"
#include "Basic/NamingConvention.hpp"
#include "LinearOp/PrecisionOpCs.hpp"
#include "LinearOp/PrecisionOpMultiConditional.hpp"

Classes

class  SPDE
 

Functions

GSTLEARN_EXPORT int krigingSPDE (Db *dbin, Db *dbout, Model *model, bool flag_est=true, bool flag_std=false, bool flag_varz=false, const AMesh *mesh=nullptr, int refineK=11, int border=8, bool verbose=false, const NamingConvention &namconv=NamingConvention("KrigingSPDE"))
 
GSTLEARN_EXPORT int simulateSPDE (Db *dbin, Db *dbout, Model *model, int nbsimu=1, const AMesh *mesh=nullptr, int refineK=11, int refineS=18, int border=8, int seed=121423, bool verbose=false, const NamingConvention &namconv=NamingConvention("SimuSPDE"))
 

Function Documentation

◆ krigingSPDE()

GSTLEARN_EXPORT int krigingSPDE ( Db dbin,
Db dbout,
Model model,
bool  flag_est,
bool  flag_std,
bool  flag_varz,
const AMesh mesh,
int  refineK,
int  border,
bool  verbose,
const NamingConvention namconv 
)

Perform the estimation by KRIGING under the SPDE framework

Parameters
dbinInput Db (must contain the variable to be estimated)
dboutOutput Db where the estimation must be performed
modelModel definition
flag_estTrue for the estimation
flag_stdTrue for the standard deviation of estimation error
flag_varzTrue for the variance of the estimator
meshMesh description (optional)
refineKRefinement factor for building internal meshing for Kriging
borderNumber of nodes used for extending the internal grid
verboseVerbose flag
namconvNaming convention
Returns
Error return code
Remarks
You can provide an already existing mesh. Otherwise an optimal mesh will be created
internally: one per structure constituting the Model for Kriging.
Each mesh is created using the Turbo Meshing facility... based on an internal grid.
This internal grid is rotated according to the rotation of the structure. Its mesh size
is derived from the range (per direction) by dividing it by the refinement factor.

◆ simulateSPDE()

GSTLEARN_EXPORT int simulateSPDE ( Db dbin,
Db dbout,
Model model,
int  nbsimu,
const AMesh mesh,
int  refineK,
int  refineS,
int  border,
int  seed,
bool  verbose,
const NamingConvention namconv 
)

Perform simulations under the SPDE framework

Parameters
dbinInput Db. If defined, the simulations are conditional; non conditional otherwise
dboutOutput Db where the simulations must be performed
modelModel definition
nbsimuNumber of simulations
meshMesh description (optional)
refineKRefinement factor for building internal meshing for Kriging
refineSRefinement factor for building internal meshing for Simulations
borderNumber of nodes used for extending the internal grid
seedSeed used for the Random Number generator
verboseVerbose flag
namconvNaming convention
Returns
Error return code
Remarks
You can provide an already existing mesh. Otherwise an optimal mesh will be created
internally: one per structure constituting the Model for Kriging and one for Simulating
Each mesh is created using the Turbo Meshing facility... based on an internal grid.
This internal grid is rotated according to the rotation of the structure. Its mesh size
is derived from the range (per direction) by dividing it by the refinement factor.