1.4.0
CCC
 
CalcSimuPost.cpp File Reference

Functions

int simuPost (Db *dbin, DbGrid *dbout, const VectorString &names, bool flag_match, const EPostUpscale &upscale, const std::vector< EPostStat > &stats, bool verbose, const VectorInt &check_targets, int check_level, const NamingConvention &namconv)
 

Function Documentation

◆ simuPost()

int simuPost ( Db dbin,
DbGrid dbout,
const VectorString names,
bool  flag_match,
const EPostUpscale &  upscale,
const std::vector< EPostStat > &  stats,
bool  verbose,
const VectorInt check_targets,
int  check_level,
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
check_targetsRank (1-based) of the target element to be checked (0: None; -1: All)
check_level0: Statistics; 1: Sample Selection; 2: Iteration definition
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'