gstlearn  0.3.2
Geostatistics & Machine Learning toolbox
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
CalcSimuPostDemo.hpp File Reference
#include "gstlearn_export.hpp"
#include "Calculators/CalcSimuPost.hpp"
#include "Enum/EPostUpscale.hpp"
#include "Enum/EPostStat.hpp"
#include "Db/DbGrid.hpp"
#include "Basic/NamingConvention.hpp"
#include "Basic/VectorNumT.hpp"

Classes

class  CalcSimuPostDemo
 

Functions

GSTLEARN_EXPORT int simuPostDemo (Db *dbin, DbGrid *dbout, const VectorString &names, bool flag_match=false, const EPostUpscale &upscale=EPostUpscale::fromKey("MEAN"), const std::vector< EPostStat > &stats=EPostStat::fromKeys({"MEAN"}), bool verbose=false, int rank_check=0, const NamingConvention &namconv=NamingConvention("Post"))
 

Function Documentation

◆ simuPostDemo()

GSTLEARN_EXPORT int simuPostDemo ( Db dbin,
DbGrid dbout,
const VectorString names,
bool  flag_match,
const EPostUpscale &  upscale,
const std::vector< EPostStat > &  stats,
bool  verbose,
int  rank_check,
const NamingConvention namconv 
)
Parameters
dbinInput data base
dboutOutput data base (must be a Grid)
namesVector of simulation names
flag_matchTrue if the ranks of simulations must match; otherwise: product
upscaleOption within EPostUpscale
statsVector of options within EPostStat
verboseVerbose flag
rank_checkRank (1-based) of the target element to be checked (0: None; -1: All)
namconvNaming convention
Returns
Error code
Remarks
  • N : number of variables in 'dbin' defined by 'names' (index 'n')
  • k_1, ..., k_N : number of outcomes for each variable
  • K : number of multivariate simulations according to 'flag_match' (index 'k')
  • Transformation function 'F' from Z in R_N to Y in R_P (index 'p')

Description of the Flow Chart:

  1. Loop over cells of 'dbout' (index 'C')
  2. Loop over the simulations (index 'k')
  3. Find the active samples of 'dbin' in 'C' (index 's') and build table of Z_n^{k}(s)
  4. Apply the Transform function to table: Y_p^{k}(s)
  5. Upscale to the target cell according to upscaling rule '_upscale': up_Y_p^{k}(C)
  6. Compute statistics according to stat rule '_stats'