1.1.0
CCC
 
mlayers.cpp File Reference
#include "geoslib_old_f.h"
#include "Calculators/CalcMigrate.hpp"
#include "Variogram/Vario.hpp"
#include "Basic/Utilities.hpp"
#include "Basic/OptDbg.hpp"
#include "Model/Model.hpp"
#include "Neigh/ANeigh.hpp"
#include "Db/Db.hpp"
#include "Db/DbGrid.hpp"
#include <math.h>

Classes

struct  LMlayers
 

Functions

int multilayers_kriging (Db *dbin, DbGrid *dbout, Model *model, ANeigh *neigh, int flag_same, int flag_z, int flag_vel, int flag_cumul, int flag_ext, int flag_std, int flag_bayes, int irf_rank, int match_time, int dim_prior, double *prior_mean, double *prior_vars, int colrefd, int colreft, int colrefb, int verbose)
 
int multilayers_vario (Db *dbin, DbGrid *dbout, Vario *vario, int nlayers, int flag_vel, int flag_ext, int irf_rank, int match_time, int colrefd, int colreft, int verbose)
 
int multilayers_get_prior (Db *dbin, DbGrid *dbout, Model *model, int flag_same, int flag_vel, int flag_ext, int irf_rank, int match_time, int colrefd, int colreft, int colrefb, int verbose, int *npar_arg, double **mean, double **vars)
 

Function Documentation

int multilayers_get_prior ( Db dbin,
DbGrid dbout,
Model model,
int  flag_same,
int  flag_vel,
int  flag_ext,
int  irf_rank,
int  match_time,
int  colrefd,
int  colreft,
int  colrefb,
int  verbose,
int *  npar_arg,
double **  mean,
double **  vars 
)

Multi-layers get the mean and prior matrices for Bayesian prior

Returns
Error return code
Parameters
[in]dbinInput Db structure
[in]dboutOutput Db structure
[in]modelModel structure
[in]flag_same1 if input and output files coincide
[in]flag_vel1 if work is performed in Velocity, 0 for Depth
[in]flag_ext1 if external drift must be used; 0 otherwise
[in]irf_rankRank of the Intrinsic Random Function (0 or 1)
[in]match_time1 if external drift matches time; 0 otherwise
[in]colrefdRank of the reference Depth variable in Dbout
[in]colreftRank of the reference Time variable in Dbout
[in]colrefbRank of the Bottom Depth variable in Dbout (or -1)
[in]verboseVerbose option
[out]npar_argNumber of drift terms
[out]meanArray of means
[out]varsArray of variances
int multilayers_kriging ( Db dbin,
DbGrid dbout,
Model model,
ANeigh neigh,
int  flag_same,
int  flag_z,
int  flag_vel,
int  flag_cumul,
int  flag_ext,
int  flag_std,
int  flag_bayes,
int  irf_rank,
int  match_time,
int  dim_prior,
double *  prior_mean,
double *  prior_vars,
int  colrefd,
int  colreft,
int  colrefb,
int  verbose 
)

Multi-layers architecture estimation

Returns
Error return code
Parameters
[in]dbinInput Db structure
[in]dboutOutput Db structure
[in]modelModel structure
[in]neighANeigh structure
[in]flag_same1 if input and output files coincide
[in]flag_z1 if the output must be converted back into depth
[in]flag_vel1 if work is performed in Velocity, 0 for Depth
[in]flag_cumul1 if work is performed in Depth; 0 in Thickness
[in]flag_ext1 if external drift must be used; 0 otherwise
[in]flag_std1 if the estimation error must be calculated
[in]flag_bayes1 if the Bayesian hypothesis is used on drift coeffs
[in]irf_rankRank of the Intrinsic Random Function (0 or 1)
[in]match_time1 if external drift matches time; 0 otherwise
[in]dim_priorDimension of the prior information (for verification)
[in]prior_meanVector of prior means for drift coefficients
[in]prior_varsVector of prior variances for drift coefficients
[in]colrefdRank of the reference Depth variable in Dbout
[in]colreftRank of the reference Time variable in Dbout
[in]colrefbRank of the Bottom Depth variable in Dbout (or -1)
[in]verboseVerbose option
int multilayers_vario ( Db dbin,
DbGrid dbout,
Vario vario,
int  nlayers,
int  flag_vel,
int  flag_ext,
int  irf_rank,
int  match_time,
int  colrefd,
int  colreft,
int  verbose 
)

Multi-layers architecture experimental variogram

Returns
Error return code
Parameters
[in]dbinInput Db structure
[in]dboutOutput Db structure
[in]varioVario structure
[in]nlayersNumber of layers
[in]flag_vel1 if work is performed in Velocity, 0 for Depth
[in]flag_ext1 if external drift must be used; 0 otherwise
[in]irf_rankRank of the Intrinsic Random Function (0 or 1)
[in]match_time1 if external drift matches time; 0 otherwise
[in]colrefdRank of the reference Depth variable in Dbout
[in]colreftRank of the reference Time variable in Dbout
[in]verbose1 for a verbose option