Shift Operator for performing the basic tasks of SPDE. More...
Namespaces | |
namespace | SerializeNeutralFile |
Classes | |
class | AAnam |
class | AArray |
class | ABiTargetCheck |
class | ACalcDbToDb |
class | ACalcDbVarCreator |
class | ACalcInterpolator |
class | ACalcSimulation |
class | ACalculator |
class | ACholesky |
class | ACov |
Class containing the Covariance part of the Model. More... | |
class | ACovFunc |
class | ACovFuncWithAutoDiff |
class | ACovGradient |
class | ADrift |
This class describes one basic Drift Function. More... | |
class | AEnum |
class | AException |
class | AFunction |
class | AFunctional |
class | AGibbs |
class | ALikelihood |
class | ALinearOp |
class | ALinearOpEigenCG |
class | ALinearOpMulti |
class | AMatrix |
TODO : Transform into template for storing something else than double. More... | |
class | AMesh |
class | AModelFitSills |
Class which, starting from experimental quantities, enables fitting the sills of all Covariance parts of a Model. More... | |
class | AModelOptim |
class | AModelOptimFactory |
class | AnamContinuous |
class | AnamContinuousFit |
class | AnamDiscrete |
class | AnamDiscreteDD |
class | AnamDiscreteIR |
class | AnamEmpirical |
class | AnamHermite |
class | AnamUser |
class | ANeigh |
Class to define the a subset of an input Data Base ('Db') called a Neighborhood. This Neighborhood feature is invoked when the geostatistical processing cannot handle the whole data set (usually due to core limitations) and requires a fine selection of the most suitable part of the data set. More... | |
class | ANoStat |
class | AOF |
class | APolynomial |
class | argClass |
class | Array |
class | ASerializable |
class | AShape |
class | AShiftOp |
class | ASimulable |
class | ASimulableEigenCG |
This class extends ASimulable to make it working with Eigen conjugate gradient algorithm. More... | |
class | ASpace |
Base classe for space definitions. More... | |
class | ASpaceObject |
class | ASpaceShape |
class | ASPDEOp |
class | AStringable |
class | AStringFormat |
class | AVario |
class | Ball |
class | BImage |
class | BImageStringFormat |
struct | binaryFileHeader |
class | BiTargetCheckBench |
class | BiTargetCheckCell |
class | BiTargetCheckCode |
class | BiTargetCheckDate |
class | BiTargetCheckDistance |
class | BiTargetCheckFaults |
class | BiTargetCheckGeometry |
class | BooleanObject |
class | CalcAnamTransform |
class | CalcGlobal |
class | CalcGridToGrid |
class | CalcImage |
class | CalcKriging |
class | CalcKrigingFactors |
class | CalcKrigingSimpleCase |
class | CalcMigrate |
class | CalcSimpleInterpolation |
class | CalcSimuEden |
class | CalcSimuFFT |
class | CalcSimuPartition |
class | CalcSimuPost |
class | CalcSimuPostDemo |
class | CalcSimuPostPropByLayer |
class | CalcSimuRefine |
class | CalcSimuSubstitution |
class | CalcSimuTurningBands |
class | CalcStatistics |
class | CGParam |
class | Cheb_Elem |
class | Chebychev |
class | CholeskyDense |
class | CholeskySparse |
class | ClassicalPolynomial |
class | Cone |
class | ConsItem |
class | Constraints |
class | Convolution |
class | CorAniso |
This class describes an elementary covariance. More... | |
class | CorGneiting |
This class describes the Gneiting correlation function. More... | |
class | CorMatern |
This class describes the Gneiting correlation function. More... | |
class | CovAniso |
This class describes an elementary covariance. More... | |
class | CovAnisoList |
This class describes the Covariance as a list of elementary covariances (see CovAniso.hpp for more details) where the calculation rule is simple: the returned value is the sum of each elementary (active) covariance function. More... | |
class | CovBase |
class | CovBesselJ |
class | CovCalcMode |
class | CovCauchy |
class | CovContext |
class | CovCosExp |
class | CovCosinus |
class | CovCubic |
class | CovDiffusionAdvection |
class | CovExponential |
class | CovFactory |
class | CovGamma |
class | CovGaussian |
class | CovGC1 |
class | CovGC3 |
class | CovGC5 |
class | CovGCspline |
class | CovGCspline2 |
class | CovGeometric |
class | CovGradientFunctional |
class | CovGradientGeneric |
This class describes the Covariance to be used when processing Data and its gradient components. This covariance is based on the initial covariance of the Data and derives the simple and cross covariances of its gradient components. It uses Numerical Derivation and therefore is suitable whatever the type of covariance used for the Data variable. More... | |
class | CovGradientNumerical |
class | CovHelper |
class | CovInternal |
class | CovLinear |
class | CovLinearSph |
class | CovList |
This class describes the Covariance as a list of elementary covariances (see CovBase.hpp for more details) where the calculation rule is simple: the returned value is the sum of each elementary (active) covariance function. More... | |
class | CovLMCAnamorphosis |
class | CovLMCConvolution |
class | CovLMCTapering |
class | CovLMGradient |
class | CovMarkov |
class | CovMatern |
class | CovNugget |
class | CovParamId |
class | CovPenta |
class | CovPoisson |
class | CovPower |
class | CovProportional |
class | CovReg1D |
class | CovSincard |
class | CovSpherical |
class | CovStable |
class | CovStorkey |
class | CovTriangle |
class | CovWendland0 |
class | CovWendland1 |
class | CovWendland2 |
class | CSVformat |
struct | CTables |
class | Cylinder |
class | Db |
Class containing the Data Information. More... | |
class | DbGraphO |
Class containing the Data Information organized as a Oriented Graph. More... | |
class | DbGrid |
Class containing the Data Information organized as a Regular Grid. More... | |
class | DbH |
class | DbHelper |
class | DbLine |
Class containing the Data Information organized as a set of Lines. More... | |
class | DbMeshStandard |
Class containing the Data Information organized as a General Meshing. More... | |
class | DbMeshTurbo |
Class containing the Data Information organized as a Turbo Meshing. More... | |
class | DbStringFormat |
class | dec_separator |
struct | Def_Convolution |
struct | Def_Locator |
struct | Def_Tapering |
struct | DerivCache |
struct | DimLoop |
class | DirParam |
Class containing the definition of a Direction used for the calculation of the experimental Spatial Characteristics as calculated experimentally from the data (contained in a Db). This class corresponds to one item of the list of criteria stored in VarioParam and use for the calculation of Vario. More... | |
struct | Disc_Structure |
class | DriftF |
class | DriftFactory |
class | DriftList |
This class provides the information on Drift part of the Model. The drift plays the role of the average of the target Random Function which may be constant or vary as a function with low frequency variations (by opposition to the complementary part of the Spatial Characteristics which is described by its Covariance) More... | |
class | DriftM |
class | ElemNostat |
class | Faults |
class | FileLAS |
class | FileVTK |
class | FracDesc |
class | FracEnviron |
class | FracFamily |
class | FracFault |
class | FracList |
class | FunctionalSpirale |
class | GaussianProcess |
class | GeometryHelper |
class | GH |
class | GibbsFactory |
class | GibbsMMulti |
class | GibbsMulti |
class | GibbsMultiMono |
class | GibbsUMulti |
class | GibbsUMultiMono |
class | GibbsUPropMono |
class | Global_Result |
class | GlobalEnvironment |
class | Grid |
class | GridArcGis |
class | GridBmp |
class | GridEclipse |
class | GridF2G |
class | GridIfpEn |
class | GridIrap |
class | GridXYZ |
class | GridZycor |
class | HessianOp |
class | ICloneable |
class | Indirection |
class | Interval |
class | InvNuggetOp |
class | IOptimCost |
class | IProj |
class | ISkinFunctions |
struct | Keypair |
class | KNN |
class | Koption |
class | KrigingAlgebra |
Perform the Algebra for Kriging and CoKriging. More... | |
class | KrigingAlgebraSimpleCase |
class | KrigingSystem |
class | KrigingSystemSimpleCase |
class | KrigOpt |
class | Krigtest_Res |
class | Likelihood |
class | Limits |
class | ListParams |
struct | LMlayers |
struct | Local_Relem |
struct | Local_Split |
class | LocalSkin |
class | LogStats |
class | LowerTriangularRange |
class | MatchPattern |
class | MatrixDense |
class | MatrixFactory |
class | MatrixInt |
class | MatrixSparse |
class | MatrixSquare |
class | MatrixSymmetric |
class | MatrixSymmetricSim |
class | MatrixT |
class | MeshEStandard |
class | MeshETurbo |
class | MeshSpherical |
class | MeshSphericalExt |
class | Model |
Class containing the Model Information describing the formal Spatial (or Temporal) Characteristics of the (set of) random variable(s) under study. More... | |
class | ModelBoolean |
class | ModelCovList |
Class containing the ModelCovList Information describing the formal Spatial (or Temporal) Characteristics of the (set of) random variable(s) under study. More... | |
class | ModelFitSillsVario |
Class which, starting from an experimental variogram, enables fitting the sills of all Covariance parts of a Model. More... | |
class | ModelFitSillsVMap |
Class which, starting from an experimental variogram, enables fitting the sills of all Covariance parts of a Model. More... | |
class | ModelGeneric |
Class containing the Model Information describing the formal Spatial (or Temporal) Characteristics of the (set of) random variable(s) under study. More... | |
class | ModelOptimParam |
class | ModelOptimVario |
Class which, starting from an experimental variogram, enables fitting the various parameters of a Covariance part of a Model. More... | |
class | ModelOptimVMap |
Class which, starting from an experimental variogram, enables fitting the various parameters of a Covariance part of a Model. More... | |
struct | Modif_Categorical |
class | NamingConvention |
class | NeighBench |
Neighborhood definition by Bench. More... | |
class | NeighCell |
Neighborhood definition by Cell. More... | |
class | NeighImage |
Image Neighborhood definition. More... | |
class | NeighMoving |
Moving Neighborhood definition. More... | |
class | NeighUnique |
Unique Neighborhood definition. More... | |
class | NF_Triplet |
class | Node |
class | NoStatArray |
class | NoStatFunctional |
class | OptCst |
class | OptCustom |
class | OptDbg |
class | Optim |
class | OptimCostBinary |
class | OptimCostColored |
class | Option_AutoFit |
class | Option_VarioFit |
class | ParamId |
struct | ParamIdEqual |
struct | ParamIdHash |
class | ParamInfo |
Definition of the generic parameter. More... | |
class | PCA |
class | PCAStringFormat |
class | Pencil |
class | Plane |
class | PolyElem |
class | Polygons |
class | PolyLine2D |
struct | PolyPoint2D |
class | PPMT |
class | PrecisionOp |
class | PrecisionOpMatrix |
class | PrecisionOpMulti |
class | PrecisionOpMultiConditional |
class | PrecisionOpMultiMatrix |
class | ProjComposition |
class | ProjConvolution |
class | Projection |
class | ProjMatrix |
class | ProjMulti |
class | ProjMultiMatrix |
class | ProjZero |
class | PropDef |
struct | Props |
class | PtrGeos |
struct | QSimu |
class | RankHandler |
Class returning the list of sample IDs for a quick search within a Db. More... | |
struct | RefPt |
struct | RefStats |
struct | Reg_Coor |
class | Regression |
class | Rotation |
TODO : public ASpaceObject. More... | |
class | Rule |
class | RuleProp |
class | RuleShadow |
class | RuleShift |
class | RuleStringFormat |
class | ScaleOp |
struct | SegYArg |
class | Selectivity |
class | ShapeEllipsoid |
class | ShapeHalfEllipsoid |
class | ShapeHalfParaboloid |
class | ShapeHalfSinusoid |
class | ShapeParaboloid |
class | ShapeParallelepiped |
class | ShapeParameter |
class | ShiftOpMatrix |
class | ShiftOpStencil |
This is an implementation of ShiftOp dedicated to case where: More... | |
class | SimuBoolean |
Class for performing Boolean simulation. More... | |
class | SimuBooleanParam |
class | SimuFFTParam |
class | SimuPartitionParam |
class | SimuRefineParam |
class | SimuSpectral |
class | SimuSpherical |
class | SimuSphericalParam |
class | SimuSubstitutionParam |
class | Skin |
class | SpaceComposite |
class | SpacePoint |
class | SpaceRN |
class | SpaceSN |
class | SpaceTarget |
class | SpatialIndices |
class | SPDE |
struct | SPDE_Matelem |
struct | SPDE_Option |
struct | SPDE_SS_Option |
class | SPDEOp |
class | SPDEOpMatrix |
class | SPDEParam |
Definition of the parameters used within SPDE. More... | |
class | SphTriangle |
class | Spill_Res |
struct | SPIMG |
struct | spSim |
struct | ST_Seismic_Neigh |
struct | Stack |
struct | StatResults |
class | StdoutRedirect |
struct | StrMod |
class | Style |
The Style class contains all the recommended styles considerations. It has no special functionalities. This is only a template class that developers can mimic. More... | |
struct | SubPlan |
struct | SubPlanes |
struct | t_btree |
struct | t_nheap |
struct | t_nodedata |
class | Table |
class | TabNoStat |
class | TabNoStatCovAniso |
class | TabNoStatSills |
class | Tapering |
class | Tensor |
TODO : public ASpaceObject. More... | |
class | TestInheritance |
class | Timer |
struct | traceHead |
struct | TripletND |
class | TurboOptimizer |
Turbo Optimizer for a specific 2-D environment,. More... | |
class | TurningBandDirection |
class | TurningBandOperate |
class | Vario |
Class containing the Spatial Characteristics as calculated experimentally from the data (contained in a Db). More... | |
struct | Vario_Order |
class | VarioParam |
Class containing the definition of the criteria for calculating the Spatial (and Temporal) Characteristics from samples contained in a Db. More... | |
class | VCloud |
Class containing the Variogram Cloud which uses an DbGrid provided by the user This function simply calculate and add the results as new field in this DbGrid. More... | |
class | Vecchia |
class | VectorHelper |
class | VectorNumT |
class | VectorT |
class | VH |
class | VMap |
Class containing the Variogram Map which uses an DbGrid provided by the user This function simply calculate and add the results as new field in this DbGrid. More... | |
Typedefs | |
using | DataFrame = std::map< std::string, std::vector< double > > |
typedef std::chrono::high_resolution_clock | hrc |
typedef std::chrono::milliseconds | ms |
typedef std::chrono::duration< double > | sec |
typedef double(* | operate_function) (double) |
typedef VectorT< UChar > | VectorBool |
typedef VectorT< String > | VectorString |
typedef std::function< double(const SpacePoint &, const SpacePoint &, Id, Id, const CovCalcMode *calcmode)> | covmaptype |
typedef std::unordered_map< ParamId, std::shared_ptr< ANoStat >, ParamIdHash, ParamIdEqual > | mapNoStat |
typedef struct Local_Relem | Relem |
typedef struct Local_Split | Split |
typedef std::string | String |
typedef unsigned char | UChar |
using | Id = long |
Main type for gstlearn 64-bits integers, to be used in priority when an integer is needed. | |
using | I32 = int |
Secondary integer type. To be used instead of "int". No "int" should be voluntarily introduced in gstlearn. | |
typedef std::span< double > | vect |
using | constvectint = std::span< const Id > |
using | vectint = std::span< Id > |
using | Sp = Eigen::SparseMatrix< double > |
typedef Eigen::SparseMatrix< double >::StorageIndex | StorageIndex |
typedef std::vector< const AMesh * > | VectorMeshes |
typedef std::vector< ECov > | VectorECov |
typedef std::shared_ptr< const ASpace > | ASpaceSharedPtr |
typedef std::vector< ASpaceSharedPtr > | ASpaceSharedPtrVector |
Functions | |
Id | DisjunctiveKriging (Db *db, AAnam *anam, Selectivity *selectivity, const VectorString &name_est, const VectorString &name_std, const NamingConvention &namconv=NamingConvention("DK")) |
Id | ConditionalExpectation (Db *db, AAnam *anam, Selectivity *selectivity=nullptr, const String &name_est="", const String &name_std="", bool flag_OK=false, double proba=TEST, Id nbsimu=0, const NamingConvention &namconv=NamingConvention("CE")) |
Id | UniformConditioning (Db *db, AAnam *anam, Selectivity *selectivity, const String &name_est, const String &name_varz, const NamingConvention &namconv=NamingConvention("UC")) |
Id | anamPointToBlock (AAnam *anam, Id verbose, double cvv, double coeff, double mu) |
Db * | createDbFromDataFrame (const DataFrame *dat, const VectorString &coordinates) |
GaussianProcess * | createModelFromData (const Db *dat, const VectorString &variables, const std::vector< ECov > &structs, bool addMeasurementError=false) |
trendSPDE (Db *dbin, Model *model, Id useCholesky=-1, const VectorMeshes *meshesK=nullptr, const ProjMultiMatrix *projInK=nullptr, const SPDEParam ¶ms=SPDEParam(), bool verbose=false) | |
Id | krigingSPDE (Db *dbin, Db *dbout, Model *model, bool flag_est=true, bool flag_std=false, Id useCholesky=-1, const VectorMeshes *meshesK=nullptr, const ProjMultiMatrix *projInK=nullptr, const VectorMeshes *meshesS=nullptr, const ProjMultiMatrix *projInS=nullptr, const ProjMultiMatrix *projOutK=nullptr, const ProjMultiMatrix *projOutS=nullptr, const SPDEParam ¶ms=SPDEParam(), bool verbose=false, const NamingConvention &namconv=NamingConvention("KrigingSPDE")) |
Id | simulateSPDE (Db *dbin, Db *dbout, Model *model, Id nbsimu=1, Id useCholesky=-1, const VectorMeshes *meshesK=nullptr, const ProjMultiMatrix *projInK=nullptr, const VectorMeshes *meshesS=nullptr, const ProjMultiMatrix *projInS=nullptr, const ProjMultiMatrix *projOutK=nullptr, const ProjMultiMatrix *projOutS=nullptr, const SPDEParam ¶ms=SPDEParam(), bool verbose=false, const NamingConvention &namconv=NamingConvention("SimuSPDE")) |
Id | simPGSSPDE (Db *dbin, Db *dbout, Model *model, const RuleProp &ruleprop, Id nbsimu=1, Id useCholesky=-1, const VectorMeshes *meshesK=nullptr, const ProjMultiMatrix *projInK=nullptr, const VectorMeshes *meshesS=nullptr, const ProjMultiMatrix *projInS=nullptr, const ProjMultiMatrix *projOutK=nullptr, const ProjMultiMatrix *projOutS=nullptr, const SPDEParam ¶ms=SPDEParam(), bool verbose=false, const NamingConvention &namconv=NamingConvention("SimPGSSPDE")) |
double | logLikelihoodSPDE (Db *dbin, Model *model, Id useCholesky=-1, const VectorMeshes *meshes=nullptr, const ProjMultiMatrix *projIn=nullptr, const SPDEParam ¶ms=SPDEParam(), bool verbose=false) |
void | throw_exp (const std::string &msg="", const std::string &file="", Id line=0) |
void | argumentTestInt (Id value) |
void | argumentTestDouble (double value) |
void | argumentTestVectorInt (const 1 &values) |
void | argumentTestVectorDouble (const 1 &values) |
void | argumentTestVectorVectorInt (const 1 &values) |
void | argumentTestVectorVectorDouble (const 1 &values) |
void | argumentTestString (const String &value) |
void | argumentTestVectorString (const VectorString &values) |
void | argumentTestIntOverload (Id value) |
void | argumentTestIntOverload (const 1 &values) |
void | argumentTestDoubleOverload (double value) |
void | argumentTestDoubleOverload (const 1 &values) |
void | argumentTestStringOverload (const String &value) |
void | argumentTestStringOverload (const VectorString &values) |
void | argumentTestEnum (const ETests &value) |
Id | argumentReturnInt (Id value) |
double | argumentReturnDouble (double value) |
argumentReturnVectorInt (const 1 &values) | |
argumentReturnVectorDouble (const 1 &values) | |
argumentReturnVectorVectorInt (const 1 &values) | |
argumentReturnVectorVectorDouble (const 1 &values) | |
void | argumentDefTestInt (Id argInt=2) |
void | argumentDefTestDbl (double argDbl=2.) |
void | argumentDefTestStr (const String &argstr="Default String") |
void | argumentDefTestVInt (const 1 &argVInt=1()) |
void | argumentDefTestVDbl (const 1 &argVDbl=1()) |
void | argumentDefTestVString (const VectorString &argVString=VectorString()) |
void | argumentDefTestVVInt (1 argVVInt=1()) |
void | argumentDefTestVVDbl (1 argVVDbl=1()) |
void | argumentTestMatrixDense (const MatrixDense &mat=MatrixDense()) |
void | argumentTestMatrixSquare (const MatrixSquare &mat=MatrixSquare()) |
void | argumentTestMatrixSymmetric (const MatrixSymmetric &mat=MatrixSymmetric()) |
MatrixDense | argumentReturnMatrix (Id nrows=2, Id ncols=3, Id seed=1312) |
void | argumentTestMatrixSparse (const MatrixSparse &mat=MatrixSparse()) |
MatrixSparse | argumentReturnMatrixSparse (Id nrows=2, Id ncols=3, double zeroPercent=0.1, Id seed=1356) |
void | messageFlush (const String &string) |
void | messerrFlush (const String &string) |
void | messerr (const char *format,...) |
void | message (const char *format,...) |
void | messageNoDiff (const char *format,...) |
void | mesArg (const char *title, Id current, Id nmax) |
bool | checkArg (const char *title, Id current, Id nmax) |
void | messageAbort (const char *format,...) |
void | mestitle (Id level, const char *format,...) |
void | mes_process (const char *string, Id ntot, Id iech) |
String | toTitle (Id level, const char *format,...) |
String | toMatrix (const String &title, const AMatrix &mat, bool flagOverride=false, bool flagSkipZero=false) |
String | toMatrix (const String &title, const VectorString &colnames, const VectorString &rownames, bool bycol, Id nrows, Id ncols, const 1 &tab, bool flagOverride=false, bool flagSkipZero=false) |
String | toMatrix (const String &title, const VectorString &colnames, const VectorString &rownames, bool bycol, Id nrows, Id ncols, const double *tab, bool flagOverride=false, bool flagSkipZero=false) |
String | toVector (const String &title, const 1 &tab, bool flagOverride=true) |
String | toVector (const String &title, const VectorString &tab, bool flagOverride=true) |
String | toVector (const String &title, constvect tab, bool flagOverride=true) |
String | toStr (const String &string, const EJustify &justify=EJustify::fromKey("RIGHT"), Id localSize=0) |
String | toDouble (double value, const EJustify &justify=EJustify::fromKey("RIGHT")) |
String | toInt (Id value, const EJustify &justify=EJustify::fromKey("RIGHT")) |
String | toInterval (double zmin, double zmax) |
VectorString | toVectorDouble (const 1 &values, const EJustify &justify=EJustify::fromKey("RIGHT")) |
void | tab_prints (const char *title, const char *string, Id ncol=1, const EJustify &justify=EJustify::fromKey("RIGHT")) |
void | tab_printg (const char *title, double value, Id ncol=1, const EJustify &justify=EJustify::fromKey("RIGHT")) |
void | tab_printd (const char *title, double value, Id ncol=1, const EJustify &justify=EJustify::fromKey("RIGHT")) |
void | tab_printi (const char *title, Id value, Id ncol=1, const EJustify &justify=EJustify::fromKey("RIGHT")) |
void | tab_print_rc (const char *title, Id mode, Id value, Id ncol=1, const EJustify &justify=EJustify::fromKey("RIGHT")) |
void | tab_print_rowname (const char *string, Id taille) |
void | print_matrix (const char *title, Id flag_limit, Id bycol, Id nx, Id ny, const double *sel, const double *tab) |
void | print_matrix (const char *title, Id flag_limit, const AMatrix &mat) |
void | print_trimat (const char *title, Id mode, Id neq, const double *tl) |
void | print_imatrix (const char *title, Id flag_limit, Id bycol, Id nx, Id ny, const double *sel, const Id *tab) |
void | print_vector (const char *title, Id flag_limit, Id ntab, const double *tab) |
void | print_vector (const char *title, Id flag_limit, Id ntab, const 1 &tab) |
void | print_ivector (const char *title, Id flag_limit, Id ntab, const Id *itab) |
void | print_ivector (const char *title, Id flag_limit, Id ntab, const 1 &itab) |
Id | FFTn (Id ndim, const 1 &dims, 1 &Re, 1 &Im, Id iSign=1, double scaling=1.) |
Array | evalCovFFTTimeSlice (const 1 &hmax, double time, Id N, const std::function< std::complex< double >(1, double)> &funcSpectrum) |
Array | evalCovFFTSpatial (const 1 &hmax, Id N, const std::function< double(const 1 &)> &funcSpectrum) |
void | fftshift (const 1 &dims, 1 &data) |
void | skipBOM (std::ifstream &ins) |
FILE * | gslFopen (const char *path, const char *mode) |
FILE * | gslFopen (const String &path, const String &mode) |
bool | gslFileExist (const char *path, const char *mode) |
bool | gslFileExist (const String &path, const String &mode) |
String | gslBaseName (const String &path, bool keepExtension=false) |
String | gslGetEnv (const String &name) |
std::istream & | gslSafeGetline (std::istream &is, String &t) |
template<typename T > | |
auto | enumerate (T &container) |
void | law_set_old_style (bool style) |
Id | law_get_random_seed (void) |
void | law_set_random_seed (Id seed) |
double | law_uniform (double mini=0., double maxi=1.) |
Id | law_int_uniform (Id mini, Id maxi) |
double | law_gaussian (double mean=0., double sigma=1.) |
double | law_exponential (double lambda=1.) |
double | law_gamma (double alpha, double beta=1.) |
double | law_df_poisson (Id i, double parameter) |
law_df_poisson_vec (1 is, double parameter) | |
Id | law_poisson (double parameter) |
double | law_stable_standard_agd (double alpha, double beta) |
double | law_stable_standard_a1gd (double beta) |
double | law_stable_standard_abgd (double alpha) |
double | law_stable_a (double alpha, double beta, double gamma, double delta) |
double | law_stable_a1 (double beta, double gamma, double delta) |
double | law_stable (double alpha, double beta, double gamma, double delta) |
Id | law_binomial (Id n, double p) |
double | law_beta1 (double parameter1, double parameter2) |
double | law_beta2 (double parameter1, double parameter2) |
double | law_df_gaussian (double value) |
double | law_dnorm (double value, double mean, double std) |
double | law_cdf_gaussian (double value) |
double | law_invcdf_gaussian (double value) |
double | law_gaussian_between_bounds (double binf, double bsup) |
double | law_df_bigaussian (1 &vect, 1 &mean, MatrixSymmetric &correl) |
double | law_df_quadgaussian (1 &vect, MatrixSymmetric &correl) |
double | law_df_multigaussian (1 &vect, MatrixSymmetric &correl) |
law_random_path (Id nech) | |
law_exp_sample (const double *tabin, Id mode, Id nvar, Id nechin, Id nechout, Id niter, Id nconst, double *consts, Id seed, double percent) | |
Id | sampleInteger (Id minit, Id maxi) |
Id | mvndst_infin (double low, double sup) |
void | mvndst (Id n, double *lower, double *upper, Id *infin, double *correl, Id maxpts, double abseps, double releps, double *error, double *value, Id *inform) |
void | mvndst2n (const double *lower, const double *upper, const double *means, double *correl, Id maxpts, double abseps, double releps, double *error, double *value, Id *inform) |
void | mvndst4 (double *lower, double *upper, const double *correl, Id maxpts, double abseps, double releps, double *error, double *value, Id *inform) |
Id | besselj_table (double x, double alpha, Id nb, double *b) |
double | besselj (double x, Id n) |
Id | besselk (double x, double alpha, Id nb, double *bk) |
double | loggamma (double parameter) |
double | ut_legendre (Id n, double v, bool flagNorm=true) |
ut_legendreVec (Id n, const 1 &vecin, bool flagNorm) | |
MatrixDense | ut_legendreMatNorm (Id n, const 1 &v) |
MatrixDense | ut_legendreAssociatedMat (Id l, const 1 &v, bool flagNorm=true) |
double | ut_flegendre (Id n, Id k0, double theta, bool flagNorm=true) |
double | ut_sphericalHarmonic (Id n, Id k, double theta, double phi) |
ut_sphericalHarmonicVec (Id n, Id k, 1 theta, 1 phi) | |
double | golden_search (double(*func_evaluate)(double test, void *user_data), void *user_data, double tolstop, double a0, double c0, double *test_loc, double *niter) |
Id | ut_chebychev_count (double(*func)(double, double, const 1 &), Cheb_Elem *cheb_elem, double x, const 1 &blin) |
Id | ut_chebychev_coeffs (double(*func)(double, double, const 1 &), Cheb_Elem *cheb_elem, const 1 &blin) |
void | ut_vandercorput (Id n, Id flag_sym, Id flag_rot, Id *ntri_arg, 1 &coord) |
Id | ut_icosphere (Id n, Id flag_rot, Id *ntri_arg, 1 &coord) |
double | ut_factorial (Id k) |
void | ut_log_factorial (Id nbpoly, double *factor) |
MatrixDense * | vanDerCorput (Id n, Id nd) |
MatrixDense | fillLegendreMatrix (const 1 &r, Id legendreOrder) |
Id | solve_P2 (double a, double b, double c, 1 &x) |
Id | solve_P3 (double a, double b, double c, double d, 1 &x) |
char * | mem_alloc_ (const char *call_file, size_t call_line, Id size, Id flag_fatal) |
char * | mem_calloc_ (const char *call_file, size_t call_line, Id size_t, Id size, Id flag_fatal) |
char * | mem_realloc_ (const char *call_file, size_t call_line, char *tab, Id size, Id flag_fatal) |
char * | mem_copy_ (const char *call_file, size_t call_line, char *tabin, Id size, Id flag_fatal) |
char * | mem_free_ (const char *call_file, size_t call_line, char *tab) |
double ** | mem_tab_free (double **tab, Id nvar) |
double ** | mem_tab_alloc (Id nvar, Id size, Id flag_fatal) |
unsigned long long | getTotalSystemMemory () |
double | distanceBetweenPolylines (const PolyLine2D &poly1, const PolyLine2D &poly2, const PolyPoint2D &pldist1, const PolyPoint2D &pldist2) |
Id | dbUnfoldPolyline (Db *db, const PolyLine2D &polyline, const NamingConvention &namconv=NamingConvention("Unfold")) |
Id | dbFoldPolyline (DbGrid *dbin, Db *dbout, const 1 &cols, const PolyLine2D &polyline, const NamingConvention &namconv=NamingConvention("Fold")) |
Id | dbFromPolylines (Db *db, const PolyLine2D &top, const PolyLine2D &bot, Id nb_neigh=0, bool flagMask=true, const NamingConvention &namconv=NamingConvention("Lines")) |
String | toUpper (const std::string_view string) |
String | toLower (const std::string_view string) |
void | toUpper (String &string) |
void | toLower (String &string) |
bool | matchKeyword (const String &string1, const String &string2, bool caseSensitive=true) |
bool | matchRegexp (const String &string1, const String &string2, bool caseSensitive=true) |
Id | getRankInList (const VectorString &list, const String &match, bool caseSensitive=true) |
Id | decodeInString (const String &symbol, const String &node, Id *facies, bool caseSensitive=true) |
Id | decodeInList (const VectorString &symbols, const String &node, Id *rank, Id *facies, bool caseSensitive=true) |
void | correctNamesForDuplicates (VectorString &list) |
void | correctNewNameForDuplicates (VectorString &list, Id rank) |
String | incrementStringVersion (const String &string, Id rank=1, const String &delim=".") |
String | concatenateString (const String &string, double value, const String &delim="-") |
String | concatenateStrings (const String &delimt=".", const String &string1="", const String &string2="", const String &string3="", const String &string4="") |
VectorString | generateMultipleNames (const String &radix, Id number, const String &delim="-") |
VectorString | expandList (const VectorString &list, const String &match, bool onlyOne=false) |
VectorString | expandList (const VectorString &list, const VectorString &matches) |
Id | getMaxStringSize (const VectorString &list) |
VectorString | separateKeywords (const String &code) |
Id | toInteger (const String &v) |
double | toDouble (const String &v, char dec='.') |
String | toString (Id value) |
String | toString (double value) |
Id | askInt (const String &text, Id defval=ITEST, bool authTest=false) |
double | askDouble (const String &text, double defval=TEST, bool authTest=false) |
Id | askBool (const String &text, bool defval=false) |
String | trimRight (const String &s, const String &t=SPACES) |
String | trimLeft (const String &s, const String &t=SPACES) |
String | trim (const String &s, const String &t=SPACES) |
String | erase (const String &s, const String &t=SPACES) |
decodeGridSorting (const String &string, const 1 &nx, bool verbose=false) | |
char * | gslStrcpy (char *dst, Id n, const char *src) |
void | gslStrcpy (String &dst, const String &src) |
void | gslStrcpy (String &dst, const char *src) |
char * | gslStrcat (char *dst, Id n, const char *src) |
void | gslStrcat (String &dst, const char *src) |
void | gslStrcat (String &dst, const String &src) |
Id | gslSPrintf (char *dst, Id n, const char *fmt,...) |
Id | gslSPrintf (String &dst, const char *fmt,...) |
Id | gslSPrintfCat (String &dst, const char *fmt,...) |
char * | gslStrtok (char *str, const char *delim) |
Id | gslScanf (const char *fmt,...) |
Id | gslSScanf (const char *str, const char *fmt,...) |
bool | isInteger (double value, double eps=EPSILON10) |
Id | getClosestInteger (double value) |
bool | isMultiple (Id nbig, Id nsmall) |
bool | isOdd (Id number) |
bool | isEven (Id number) |
bool | isZero (double value, double eps=EPSILON10) |
bool | isOne (double value, double eps=EPSILON10) |
bool | isEqual (double v1, double v2, double eps=EPSILON10) |
double | getMin (double val1, double val2) |
double | getMax (double val1, double val2) |
double | ut_deg2rad (double angle) |
double | ut_rad2deg (double angle) |
bool | isEqualExtended (double v1, double v2, double eps, bool flagRelative, bool flagAbsolute, const String &string) |
Function checking that two values are equal This verbose method is essentially used in tests. | |
bool | FFFF (double value) |
bool | IFFFF (Id value) |
double | getTEST () |
Id | getITEST () |
template<typename T > | |
T | getNA () |
template<> | |
double | getNA () |
template<> | |
Id | getNA () |
template<> | |
String | getNA () |
template<> | |
float | getNA () |
template<typename T > | |
bool | isNA (const T &v) |
template<> | |
bool | isNA (const double &v) |
template<> | |
bool | isNA (const Id &v) |
template<> | |
bool | isNA (const String &v) |
template<> | |
bool | isNA (const float &v) |
void | ut_sort_double (Id safe, Id nech, Id *ind, double *value) |
StatResults | ut_statistics (Id nech, const double *tab, const double *sel=nullptr, const double *wgt=nullptr) |
void | ut_stats_mima_print (const char *title, Id nech, double *tab, double *sel) |
void | ut_facies_statistics (Id nech, double *tab, double *sel, Id *nval, Id *mini, Id *maxi) |
void | ut_classify (Id nech, const double *tab, double *sel, Id nclass, double start, double pas, Id *nmask, Id *ntest, Id *nout, Id *classe) |
double | ut_median (1 &tab, Id ntab) |
double | ut_cnp (Id n, Id k) |
MatrixSquare | ut_pascal (Id ndim) |
ut_combinations (Id n, Id maxk, Id *ncomb) | |
void | ut_shuffle_array (Id nrow, Id ncol, 1 &tab) |
getListActiveToAbsolute (const 1 &sel) | |
std::map< Id, Id > | getMapAbsoluteToRelative (const 1 &sel, bool verbose=false) |
Id | getRankMapAbsoluteToRelative (const std::map< Id, Id > &map, Id iabs) |
Id | getRankMapRelativeToAbsolute (const std::map< Id, Id > &map, Id irel) |
operate_function | operate_Identify (Id oper) |
double | operate_Identity (double x) |
double | operate_Inverse (double x) |
double | operate_Square (double x) |
double | operate_InverseSquare (double x) |
double | operate_Sqrt (double x) |
double | operate_InverseSqrt (double x) |
double | modifyOperator (const EOperator &oper, double oldval, double value) |
double | roundZero (double value, double eps=EPSILON6) |
double | truncateDecimals (double value, Id ndec=0) |
double | truncateDigits (double value, Id ndigits) |
void | print_range (const char *title, Id ntab, const double *tab, const double *sel) |
void | convertIndptrToIndices (Id ncumul, const I32 *cumul, I32 *tab) |
TODO: transfer this in swig_inc.i. | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const VectorT< VectorNumT< T > > &vec) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const VectorT< T > &vec) |
Id | dbg2gCopy (DbGrid *dbin, DbGrid *dbout, const NamingConvention &namconv=NamingConvention("Copy")) |
Id | dbg2gExpand (DbGrid *dbin, DbGrid *dbout, const NamingConvention &namconv=NamingConvention("Expand")) |
Id | dbg2gShrink (DbGrid *dbin, DbGrid *dbout, const NamingConvention &namconv=NamingConvention("Shrink")) |
Id | dbg2gInterpolate (DbGrid *dbin, DbGrid *dbout, const VectorString &tops=VectorString(), const VectorString &bots=VectorString(), const NamingConvention &namconv=NamingConvention("Interpolation", false)) |
Id | migrate (Db *dbin, Db *dbout, const String &name, Id dist_type=1, const 1 &dmax=1(), bool flag_fill=false, bool flag_inter=false, bool flag_ball=false, const NamingConvention &namconv=NamingConvention("Migrate", false)) |
Id | migrateMulti (Db *dbin, Db *dbout, const VectorString &names, Id dist_type=1, const 1 &dmax=1(), bool flag_fill=false, bool flag_inter=false, bool flag_ball=false, const NamingConvention &namconv=NamingConvention("Migrate")) |
Id | migrateByAttribute (Db *dbin, Db *dbout, const 1 &iatts=1(), Id dist_type=1, const 1 &dmax=1(), bool flag_fill=false, bool flag_inter=false, bool flag_ball=false, const NamingConvention &namconv=NamingConvention("Migrate")) |
Id | migrateByLocator (Db *dbin, Db *dbout, const ELoc &locatorType, Id dist_type=1, const 1 &dmax=1(), bool flag_fill=false, bool flag_inter=false, bool flag_ball=false, const NamingConvention &namconv=NamingConvention("Migrate")) |
Id | manageExternalInformation (Id mode, const ELoc &locatorType, Db *dbin, Db *dbout, bool *flag_created) |
Id | interpolateVariableToPoint (DbGrid *db_grid, Id iatt, Id np, const double *xp, const double *yp, const double *zp, double *tab) |
dbgridLineSampling (DbGrid *dbgrid, const double *x1, const double *x2, Id ndisc, Id ncut, const double *cuts, Id *nval_ret) | |
Id | expandPointToGrid (Db *db_point, DbGrid *db_grid, Id iatt, Id iatt_time, Id iatt_angle, Id iatt_scaleu, Id iatt_scalev, Id iatt_scalew, Id flag_index, Id distType, const 1 &dmax, 1 &tab) |
Id | pointToBlock (Db *dbpoint, DbGrid *dbgrid, Id option, Id flag_size, Id iatt_time, Id iatt_size, Id iatt_angle, Id iatt_scaleu, Id iatt_scalev, Id iatt_scalew) |
Id | migrateGridToCoor (const DbGrid *db_grid, Id iatt, const 1 &coords, 1 &tab) |
Id | expandPointToCoor (const Db *db1, Id iatt, const 1 &coords, 1 &tab) |
Id | simuPost (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, const 1 &check_targets=1(), Id check_level=0, const NamingConvention &namconv=NamingConvention("Post")) |
Id | 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, const 1 &check_targets=1(), Id check_level=0, const NamingConvention &namconv=NamingConvention("Post")) |
Id | simuPostPropByLayer (Db *dbin, DbGrid *dbout, const VectorString &names, bool flag_match=false, bool flag_topToBase=false, const EPostUpscale &upscale=EPostUpscale::fromKey("MEAN"), const std::vector< EPostStat > &stats=EPostStat::fromKeys({"MEAN"}), bool verbose=false, const 1 &check_targets=1(), Id check_level=0, const NamingConvention &namconv=NamingConvention("Prop")) |
Id | dbStatisticsOnGrid (Db *db, DbGrid *dbgrid, const EStatOption &oper, Id radius=0, const NamingConvention &namconv=NamingConvention("Stats")) |
Id | dbRegression (Db *db1, const String &nameResp, const VectorString &nameAux, Id mode=0, bool flagCst=true, Db *db2=nullptr, const Model *model=nullptr, const NamingConvention &namconv=NamingConvention("Regr")) |
void | acknowledge_gstlearn (void) |
void | ascii_study_define (const char *study) |
void | ascii_environ_read (String &filename, bool verbose) |
void | ascii_filename (const char *type, Id rank, Id mode, String &filename) |
void | ascii_simu_read (String &filename, bool verbose, Id *nbsimu, Id *nbtuba, Id *seed) |
bool | ascii_option_defined (const String &filename, const char *option_name, Id *answer, bool verbose=false) |
Id | csv_manage (const char *filename, const CSVformat &csv, Id mode, Id nitem, bool flagInteger=false, bool verbose=false) |
void | csv_print_double (double value) |
Db * | db_read_csv (const String &filename, const CSVformat &csvfmt, bool verbose=false, Id ncol_max=-1, Id nrow_max=-1, bool flagAddSampleRank=false) |
Id | db_write_csv (Db *db, const char *filename, const CSVformat &csv, Id flag_allcol=1, Id flag_coor=1, bool flagInteger=false) |
Id | csv_table_read (const String &filename, const CSVformat &csvfmt, bool verbose, Id ncol_max, Id nrow_max, Id *ncol_arg, Id *nrow_arg, VectorString &names, 1 &tab) |
CTables * | ct_tables_manage (Id mode, Id verbose, Id flag_cumul, Id nconf, Id ndisc, double cmin, double cmax, CTables *ctables_old) |
void | ct_tables_print (CTables *ctables, Id flag_print) |
Id | ct_tableone_covrank (const CTables *ctables, double cova, double *cround) |
Id | ct_tableone_getrank_from_proba (CTables *ctables, double gaussian) |
double | ct_tableone_calculate (CTables *ctables, Id iconf0, double *lows, double *ups) |
double | ct_tableone_calculate_by_rank (CTables *ctables, Id iconf0, double *rklows, double *rkups) |
double | ct_INTRES2 (CTables *ctables, Id iconf0, Id idisc0, Id jdisc0) |
double | ct_INTRES3 (CTables *ctables, Id iconf0, Id idisc0, Id jdisc0, Id kdisc0) |
Id | fftn (Id ndim, const Id dims[], double Re[], double Im[], Id iSign=1, double scaling=1.) |
Id | _file_read (FILE *file, const char *format, va_list ap) |
Id | _file_get_ncol (FILE *file) |
void | _token_delimitors (const char del_com, const char del_sep, const char del_blk) |
FILE * | _file_open (const char *filename, Id mode) |
Id | _record_read (FILE *file, const char *format, void *out) |
void | _file_write (FILE *file, const char *format, va_list ap) |
void | _buffer_write (String &buffer, const char *format, va_list ap) |
void | _lire_string (const char *question, Id flag_def, const char *valdef, char *answer) |
Id | _lire_int (const char *question, Id flag_def, Id valdef, Id valmin, Id valmax) |
double | _lire_double (const char *question, Id flag_def, double valdef, double valmin, double valmax) |
Id | _lire_logical (const char *question, Id flag_def, Id valdef) |
void | _erase_current_string (void) |
void | set_keypair (const char *keyword, Id origin, Id nrow, Id ncol, const double *values) |
void | app_keypair (const char *keyword, Id origin, Id nrow, Id ncol, double *values) |
void | set_keypair_int (const char *keyword, Id origin, Id nrow, Id ncol, Id *values) |
void | app_keypair_int (const char *keyword, Id origin, Id nrow, Id ncol, Id *values) |
double | get_keypone (const char *keyword, double valdef) |
Id | get_keypair (const char *keyword, Id *nrow, Id *ncol, 1 &values) |
Id | get_keypair_int (const char *keyword, Id *nrow, Id *ncol, 1 &values) |
void | del_keypair (const char *keyword, Id flag_exact) |
void | print_keypair (Id flag_short) |
Id | potential_kriging (Db *db, Db *dbgrd, Db *dbtgt, DbGrid *dbout, Model *model, ANeigh *neigh, double nugget_grd=0., double nugget_tgt=0., bool flag_pot=true, bool flag_grad=false, bool flag_trans=false, bool flag_save_data=false, Id opt_part=0, bool verbose=false) |
Id | potential_cov (Model *model, bool verbose, Id type1, const 1 &x10, const 1 &x1p, const 1 &tx1, Id type2, const 1 &x20, const 1 &x2p, const 1 &tx2, 1 &covtab) |
Id | potential_simulate (Db *dbiso, Db *dbgrd, Db *dbtgt, DbGrid *dbout, Model *model, ANeigh *neigh, double nugget_grd=0., double nugget_tgt=0., double dist_tempere=TEST, bool flag_trans=false, Id seed=135674, Id nbsimu=1, Id nbtuba=100, bool verbose=false) |
Id | potential_xvalid (Db *dbiso, Db *dbgrd, Db *dbtgt, Model *model, ANeigh *neigh, double nugget_grd=0., double nugget_tgt=0., bool flag_dist_conv=false, bool verbose=false) |
Id | seismic_estimate_XZ (DbGrid *db, Model *model, Id nbench, Id nv2max, Id flag_ks, Id flag_std, Id flag_sort, Id flag_stat) |
Id | seismic_simulate_XZ (DbGrid *db, Model *model, Id nbench, Id nv2max, Id nbsimu, Id seed, Id flag_ks, Id flag_sort, Id flag_stat) |
Id | seismic_z2t_grid (Id verbose, DbGrid *db_z, Id iatt_v, Id *nx, double *x0, double *dx) |
Id | seismic_t2z_grid (Id verbose, DbGrid *db_t, Id iatt_v, Id *nx, double *x0, double *dx) |
Id | seismic_z2t_convert (DbGrid *db_z, Id iatt_v, DbGrid *db_t) |
Id | seismic_t2z_convert (DbGrid *db_t, Id iatt_v, DbGrid *db_z) |
Id | seismic_operate (DbGrid *db, Id oper) |
Id | seismic_convolve (DbGrid *db, Id flag_operate, Id flag_contrast, Id type, Id ntw, Id option, Id tindex, double fpeak, double period, double amplitude, double distort, double val_before, double val_middle, double val_after, 1 &wavelet) |
Id | sparseinv (Id n, Id *Lp, Id *Li, double *Lx, double *d, Id *Up, Id *Uj, double *Ux, Id *Zp, Id *Zi, double *Zx, double *z, Id *Zdiagp, Id *Lmunch) |
double | scale2range (const ECov &type, double scale, double param=1.) |
double | range2scale (const ECov &type, double range, double param=1.) |
double | _conv_uniform (double v) |
double | _conv_exponential (double v) |
double | _conv_gaussian (double v) |
double | _conv_sincard (double v) |
Def_Convolution & | D_CONV (Id rank) |
double | _tape_spherical (double) |
double | _tape_cubic (double) |
double | _tape_triangle (double) |
double | _tape_penta (double) |
double | _tape_storkey (double) |
double | _tape_wendland1 (double) |
double | _tape_wendland2 (double) |
Def_Tapering & | D_TAPE (Id rank) |
void | bessel_set_old_style (bool style) |
bool | haveSameNDim (const Db *db1, const Db *db2, Id *ndim) |
Given two Dbs, check that they have same Space Dimension The first or the second Db must be undefined When both are undefined, FALSE if returned. | |
bool | haveCompatibleNVar (const Db *db1, const Db *db2, Id *nvar) |
Given two Dbs, check that they have same Variable Number (locator Z) The first or the second Db must be undefined When both are undefined, FALSE if returned When both are defined, return the Maximum value. | |
Id | getLocatorTypeFromName (const String &name_type) |
Id | locatorIdentify (String string, ELoc *ret_locatorType, Id *ret_locatorIndex, Id *ret_mult) |
bool | isLocatorTypeValid (const ELoc &locatorType, bool unknownValid=false) |
String | getLocatorName (const ELoc &locatorType, Id locatorIndex=1) |
void | printLocatorList () |
VectorString | getLocatorNames () |
getLocatorMultiples () | |
Global_Result | global_arithmetic (Db *dbin, DbGrid *dbgrid, ModelGeneric *model, Id ivar0=0, bool verbose=false) |
Global_Result | global_kriging (Db *dbin, Db *dbout, ModelGeneric *model, Id ivar0=0, bool verbose=false) |
Id | krimage (DbGrid *dbgrid, Model *model, ANeigh *neigh, bool flagFFT=false, bool verbose=false, Id seed=13431, const NamingConvention &namconv=NamingConvention("Filtering")) |
Id | dbMorpho (DbGrid *dbgrid, const EMorpho &oper, double vmin=0., double vmax=1.5, Id option=0, const 1 &radius=1(), bool flagDistErode=false, bool verbose=false, const NamingConvention &namconv=NamingConvention("Morpho")) |
Id | dbSmoother (DbGrid *dbgrid, ANeigh *neigh, Id type=1, double range=1., const NamingConvention &namconv=NamingConvention("Smooth")) |
Id | kriging (Db *dbin, Db *dbout, ModelGeneric *model, ANeigh *neigh, bool flag_est=true, bool flag_std=true, bool flag_varz=false, const KrigOpt &krigopt=KrigOpt(), const NamingConvention &namconv=NamingConvention("Kriging")) |
Id | krigcell (Db *dbin, Db *dbout, ModelGeneric *model, ANeigh *neigh, bool flag_est=true, bool flag_std=true, const KrigOpt &krigopt=KrigOpt(), const NamingConvention &namconv=NamingConvention("KrigCell")) |
Id | kribayes (Db *dbin, Db *dbout, ModelGeneric *model, ANeigh *neigh, const 1 &prior_mean=1(), const MatrixSymmetric &prior_cov=MatrixSymmetric(), bool flag_est=true, bool flag_std=true, const NamingConvention &namconv=NamingConvention("Bayes")) |
Id | kriggam (Db *dbin, Db *dbout, ModelGeneric *model, ANeigh *neigh, AAnam *anam, const NamingConvention &namconv=NamingConvention("KrigGam")) |
Krigtest_Res | krigtest (Db *dbin, Db *dbout, ModelGeneric *model, ANeigh *neigh, Id iech0=0, const KrigOpt &krigopt=KrigOpt(), bool verbose=true) |
Id | xvalid (Db *db, ModelGeneric *model, ANeigh *neigh, bool flag_kfold=false, Id flag_xvalid_est=1, Id flag_xvalid_std=1, Id flag_xvalid_varz=0, const KrigOpt &krigopt=KrigOpt(), const NamingConvention &namconv=NamingConvention("Xvalid")) |
Id | test_neigh (Db *dbin, Db *dbout, ModelGeneric *model, ANeigh *neigh, const NamingConvention &namconv=NamingConvention("Neigh")) |
Id | krigingFactors (Db *dbin, Db *dbout, Model *model, ANeigh *neigh, bool flag_est=true, bool flag_std=true, const KrigOpt &krigopt=KrigOpt(), const NamingConvention &namconv=NamingConvention("KD")) |
Id | inverseDistance (Db *dbin, Db *dbout, double exponent=2., bool flag_expand=true, double dmax=TEST, bool flag_est=true, bool flag_std=false, Model *model=nullptr, const NamingConvention &namconv=NamingConvention("InvDist")) |
Id | nearestNeighbor (Db *dbin, Db *dbout, bool flag_est=true, bool flag_std=false, Model *model=nullptr, const NamingConvention &namconv=NamingConvention("Nearest")) |
Id | movingAverage (Db *dbin, Db *dbout, ANeigh *neigh, bool flag_est=true, bool flag_std=false, Model *model=nullptr, const NamingConvention &namconv=NamingConvention("MovAve")) |
Id | movingMedian (Db *dbin, Db *dbout, ANeigh *neigh, bool flag_est=true, bool flag_std=false, Model *model=nullptr, const NamingConvention &namconv=NamingConvention("MovMed")) |
Id | leastSquares (Db *dbin, Db *dbout, ANeigh *neigh, Id order=0, const NamingConvention &namconv=NamingConvention("LstSqr")) |
Id | krigingVecchia (Db *dbin, Db *dbout, ModelGeneric *model, Id nb_neigh=5, bool verbose=false, const NamingConvention &namconv=NamingConvention("Vecchia")) |
double | logLikelihoodVecchia (const Db *db, ModelGeneric *model, Id nb_neigh=5, bool verbose=false) |
Vario * | variogram_pgs (Db *db, const VarioParam *varioparam, const RuleProp *ruleprop, Id flag_rho=false, Id opt_correl=2) |
Id | model_auto_fit (Vario *vario, Model *model, bool verbose=false, const Option_AutoFit &mauto_arg=Option_AutoFit(), const Constraints &cons_arg=Constraints(), const Option_VarioFit &optvar_arg=Option_VarioFit()) |
Id | vmap_auto_fit (const DbGrid *dbmap, Model *model, bool verbose=false, const Option_AutoFit &mauto_arg=Option_AutoFit(), const Constraints &cons_arg=Constraints(), const Option_VarioFit &optvar_arg=Option_VarioFit()) |
void | set_test_discrete (bool flag_discret) |
Vario * | model_pgs (Db *db, const VarioParam *varioparam, const RuleProp *ruleprop, const Model *model1, const Model *model2=nullptr) |
Id | krigsum (Db *dbin, Db *dbout, Model *model, ANeigh *neigh, bool flag_positive=false, const NamingConvention &namconv=NamingConvention("KrigSum")) |
Id | declustering (Db *db, Model *model, Id method, ANeigh *neigh=nullptr, DbGrid *dbgrid=nullptr, const 1 &radius=1(), const 1 &ndisc=1(), Id flag_sel=false, bool verbose=false) |
Id | simpgs (Db *dbin, Db *dbout, RuleProp *ruleprop, Model *model1, Model *model2=nullptr, ANeigh *neigh=nullptr, Id nbsimu=1, Id seed=1321421, Id flag_gaus=false, Id flag_prop=false, Id flag_check=false, Id flag_show=false, Id nbtuba=100, Id gibbs_nburn=10, Id gibbs_niter=100, double percent=5., const NamingConvention &namconv=NamingConvention("Facies", true, true, true, ELoc::fromKey("FACIES"))) |
Id | simbipgs (Db *dbin, Db *dbout, RuleProp *ruleprop, Model *model11, Model *model12=nullptr, Model *model21=nullptr, Model *model22=nullptr, ANeigh *neigh=nullptr, Id nbsimu=1, Id seed=43243, Id flag_gaus=false, Id flag_prop=false, Id flag_check=false, Id flag_show=false, Id nbtuba=100, Id gibbs_nburn=10, Id gibbs_niter=100, double percent=5., const NamingConvention &namconv=NamingConvention("Facies", true, true, true, ELoc::fromKey("FACIES"))) |
simsph_mesh (MeshSpherical *mesh, Model *model, const SimuSphericalParam &sphepar, Id seed=54523, Id verbose=false) | |
MatrixDense | fluid_extract (DbGrid *dbgrid, const String &name_facies, const String &name_fluid, const String &name_poro, const String &name_date, Id nfacies, Id nfluids, Id facies0, Id fluid0, Id ntime, double time0, double dtime, bool verbose=false) |
Id | db_proportion_estimate (Db *dbin, DbGrid *dbout, Model *model, Id niter=100, bool verbose=false, const NamingConvention &namconv=NamingConvention("Prop", true, true, true, ELoc::fromKey("P"))) |
Id | gibbs_sampler (Db *dbin, Model *model, Id nbsimu, Id seed, Id gibbs_nburn, Id gibbs_niter, bool flag_moving, bool flag_norm, bool flag_multi_mono, bool flag_propagation, bool flag_sym_neigh, Id gibbs_optstats, double percent, bool flag_ce, bool flag_cstd, bool verbose=false, const NamingConvention &namconv=NamingConvention("Gibbs")) |
void | record_close (void) |
void | redefine_message (void(*write_func)(const char *)) |
void | redefine_error (void(*warn_func)(const char *)) |
void | redefine_read (void(*read_func)(const char *, char *)) |
void | redefine_exit (void(*exit_func)(void)) |
void | mem_error (Id nbyte) |
void | message_extern (const char *string) |
void | exit_extern () |
void | string_strip_blanks (char *string, Id flag_lead) |
void | string_strip_quotes (char *string) |
void | print_current_line (void) |
template<typename SpChol , typename SpMat > | |
SpChol::MatrixType | partial_inverse (const SpChol &llt, const SpMat &pattern) |
std::shared_ptr< MatrixSparse > | buildInvNugget (Db *dbin, Model *model, const SPDEParam ¶ms=SPDEParam()) |
Id | get_rank_from_propdef (PropDef *propdef, Id ipgs, Id igrf) |
Id | rule_thresh_define_shadow (PropDef *propdef, Db *dbin, const RuleShadow *rule, Id facies, Id iech, Id isimu, Id nbsimu, double *t1min, double *t1max, double *t2min, double *t2max, double *dsup, double *down) |
Id | rule_thresh_define (PropDef *propdef, Db *dbin, const Rule *rule, Id facies, Id iech, Id isimu, Id nbsimu, Id flag_check, double *t1min, double *t1max, double *t2min, double *t2max) |
void | proportion_rule_process (PropDef *propdef, const EProcessOper &mode) |
PropDef * | proportion_manage (Id mode, Id flag_facies, Id flag_stat, Id ngrf1, Id ngrf2, Id nfac1, Id nfac2, Db *db, const Db *dbprop, const 1 &propcst, PropDef *proploc) |
void | propdef_reset (PropDef *propdef) |
void | proportion_print (PropDef *propdef) |
void | set_rule_mode (Id rule_mode) |
Id | get_rule_mode (void) |
double | get_rule_extreme (Id mode) |
Rule * | rule_free (const Rule *rule) |
Model * | model_rule_combine (const Model *model1, const Model *model2, const Rule *rule) |
Id | db_rule_shadow (Db *db, Db *dbprop, RuleShadow *rule, Model *model1, const 1 &props, Id flag_stat, Id nfacies) |
void | setMultiThread (I32 nthreads) |
I32 | getMultiThread () |
bool | isMultiThread () |
bool | getFlagMatrixCheck () |
void | setFlagMatrixCheck (bool flag) |
MatrixSparse * | createFromAnyMatrix (const AMatrix *mat) |
MatrixSparse * | prodNormMatMat (const MatrixSparse *a, const MatrixSparse *m, bool transpose=false) |
MatrixSparse * | prodNormMatVec (const MatrixSparse *a, const 1 &vec, bool transpose=false) |
MatrixSparse * | prodNormMat (const MatrixSparse *a, bool transpose=false) |
MatrixSparse * | prodNormDiagVec (const MatrixSparse *a, const 1 &vec, Id oper_choice=1) |
Eigen::SparseMatrix< double > | AtMA (const Eigen::SparseMatrix< double > &A, const Eigen::SparseMatrix< double > &M) |
MatrixSquare * | prodNormMatMat (const MatrixDense *a, const MatrixDense *m, bool transpose=false) |
MatrixSquare * | prodNormMat (const MatrixDense &a, bool transpose=false) |
MatrixSquare * | prodNormMatVec (const MatrixDense &a, const 1 &vec, bool transpose=false) |
void | dumpMeshes (const VectorMeshes &meshes) |
get_db_extension (Db *dbin, Db *dbout, Id *nout) | |
extend_grid (DbGrid *db, const 1 &gext, Id *nout) | |
extend_point (Db *db, const 1 &gext, Id *nout) | |
Id | MSS (Id ndim, Id ipol, Id icas, Id icorn, Id idim) |
Id | meshes_2D_write (const char *file_name, const char *obj_name, Id verbose, Id ndim, Id ncode, Id ntri, Id npoints, const 1 &ntcode, const 1 &triangles, const 1 &points) |
AMesh * | meshes_turbo_1D_grid_build (DbGrid *dbgrid) |
AMesh * | meshes_turbo_2D_grid_build (DbGrid *dbgrid) |
AMesh * | meshes_turbo_3D_grid_build (DbGrid *dbgrid) |
void | mesh_stats (Id ndim, Id ncorner, Id nmesh, const I32 *meshes, const double *points) |
void | meshes_2D_sph_init (SphTriangle *t) |
void | meshes_2D_sph_free (SphTriangle *t, Id mode) |
Id | meshes_2D_sph_from_db (Db *db, SphTriangle *t) |
Id | meshes_2D_sph_from_points (Id nech, double *x, double *y, SphTriangle *t) |
Id | meshes_2D_sph_from_auxiliary (const String &triswitch, SphTriangle *t) |
void | meshes_2D_sph_print (SphTriangle *t, Id brief) |
Id | meshes_2D_sph_create (Id verbose, SphTriangle *t) |
bool | isTurbo (const VectorMeshes &meshes) |
Check if a series of Meshes (included in 'meshes') are Turbo. | |
double | constraints_get (const Constraints &constraints, const EConsType &icase, Id igrf, Id icov, const EConsElem &icons, Id v1, Id v2) |
void | constraints_print (const Constraints &constraints) |
Id | modify_constraints_on_sill (Constraints &constraints) |
Id | add_unit_sill_constraints (Constraints &constraints) |
Id | computeCovMatSVCLHSInPlace (MatrixSymmetric &cov, const MatrixSymmetric &Sigma, const MatrixDense &F1, Id type=1, Id idx=0) |
Id | computeCovMatSVCRHSInPlace (MatrixDense &cov, const MatrixSymmetric &Sigma, const MatrixDense &F1, const MatrixDense &F2, Id type1=1, Id idx1=0, Id type2=1, Id idx2=0) |
Id | computeDriftMatSVCRHSInPlace (MatrixDense &mat, const MatrixDense &F, Id type=1, Id idx=0, bool flagCenteredFactors=true) |
Id | morpho_count (const BImage &imagin) |
void | morpho_duplicate (const BImage &imagin, BImage &imagout) |
void | morpho_erosion (Id option, const 1 &radius, const BImage &imagin, BImage &imagout, bool verbose=false) |
void | morpho_dilation (Id option, const 1 &radius, const BImage &imagin, BImage &imagout, bool verbose=false) |
void | morpho_opening (Id option, const 1 &radius, const BImage &imagin, BImage &imagout, bool verbose=false) |
void | morpho_closing (Id option, const 1 &radius, const BImage &imagin, BImage &imagout, bool verbose=false) |
void | morpho_intersection (const BImage &image1, const BImage &image2, BImage &imagout, bool verbose=false) |
void | morpho_union (const BImage &image1, const BImage &image2, BImage &imagout, bool verbose=false) |
void | morpho_negation (const BImage &imagin, BImage &imagout, bool verbose=false) |
void | morpho_double2imageInPlace (const 1 &nx, const 1 &tabin, double vmin, double vmax, BImage &imagout, bool verbose=false) |
BImage | morpho_double2image (const 1 &nx, const 1 &tabin, double vmin, double vmax, bool verbose=false) |
void | morpho_image2double (const BImage &imagin, Id mode, double grain, double pore, 1 &tabout, bool verbose=false) |
morpho_labelling (Id option, Id flag_size, const BImage &imagin, double ccvoid, bool verbose=false) | |
morpho_labelsize (Id option, const BImage &imagin) | |
void | morpho_distance (Id option, const 1 &radius, bool flagDistErode, BImage &imagin, 1 &dist, bool verbose=false) |
gridcell_neigh (Id ndim, Id option, Id radius, bool flag_center=true, bool verbose=false) | |
Spill_Res | spillPoint (DbGrid *dbgrid, const String &name_depth, const String &name_data, Id option=0, bool flag_up=true, Id verbose_step=0, double hmax=TEST) |
Id | db_morpho_calc (DbGrid *dbgrid, Id iptr0, const EMorpho &oper, double vmin, double vmax, Id option, const 1 &radius, bool flagDistErode, bool verbose) |
void | db_morpho_angle2D (DbGrid *dbgrid, const 1 &radius, Id iptr0) |
void | db_morpho_gradients (DbGrid *dbgrid, Id iptr0) |
DbGrid * | db_grid_read_f2g (const char *filename, Id verbose=0) |
Id | db_grid_write_zycor (const char *filename, DbGrid *db, Id icol) |
DbGrid * | db_grid_read_zycor (const char *filename, Id verbose=0) |
Id | db_grid_write_arcgis (const char *filename, DbGrid *db, Id icol) |
Id | db_grid_write_XYZ (const char *filename, DbGrid *db, Id icol) |
Id | db_write_vtk (const char *filename, DbGrid *db, const 1 &cols) |
Id | db_grid_write_bmp (const char *filename, DbGrid *db, Id icol, Id nsamplex=1, Id nsampley=1, Id nmult=1, Id ncolor=1, Id flag_low=1, Id flag_high=1, double valmin=TEST, double valmax=TEST, Id *red=nullptr, Id *green=nullptr, Id *blue=nullptr, Id mask_red=0, Id mask_green=0, Id mask_blue=0, Id ffff_red=232, Id ffff_green=232, Id ffff_blue=0, Id low_red=255, Id low_green=255, Id low_blue=255, Id high_red=255, Id high_green=0, Id high_blue=0) |
DbGrid * | db_grid_read_bmp (const char *filename, Id verbose=0) |
Id | db_grid_write_irap (const char *filename, DbGrid *db, Id icol, Id nsamplex=1, Id nsampley=1) |
Id | db_grid_write_ifpen (const char *filename, DbGrid *db, Id ncol, Id *icols) |
DbGrid * | db_grid_read_ifpen (const char *filename, Id verbose=0) |
Id | db_grid_write_eclipse (const char *filename, DbGrid *db, Id icol) |
Db * | db_well_read_las (const char *filename, double xwell, double ywell, double cwell, Id verbose=0) |
Grid | segy_summary (const char *filesegy, DbGrid *surf2D=nullptr, const String &name_top="", const String &name_bot="", double thickmin=TEST, Id option=0, Id nz_ss=ITEST, Id verbOption=1, Id iline_min=ITEST, Id iline_max=ITEST, Id xline_min=ITEST, Id xline_max=ITEST, double modif_high=TEST, double modif_low=TEST, double modif_scale=TEST, Id codefmt=1) |
SegYArg | segy_array (const char *filesegy, DbGrid *surf2D=nullptr, const String &top_name="", const String &bot_name="", const String &top_aux="", const String &bot_aux="", double thickmin=TEST, Id option=0, Id nz_ss=ITEST, Id verbOption=0, Id iline_min=ITEST, Id iline_max=ITEST, Id xline_min=ITEST, Id xline_max=ITEST, double modif_high=TEST, double modif_low=TEST, double modif_scale=TEST, Id codefmt=1) |
Id | db_segy (const char *filesegy, DbGrid *grid3D, DbGrid *surf2D=nullptr, const String &name_top="", const String &name_bot="", double thickmin=TEST, Id option=0, Id nz_ss=ITEST, Id verbOption=0, Id iline_min=ITEST, Id iline_max=ITEST, Id xline_min=ITEST, Id xline_max=ITEST, double modif_high=TEST, double modif_low=TEST, double modif_scale=TEST, Id codefmt=1, const NamingConvention &namconv=NamingConvention("SEGY")) |
void | write_point_mesh (const char *filename, Id ub, Id npts, float *pts, Id nvars, Id *vardim, const char *const *varnames, 1 &vars) |
void | write_unstructured_mesh (const char *filename, Id ub, Id npts, float *pts, Id ncells, Id *celltypes, Id *conn, Id nvars, Id *vardim, Id *centering, const char *const *varnames, 1 &vars) |
void | write_regular_mesh (const char *filename, Id ub, Id *dims, Id nvars, Id *vardim, Id *centering, const char *const *varnames, 1 &vars) |
void | write_rectilinear_mesh (const char *filename, Id ub, Id *dims, float *x, float *y, float *z, Id nvars, Id *vardim, Id *centering, const char *const *varnames, 1 &vars) |
void | write_curvilinear_mesh (const char *filename, Id ub, Id *dims, float *pts, Id nvars, Id *vardim, Id *centering, const char *const *varnames, 1 &vars) |
void | db_polygon (Db *db, const Polygons *polygon, bool flag_sel=false, bool flag_period=false, bool flag_nested=false, const NamingConvention &namconv=NamingConvention("Polygon", true, true, true, ELoc::fromKey("SEL"))) |
Id | dbPolygonDistance (Db *db, Polygons *polygon, double dmax, Id scale, Id polin, const NamingConvention &namconv=NamingConvention("Distance")) |
Id | db_selhull (Db *db1, Db *db2, double dilate=0., bool verbose=false, const NamingConvention &namconv=NamingConvention("Hull", true, true, true, ELoc::fromKey("SEL"))) |
hermitePolynomials (double y, double r, Id nbpoly) | |
hermitePolynomials (double y, double r, const 1 &ifacs) | |
hermiteCoefIndicator (double yc, Id nbpoly) | |
hermiteCoefMetal (double yc, const 1 &phi) | |
hermiteCoefLower (double y, Id nbpoly) | |
hermiteIndicatorLower (double y, Id nbpoly) | |
MatrixSquare | hermiteIncompleteIntegral (double yc, Id nbpoly) |
hermiteLognormal (double mean, double sigma, Id nbpoly) | |
double | hermiteSeries (const 1 &an, const 1 &hn) |
hermiteIndicator (double yc, 1 krigest, 1 krigstd) | |
double | hermiteIndicatorElement (double yc, double krigest, double krigstd) |
hermiteIndicatorStd (double yc, 1 krigest, 1 krigstd) | |
double | hermiteIndicatorStdElement (double yc, double krigest, double krigstd) |
hermiteMetal (double yc, 1 krigest, 1 krigstd, const 1 &phi) | |
double | hermiteMetalElement (double yc, double krigest, double krigstd, const 1 &phi) |
hermiteMetalStd (double yc, 1 krigest, 1 krigstd, const 1 &phi) | |
double | hermiteMetalStdElement (double yc, double krigest, double krigstd, const 1 &phi) |
hermiteCondExp (1 krigest, 1 krigstd, const 1 &phi) | |
double | hermiteCondExpElement (double krigest, double krigstd, const 1 &phi) |
hermiteCondStd (1 krigest, 1 krigstd, const 1 &phi) | |
double | hermiteCondStdElement (double krigest, double krigstd, const 1 &phi) |
double | integralGaussHermite (double yc, double r, const 1 &psi) |
void | normalizeResults (Id nbsimu, double &valest, double &valstd) |
void | normalizeResults (Id nbsimu, double &valest) |
MCCondExp (1 krigest, 1 krigstd, const 1 &psi, Id nbsimu=NBSIMU_DEF) | |
double | MCCondExpElement (double krigest, double krigstd, const 1 &psi, Id nbsimu=NBSIMU_DEF) |
MCCondStd (1 krigest, 1 krigstd, const 1 &psi, Id nbsimu=NBSIMU_DEF) | |
double | MCCondStdElement (double krigest, double krigstd, const 1 &psi, Id nbsimu=NBSIMU_DEF) |
MCIndicator (double yc, 1 krigest, 1 krigstd, Id nbsimu=NBSIMU_DEF) | |
double | MCIndicatorElement (double yc, double krigest, double krigstd, Id nbsimu=NBSIMU_DEF) |
MCIndicatorStd (double yc, const 1 &krigest, const 1 &krigstd, Id nbsimu=NBSIMU_DEF) | |
double | MCIndicatorStdElement (double yc, double krigest, double krigstd, Id nbsimu=NBSIMU_DEF) |
MCMetal (double yc, 1 krigest, 1 krigstd, const 1 &psi, Id nbsimu=NBSIMU_DEF) | |
double | MCMetalElement (double yc, double krigest, double krigstd, const 1 &psi, Id nbsimu=NBSIMU_DEF) |
MCMetalStd (double yc, 1 krigest, 1 krigstd, const 1 &psi, Id nbsimu=NBSIMU_DEF) | |
double | MCMetalStdElement (double yc, double krigest, double krigstd, const 1 &psi, Id nbsimu=NBSIMU_DEF) |
Id | fluid_propagation (DbGrid *dbgrid, const String &name_facies, const String &name_fluid, const String &name_perm, const String &name_poro, Id nfacies, Id nfluids, Id niter=1, const 1 &speeds=1(), bool show_fluid=false, double number_max=TEST, double volume_max=TEST, Id seed=321321, bool verbose=false, const NamingConvention &namconv=NamingConvention("Eden")) |
Id | simfft (DbGrid *db, ModelGeneric *model, SimuFFTParam ¶m, Id nbsimu=1, Id seed=432431, Id verbose=false, const NamingConvention &namconv=NamingConvention("FFT")) |
getChangeSupport (DbGrid *db, ModelGeneric *model, const SimuFFTParam ¶m, const 1 &sigma=1(), Id seed=14333, bool verbose=false) | |
Id | tessellation_voronoi (DbGrid *dbgrid, Model *model, const SimuPartitionParam &parparam, Id seed=43243, Id verbose=false, const NamingConvention &namconv=NamingConvention("Voronoi")) |
Id | tessellation_poisson (DbGrid *dbgrid, Model *model, const SimuPartitionParam &parparam, Id seed=432432, Id verbose=false, const NamingConvention &namconv=NamingConvention("Poisson")) |
DbGrid * | simulation_refine (DbGrid *dbin, Model *model, const SimuRefineParam ¶m, Id seed=432432, const NamingConvention &namconv=NamingConvention("Refine")) |
Id | substitution (DbGrid *dbgrid, SimuSubstitutionParam &subparam, Id seed=43242, Id verbose=false, const NamingConvention &namconv=NamingConvention("SimSub")) |
Id | simtub (Db *dbin=nullptr, Db *dbout=nullptr, Model *model=nullptr, ANeigh *neigh=nullptr, Id nbsimu=1, Id seed=43431, Id nbtuba=100, bool flag_dgm=false, bool flag_check=false, const NamingConvention &namconv=NamingConvention("Simu")) |
Id | simbayes (Db *dbin, Db *dbout, Model *model, ANeigh *neigh, Id nbsimu=1, Id seed=132141, const 1 &dmean=1(), const MatrixSymmetric &dcov=MatrixSymmetric(), Id nbtuba=100, bool flag_check=false, const NamingConvention &namconv=NamingConvention("SimBayes")) |
Id | simbool (Db *dbin, DbGrid *dbout, ModelBoolean *tokens, const SimuBooleanParam &boolparam=SimuBooleanParam(), Id seed=432431, bool flag_simu=true, bool flag_rank=true, bool verbose=false, const NamingConvention &namconv=NamingConvention("Boolean")) |
Id | simuSpectral (Db *dbin=nullptr, Db *dbout=nullptr, Model *model=nullptr, Id nbsimu=1, Id seed=43431, Id ns=100, Id nd=100, bool verbose=false, const NamingConvention &namconv=NamingConvention("Simu")) |
Id | simsph (DbGrid *db, Model *model, const SimuSphericalParam &sphepar, Id seed, bool verbose, const NamingConvention &namconv=NamingConvention("SimSphe")) |
void | defineDefaultSpace (const ESpaceType &type, size_t ndim=2, double param=0.) |
(Re)Defining the unique default global space | |
void | setDefaultSpace (const ASpaceSharedPtr &space) |
Set the unique default global space from another one. | |
ESpaceType | getDefaultSpaceType () |
Return a clone of the unique default global space. | |
Id | getDefaultSpaceDimension () |
const ASpace * | getDefaultSpace () |
ASpaceSharedPtr | getDefaultSpaceSh () |
bool | isDefaultSpaceSphere () |
VectorString | statOptionToName (const std::vector< EStatOption > &opers) |
std::vector< EStatOption > | KeysToStatOptions (const VectorString &opers) |
Table | dbStatisticsMono (Db *db, const VectorString &names, const std::vector< EStatOption > &opers, bool flagIso, double proba, double vmin, double vmax, const String &title) |
Table | dbStatisticsCorrel (Db *db, const VectorString &names, bool flagIso, const String &title) |
void | dbStatisticsPrint (const Db *db, const VectorString &names, const std::vector< EStatOption > &opers, bool flagIso, bool flagCorrel, const String &title, const String &radix) |
Table | dbStatisticsMulti (Db *db, const VectorString &names, const EStatOption &oper, bool flagMono, const String &title) |
dbStatisticsPerCell (Db *db, DbGrid *dbgrid, const EStatOption &oper, const String &name1, const String &name2, const 1 &cuts) | |
Id | statisticsProportion (DbGrid *dbin, DbGrid *dbout, Id pos, Id nfacies, Id radius) |
Id | statisticsTransition (DbGrid *dbin, DbGrid *dbout, Id pos, Id nfacies, Id radius, Id orient) |
dbStatisticsFacies (Db *db) | |
double | dbStatisticsIndicator (Db *db) |
MatrixSquare * | sphering (const AMatrix *X) |
correlationPairs (Db *db1, Db *db2, const String &name1, const String &name2, bool flagFrom1=false, bool verbose=false) | |
hscatterPairs (Db *db, const String &name1, const String &name2, VarioParam *varioparam, Id ilag=0, Id idir=0, bool verbose=false) | |
Id | correlationIdentify (Db *db1, Db *db2, Id icol1, Id icol2, Polygons *polygon) |
condexp (Db *db1, Db *db2, Id icol1, Id icol2, double mini, double maxi, Id nclass, bool verbose=false) | |
std::map< Id, Id > | contingencyTable (const 1 &values) |
std::map< Id, std::map< Id, Id > > | contingencyTable2 (const 1 &values, const 1 &bins) |
MatrixSymmetric | dbVarianceMatrix (const Db *db) |
Calculate the variance-covariance matrix on the isotopic data set from the Z-locator variables. | |
void | dbStatisticsVariables (Db *db, const VectorString &names, const std::vector< EStatOption > &opers, Id iptr0, double proba, double vmin, double vmax) |
Id | dbStatisticsInGridTool (Db *db, DbGrid *dbgrid, const VectorString &names, const EStatOption &oper, Id radius, Id iptr0) |
Regression | regression (Db *db1, const String &nameResp, const VectorString &nameAux=VectorString(), Id mode=0, bool flagCst=false, Db *db2=nullptr, const Model *model=nullptr) |
regressionDeming (const 1 &x, const 1 &y, double delta=1) | |
Id | dbSelectivity (Db *db, const String &name, const 1 &zcuts, const NamingConvention &namconv=NamingConvention("Selectivity")) |
MatrixT< Id > | findNN (const Db *dbin, const Db *dbout=nullptr, Id nb_neigh=3, bool flagShuffle=false, bool verbose=false, Id leaf_size=10, Id default_distance_function=1) |
double | manhattan_distance (const double *x1, const double *x2, Id n_features) |
double | euclidean_distance (const double *x1, const double *x2, Id n_features) |
Vario_Order * | vario_order_manage (Id mode, Id flag_dist, Id size_aux, Vario_Order *vorder) |
Vario_Order * | vario_order_final (Vario_Order *vorder, Id *npair) |
void | vario_order_print (Vario_Order *vorder, Id idir_target, Id ipas_target, Id verbose) |
void | vario_order_get_bounds (Vario_Order *vorder, Id idir, Id ilag, Id *ifirst, Id *ilast) |
void | vario_order_get_indices (Vario_Order *vorder, Id ipair, Id *iech, Id *jech, double *dist) |
void | vario_order_get_auxiliary (Vario_Order *vorder, Id ipair, char *aux_iech, char *aux_jech) |
Id | vario_order_add (Vario_Order *vorder, Id iech, Id jech, void *aux_iech, void *aux_jech, Id ilag, Id idir, double dist) |
Db * | buildDbFromVarioParam (Db *db, const VarioParam &varioparam) |
DbGrid * | db_vcloud (Db *db, const VarioParam *varioparam, double lagmax=TEST, double varmax=TEST, Id lagnb=100, Id varnb=100, const NamingConvention &namconv=NamingConvention("Cloud")) |
DbGrid * | db_vmap (Db *db, const ECalcVario &calcul_type=ECalcVario::fromKey("VARIOGRAM"), const 1 &nxx=1(), const 1 &dxx=1(), Id radius=0, bool flag_FFT=true, const NamingConvention &namconv=NamingConvention("VMAP")) |
void | _endOfLine () |
void | _test () |
void | _introduction (const String &title, bool end_of_line=false) |
void | _printEmpty () |
void | _printInt (Id value) |
void | _printDouble (double value) |
void | _printString (const String &value) |
void | _printVectorInt (const 1 &values) |
void | _printVectorDouble (const 1 &values) |
void | _printVectorString (const VectorString &values) |
void | _printVectorVectorInt (const 1 &values) |
void | _printVectorVectorDouble (const 1 &values) |
static Id | _getColumnRank () |
static Id | _getColumnName () |
static Id | _getColumnSize () |
static Id | _getDecimalNumber () |
static double | _getThresh () |
static Id | _getMaxNCols () |
static Id | _getMaxNRows () |
static Id | _getNBatch () |
static void | _buildFormat (Id mode) |
std::stringstream | _formatColumn (const EJustify &justify, Id localSize=0) |
String | _tabPrintString (const String &string, const EJustify &justify, Id localSize=0) |
String | _tabPrintDouble (double value, const EJustify &justify, Id localSize=0) |
String | _tabPrintInt (Id value, const EJustify &justify, Id localSize=0) |
String | _tabPrintRowColumn (Id icase, Id value, Id flagAdd) |
String | _printColumnHeader (const VectorString &colnames, Id colfrom, Id colto, Id colSize=_getColumnSize()) |
String | _printRowHeader (const VectorString &rownames, Id iy, Id rowSize=_getColumnSize()) |
String | _printTrailer (Id ncols, Id nrows, Id ncols_util, Id nrows_util) |
static | _computeStrides (Id ndim, const 1 &dims) |
static | _computeHalf (Id ndim, const 1 &dims) |
static Id | _getIndex (Id ndim, const 1 &strides, const 1 &indices) |
static void | _dimensionRecursion (Id idim, bool verbose, DimLoop &dlp) |
static | _corputVector (Id n, Id b) |
static double | st_mvnphi (const double *z) |
static void | st_mvnlms (double *a, double *b, const Id *infin, double *lower, double *upper) |
static void | st_dkswap (double *x, double *y) |
static void | st_rcswp (const Id *p, const Id *q, double *a, double *b, Id *infin, const Id *n, double *c) |
static void | st_covsrt (Id *n, double *lower, double *upper, double *correl, Id *infin, double *y, Id *infis, double *a, double *b, double *cov, Id *infi) |
static double | st_phinvs (const double *p) |
static double | st_bvu (const double *sh, const double *sk, const double *r) |
static double | st_bvnmvn (double *lower, double *upper, Id *infin, double *correl) |
static double | st_mvndfn_0 (Id n__, Id *n, double *w, double *correl, double *lower, double *upper, Id *infin, Id *infis, double *d, double *e) |
static double | st_mvndnt (Id *n, double *correl, double *lower, double *upper, Id *infin, Id *infis, double *d, double *e) |
static void | st_dkrcht (const Id *s, double *quasi) |
static void | st_dksmrc (Id *ndim, const Id *klim, double *sumkro, const Id *prime, double *vk, double(*functn)(Id *, double *), double *x) |
static void | st_dkbvrc (Id *ndim, Id *minvls, const Id *maxvls, double(*functn)(Id *, double *), const double *abseps, const double *releps, double *abserr, double *finest, Id *inform) |
static double | st_mvndfn (Id *n, double *w) |
static void | st_init_rotation (double *ct, double *st, double *a) |
static void | st_addTriangle (const double v1[3], const double v2[3], const double v3[3], Reg_Coor *R_coor) |
static void | st_normalize (double v[3]) |
void | st_subdivide (double v1[3], double v2[3], double v3[3], Id depth, Reg_Coor *R_coor) |
static Id | st_already_present (Reg_Coor *R_coor, Id i0, Id ntri, const 1 &coord, double eps=EPSILON3) |
std::regex | _protectRegexp (const String &match) |
charTypeT | _charType (char c) |
static void | st_combinations (Id *v, Id start, Id n, Id k, Id maxk, Id *ncomb, 1 &comb) |
static void | st_shift (Id rank, Db *dbgrid, const 1 &indg1, const 1 &prop, 1 &indg2, double *weight) |
static Id | st_multilinear_evaluate (DbGrid *db_grid, const 1 &indg, Id iatt, double *value) |
static double | st_multilinear_interpolation (DbGrid *dbgrid, Id iatt, Id distType, const 1 &dmax, const 1 &coor) |
static double | st_distance_modify (DbGrid *dbgrid, Id ig, Db *dbpoint, Id ip, 1 &dvect, Id flag_aniso, Id iatt_time, Id iatt_angle, Id iatt_scaleu, Id iatt_scalev, Id iatt_scalew) |
void | st_get_closest_sample (DbGrid *dbgrid, Id ig, Db *dbpoint, Id ip, Id flag_aniso, Id iatt_time, Id iatt_angle, Id iatt_scaleu, Id iatt_scalev, Id iatt_scalew, Id *ipmin, double *ddmin, 1 &dvect) |
Id | st_next_sample (Id ip0_init, const 1 &rank, const 1 &xtab, double xtarget) |
static Id | st_locate_point_on_grid (const Db *db_point, const DbGrid *db_grid, 1 &coor, 1 &tab) |
static Id | st_locate_coor_on_grid (Id np, const 1 &coords, const DbGrid *db_grid, 1 &tab) |
static Id | st_larger_than_dmax (Id ndim, const 1 &dvect, Id distType, const 1 &dmax) |
static void | st_expand (Id flag_size, DbGrid *dbgrid, 1 &tab1, 1 &indg0, 1 &indg, 1 &tab2) |
Id | expand_point_to_coor (const Db *db1, Id iatt, const 1 &coords, 1 &tab) |
static double | st_distance (Id nvar, const 1 &data1, const 1 &data2, Id index1, Id index2) |
static void | st_randomassign (Id nclusters, Id nech, 1 &clusterid) |
static void | st_printclusterlist (Id nclusters, Id nech, const 1 &clusterid) |
static void | st_printclustercount (Id nclusters, Id nech, const 1 &clusterid) |
static void | st_getclustermeans (const 1 &data, Id nvar, Id nech, Id nclusters, const 1 &clusterid, 1 &cdata, 1 &cmask) |
static void | st_getclustermedian (const 1 &data, Id nvar, Id nech, Id nclusters, const 1 &clusterid, 1 &cdata, 1 &cache) |
static void | st_get_distmatrix (const 1 &data, Id nvar, Id nech, 1 &distmatrix) |
static void | st_getclustermedoids (Id nech, Id nclusters, const 1 &distmatrix, const 1 &clusterid, 1 ¢roids, 1 &errors) |
kclusters (const 1 &data, Id nvar, Id nech, Id nclusters, Id npass, Id mode, Id verbose) | |
kmedoids (const 1 &data, Id nvar, Id nech, Id nclusters, Id npass, Id verbose) | |
Id | compat_NDIM (Db *db1, Db *db2) |
void | db_grid_print (Db *db) |
Id | get_LOCATOR_NITEM (const Db *db, const ELoc &locatorType) |
double | distance_inter (const Db *db1, const Db *db2, Id iech1, Id iech2, double *dist_vect) |
double | distance_intra (const Db *db, Id iech1, Id iech2, double *dist_vect) |
double | distance_grid (DbGrid *db, Id flag_moins1, Id iech1, Id iech2, double *dist_vect) |
void | db_sample_print (Db *db, Id iech, Id flag_ndim, Id flag_nvar, Id flag_nerr, Id flag_blk) |
Id | db_center (Db *db, double *center) |
Id | db_grid_define_coordinates (DbGrid *db) |
Id | db_gradient_update (Db *db) |
Id | db_selref (Id ndim, const Id *nx, const Id *ref, const double *tabin, double *tabout) |
Id | db_locator_attribute_add (Db *db, const ELoc &locatorType, Id number, Id r_tem, double valinit, Id *iptr) |
Id | db_grid_copy (DbGrid *db1, DbGrid *db2, const Id *ind1, const Id *ind2, Id ncol, Id *cols) |
Id | db_grid_copy_dilate (DbGrid *db1, Id iatt1, DbGrid *db2, Id iatt2, Id mode, const Id *nshift) |
Id | point_to_point (Db *db, const double *coor) |
Id | point_to_grid (const DbGrid *db, const double *coor, Id flag_outside, Id *indg) |
Id | point_to_bench (const DbGrid *db, double *coor, Id flag_outside, Id *indb) |
Id | index_point_to_grid (const Db *dbin, Id iech, Id flag_outside, const DbGrid *dbout, double *coor) |
Id | point_inside_grid (Db *db, Id iech, const DbGrid *dbgrid) |
void | db_monostat (Db *db, Id iatt, double *wtot, double *mean, double *var, double *mini, double *maxi) |
Id | db_proportion (Db *db, DbGrid *dbgrid, Id nfac1max, Id nfac2max, Id *nclout) |
Id | db_merge (Db *db, Id ncol, Id *cols) |
void | db_locators_correct (VectorString &strings, const 1 ¤t, Id flag_locnew) |
Id | db_prop_read (DbGrid *db, Id ix, Id iy, double *props) |
Id | db_prop_write (DbGrid *db, Id ix, Id iy, double *props) |
db_distances_general (Db *db1, Db *db2, Id niso, Id mode, Id flag_same, Id *n1, Id *n2, double *dmin, double *dmax) | |
Id | is_grid_multiple (DbGrid *db1, DbGrid *db2) |
Id | db_gradient_modang_to_component (Db *db, Id ang_conv, Id iad_mod, Id iad_ang, Id iad_gx, Id iad_gy) |
Id | db_gradient_component_to_modang (Db *db, Id verbose, Id iad_gx, Id iad_gy, Id iad_mod, Id iad_ang, double scale, double ve) |
double | get_grid_value (DbGrid *dbgrid, Id iptr, 1 &indg, Id ix, Id iy, Id iz) |
void | set_grid_value (DbGrid *dbgrid, Id iptr, 1 &indg, Id ix, Id iy, Id iz, double value) |
DbGrid * | db_grid_reduce (DbGrid *db_grid, Id iptr, const Id *margin, const Id *limmin, Id flag_sel, Id flag_copy, Id verbose, double vmin, double vmax) |
Id | db_grid_patch (DbGrid *ss_grid, DbGrid *db_grid, Id iptr_ss, Id iptr_db, Id iptr_rank, Id new_rank, Id oper, Id verbose) |
Id | db_name_identify (Db *db, const String &string) |
void | grid_iterator_init (Grid *grid, const 1 &order) |
grid_iterator_next (Grid *grid) | |
static void | fft_free (void) |
static Id | factorize (Id nPass, Id *kt) |
static Id | fftradix (double Re[], double Im[], size_t nTotal, size_t nPass, size_t nSpan, Id iSign, Id maxFactors, Id maxPerm) |
static void | st_gradient (1 ¶m, 1 &lower, 1 &upper, 1 &scale, 1 &tabwgt, MatrixDense &Jr, 1 ¶m1, 1 ¶m2, 1 &tabmod1, 1 &tabmod2) |
static double | st_residuals (1 ¶m, 1 &tabexp, 1 &tabwgt, 1 &tabmod, 1 &residuals) |
static void | st_determine_gauss (MatrixDense &Jr, MatrixSquare &gauss) |
static double | st_norm_hgn (1 &hgn, 1 &scale) |
static double | st_essai (1 &hgnadm, 1 &grad_red, MatrixSquare &gauss_red) |
static Id | st_solve_hgnc (Id npar, const 1 &grad, const MatrixSquare &gauss, 1 &hgnc, Id flaginvsign) |
static void | st_fill_constraints (const MatrixDense &acont, 1 &grad, MatrixSquare &gauss) |
static Id | st_calcul0 (1 ¶m, 1 &lower, 1 &upper, 1 &scale, const MatrixDense &acont, 1 &tabwgt, 1 &residuals, MatrixDense &Jr, 1 &grad, MatrixSquare &gauss, 1 &hgnc, 1 ¶m1, 1 ¶m2, 1 &tabmod1, 1 &tabmod2) |
static Id | st_possibilities (Id npar, MatrixDense &bords, 1 &ai, 1 &hgnc, 1 &flag, 1 &temp) |
static Id | st_define_constraints (Id mode, MatrixDense &bords_red, 1 &ai_red, 1 &hgnc, MatrixDense &consts, 1 &flag, 1 &temp) |
static void | st_minimum (1 &, 1 &flag, MatrixDense &bords_red, const 1 &top, const 1 &bot, 1 &hgnc, 1 &hgnadm) |
static void | st_update_bords (MatrixDense &bords, 1 &ind_util, MatrixDense &bords_red) |
static Id | st_suppress_unused_constraints (MatrixDense &bords, 1 &ai, 1 &grad, MatrixSquare &gauss, 1 &hgnc, 1 &ind_util, MatrixDense &bords_red, 1 &ai_red, 1 &grad_red, MatrixSquare &gauss_red, 1 &flag1, 1 &flag2, 1 &temp) |
static Id | st_establish_minimization (Id nactive, 1 &ind_util, 1 &flag_active, MatrixDense &bords_red, 1 &ai_red, 1 &grad_red, MatrixSquare &gauss_red, Id *lambda_neg, 1 &hgnc, MatrixSquare &a, 1 &b, 1 &temp) |
static void | st_check (1 &ind_util, 1 &hgnc, const MatrixDense &acont) |
static Id | st_minimization_under_constraints (1 &ind_util, MatrixDense &bords_red, 1 &ai_red, 1 &grad_red, MatrixSquare &gauss_red, MatrixDense &consts, 1 &hgnc, 1 &hgnadm, 1 &flag_active, 1 &flag_actaux, MatrixSquare &a, 1 &b1, 1 &b2, 1 &b3, 1 &temp, const MatrixDense &acont) |
static void | st_constraints_init (1 &ind_util, 1 &ai) |
static void | st_define_bounds (1 ¶m, 1 &lower, 1 &upper, 1 &scale, double delta, MatrixDense &bords) |
static void | st_foxleg_debug_title (void) |
static void | st_foxleg_debug_current (double mscur, double delta, 1 ¶m) |
static void | st_linear_interpolate (double mscur, 1 ¶m, const MatrixDense &acont, 1 &tabexp, 1 &tabwgt, MatrixDense &bords, 1 &grad, double *msaux, 1 ¶maux, 1 &residuals, 1 &tabmod1) |
static Id | st_check_param (1 ¶m, 1 &lower, 1 &upper) |
Id | foxleg_f (Id ndat, Id npar, Id ncont, const MatrixDense &acont, 1 ¶m, 1 &lower, 1 &upper, 1 &scale, const Option_AutoFit &mauto, Id flag_title, void(*func_evaluate)(Id ndat, Id npar, 1 ¶m, 1 &work), 1 &tabexp, 1 &tabwgt) |
static void | error (Id flag) |
Id | time_3db (double *HS, double *T, Id NX, Id NY, Id NZ, Id BX, Id BY, Id BZ, double XS, double YS, double ZS, double HS_EPS_INIT, Id MSG) |
static Id | pre_init (void) |
static Id | init_point (void) |
static void | init_nearest (void) |
static void | init_cell (double vx, double vy, double vz, Id xl, Id yl, Id zl) |
static double | init_cellh (double vh, double vv, double hsc, double hsn) |
static Id | recursive_init (void) |
static Id | propagate_point (Id start) |
static void | free_ptrs () |
static double | exact_delay (double vx, double vy, double vz, Id xm, Id ym, Id zm) |
static Id | t_1d (Id x, Id y, Id z, double t0, double hs0, double hs1, double hs2, double hs3) |
static Id | diff_2d (Id x, Id y, Id z, double t0, double hs0, double hs1) |
static Id | point_diff (Id x, Id y, Id z, double t0, double hs0) |
static Id | t_2d (Id x, Id y, Id z, double t0, double t1, double hs0, double hs1) |
static Id | edge_diff (Id x, Id y, Id z, double t0, double t1, double hs0) |
static Id | t_3d_ (Id x, Id y, Id z, double t0, double tl, double tr, double td, double hs0, Id redundant) |
static Id | t_3d_part1 (Id x, Id y, Id z, double t0, double tl, double tr, double hs0) |
static Id | x_side (Id y_begin, Id y_end, Id z_begin, Id z_end, Id x, Id future) |
static Id | scan_x_ff (Id y_start, Id y_end, Id z_start, Id z_end, Id x0, Id x, Id x_s) |
static Id | scan_x_bf (Id y_begin, Id y_start, Id z_start, Id z_end, Id x0, Id x, Id x_s) |
static Id | scan_x_bb (Id y_begin, Id y_start, Id z_begin, Id z_start, Id x0, Id x, Id x_s) |
static Id | scan_x_fb (Id y_start, Id y_end, Id z_begin, Id z_start, Id x0, Id x, Id x_s) |
static Id | y_side (Id x_begin, Id x_end, Id z_begin, Id z_end, Id y, Id future) |
static Id | scan_y_ff (Id x_start, Id x_end, Id z_start, Id z_end, Id y0, Id y, Id y_s) |
static Id | scan_y_bf (Id x_begin, Id x_start, Id z_start, Id z_end, Id y0, Id y, Id y_s) |
static Id | scan_y_bb (Id x_begin, Id x_start, Id z_begin, Id z_start, Id y0, Id y, Id y_s) |
static Id | scan_y_fb (Id x_start, Id x_end, Id z_begin, Id z_start, Id y0, Id y, Id y_s) |
static Id | z_side (Id x_begin, Id x_end, Id y_begin, Id y_end, Id z, Id future) |
static Id | scan_z_ff (Id x_start, Id x_end, Id y_start, Id y_end, Id z0, Id z, Id z_s) |
static Id | scan_z_bf (Id x_begin, Id x_start, Id y_start, Id y_end, Id z0, Id z, Id z_s) |
static Id | scan_z_bb (Id x_begin, Id x_start, Id y_begin, Id y_start, Id z0, Id z, Id z_s) |
static Id | scan_z_fb (Id x_start, Id x_end, Id y_begin, Id y_start, Id z0, Id z, Id z_s) |
static void | st_print (const char *string) |
static void | st_read (const char *prompt, char *buffer) |
static void | st_exit (void) |
static Id | _stripToken (std::string &token, const char *format) |
static Id | _decodeToken (const std::string &token, const char *format, void *out) |
static | st_core (Id nli, Id nco) |
static | st_relative_position_array (Id neq) |
static void | st_global_init (Db *dbin, Db *dbout) |
static double | st_get_idim (Id loc_rank, Id idim) |
void | set_DBIN (Db *dbin) |
****************************************************************************/ *! | |
void | set_DBOUT (Db *dbout) |
static double | st_get_ivar (Id rank, Id ivar) |
****************************************************************************/ *! | |
static double | st_get_verr (Id rank, Id ivar) |
static Id | st_check_environment (Id flag_in, Id flag_out, Model *model) |
static Id | st_model_manage (Id mode, Model *model) |
static Id | st_krige_manage_basic (Id mode, Id nech, Id nmax, Id nvar, Id nfeq) |
static Id | st_get_nmax (ANeigh *neigh) |
static Id | st_krige_manage (Id mode, Id nvar, Model *model, ANeigh *neigh) |
static Id | st_block_discretize_alloc (Id ndim, const 1 &ndiscs) |
static void | st_data_discretize_alloc (Id ndim) |
static void | st_block_discretize (Id mode, Id flag_rand, Id iech) |
Id | krige_koption_manage (Id mode, Id flag_check, const EKrigOpt &calcul, Id flag_rand, const 1 &ndiscs) |
void | krige_lhs_print (Id nech, Id neq, Id nred, const Id *flag, const double *lhs) |
void | krige_rhs_print (Id nvar, Id nech, Id neq, Id nred, const Id *flag, double *rhs) |
static void | st_krige_wgt_print (Id status, Id nvar, Id nvar_m, Id nfeq, const 1 &nbgh_ranks, Id nred, Id icase, const Id *flag, const double *wgt) |
static void | st_result_kriging_print (Id flag_xvalid, Id nvar, Id status) |
Id | _krigsim (Db *dbin, Db *dbout, const Model *model, ANeigh *neigh, bool flag_bayes, const 1 &dmean, const MatrixSymmetric &dcov, Id icase, Id nbsimu, bool flag_dgm) |
Id | global_transitive (DbGrid *dbgrid, Model *model, Id flag_verbose, Id flag_regular, Id ndisc, double *abundance, double *sse, double *cvtrans) |
static Id | st_get_limits (DbGrid *db, double top, double bot, Id *ideb, Id *ifin) |
static Id | st_get_neigh (Id ideb, Id ifin, Id neigh_radius, Id *status, Id *nbefore, Id *nafter) |
static double | st_cov_exp (Id dist, const double *cov, Id cov_radius, Id flag_sym) |
static void | st_lhs_exp (double *covdd, Id cov_radius, Id flag_sym, Id nfeq, Id nbefore, Id nafter, Id neq) |
static void | st_rhs_exp (double *covd0, Id cov_radius, Id flag_sym, Id nfeq, Id nbefore, Id nafter, Id neq) |
static double | st_estim_exp (Db *db, const double *wgt, Id nbefore, Id nafter) |
Id | anakexp_f (DbGrid *db, double *covdd, double *covd0, double top, double bot, Id cov_radius, Id neigh_radius, Id flag_sym, Id nfeq) |
static void | st_calculate_covres (DbGrid *db, Model *model, const double *cov_ref, Id cov_radius, Id flag_sym, const Id cov_ss[3], const Id cov_nn[3], double *cov_res) |
static void | st_calculate_covtot (DbGrid *db, Id ix0, Id iy0, Id flag_sym, const Id cov_ss[3], const Id cov_nn[3], Id *num_tot, double *cov_tot) |
static | st_neigh_find (DbGrid *db, Id ix0, Id iy0, Id iz0, const Id nei_ss[3], const Id nei_nn[3], Id *nei_cur) |
static Id | st_neigh_diff (const Id nei_ss[3], const Id nei_nn[3], Id *nei_ref, const Id *nei_cur) |
static void | st_lhs_exp_3D (Id nech, Id nfeq, const Id nei_ss[3], const Id nei_nn[3], const Id cov_ss[3], const Id cov_nn[3], const Id *nei_cur, const double *cov_tot, double nugget) |
static void | st_rhs_exp_3D (Id nech, Id nfeq, const Id nei_ss[3], const Id nei_nn[3], const Id cov_ss[3], const Id cov_nn[3], const Id *nei_cur, const double *cov_res) |
static double | st_estim_exp_3D (Db *db, const Id nei_ss[3], const Id nei_nn[3], Id *nei_cur, const double *weight) |
static void | st_vario_dump (FILE *file, Id ix0, Id iy0, const Id cov_ss[3], const Id cov_nn[3], const Id *num_tot, const double *cov_tot) |
Id | anakexp_3D (DbGrid *db, double *cov_ref, Id cov_radius, Id neigh_ver, Id neigh_hor, Id flag_sym, Model *model, double nugget, Id nfeq, Id dbg_ix, Id dbg_iy) |
static | st_ranks_other (Id nech, const 1 &ranks1, const 1 &ranks2) |
static Id | st_sampling_krige_data (Db *db, Model *model, double beta, 1 &ranks1, 1 &ranks2, 1 &rother, Id *ntot_arg, Id *nutil_arg, 1 &rutil, 1 &tutil, 1 &invsig) |
Id | st_krige_data (Db *db, Model *model, double beta, 1 &ranks1, 1 &ranks2, 1 &rother, Id flag_abs, double *data_est, double *data_var) |
Id | st_crit_global (Db *db, Model *model, 1 &ranks1, 1 &rother, double *crit) |
Id | sampling_f (Db *db, Model *model, double beta, Id method1, Id nsize1_max, 1 &ranks1, Id method2, Id nsize2_max, 1 &ranks2, Id verbose) |
Id | krigsampling_f (Db *dbin, Db *dbout, Model *model, double beta, 1 &ranks1, 1 &ranks2, bool flag_std, Id verbose) |
static void | st_declustering_stats (Id mode, Id method, Db *db, Id iptr) |
static void | st_declustering_truncate_and_rescale (Db *db, Id iptr) |
static Id | st_declustering_1 (Db *db, Id iptr, const 1 &radius) |
static Id | st_declustering_2 (Db *db, Model *model, ANeigh *neigh, Id iptr) |
static Id | st_declustering_3 (Db *db, Db *dbgrid, Model *model, ANeigh *neigh, const 1 &ndiscs, Id iptr) |
static | st_calcul_covmat (const char *title, Db *db1, Id test_def1, Db *db2, Id test_def2, Model *model) |
static | st_calcul_drfmat (const char *title, Db *db1, Id test_def1, Model *model) |
static | st_calcul_distmat (const char *title, Db *db1, Id test_def1, Db *db2, Id test_def2, double power) |
static | st_calcul_product (const char *title, Id n1, Id ns, const 1 &covss, const 1 &distgen) |
static | st_inhomogeneous_covpp (Db *dbdat, Db *dbsrc, Model *model_dat, const 1 &distps, const 1 &prodps) |
static | st_inhomogeneous_covgp (Db *dbdat, Db *dbsrc, Db *dbout, Id flag_source, Model *model_dat, const double *distps, const double *prodps, const double *prodgs) |
static | st_inhomogeneous_covgg (Db *dbsrc, Db *dbout, Id flag_source, Model *model_dat, const double *distgs, const 1 &prodgs) |
static Id | st_drift_prepar (Id np, Id nbfl, const double *covpp, const double *drftab, 1 &ymat, 1 &zmat) |
static void | st_drift_update (Id np, Id nbfl, const double *covgp, const double *driftg, const double *ymat, double *zmat, double *maux, double *lambda, double *mu) |
Id | inhomogeneous_kriging (Db *dbdat, Db *dbsrc, Db *dbout, double power, Id flag_source, Model *model_dat, Model *model_src) |
static void | st_tableone_manage (CTables *ctables, Id mode, Id rank, Id *nb_used, Id *nb_max) |
static void | st_tableone_getrank (const CTables *ctables, double low, double up, Id *indmin, Id *indmax) |
static double | _getTolInvert () |
void | matrix_product_safe (Id n1, Id n2, Id n3, const double *v1, const double *v2, double *v3) |
Id | matrix_prod_norme (Id transpose, Id n1, Id n2, const double *v1, const double *a, double *w) |
void | matrix_transpose (Id n1, Id n2, 1 &v1, 1 &w1) |
Id | matrix_invert (double *a, Id neq, Id rank) |
double | matrix_determinant (Id neq, const 1 &b) |
Id | matrix_cholesky_decompose (const double *a, double *tl, Id neq) |
void | matrix_combine (Id nval, double coeffa, const double *a, double coeffb, const double *b, double *c) |
static LMlayers * | lmlayers_free (LMlayers *lmlayers) |
static Id | st_get_number_drift (Id irf_rank, Id flag_ext) |
static LMlayers * | lmlayers_alloc (Id flag_same, Id flag_vel, Id flag_cumul, Id flag_ext, Id flag_z, Id colrefd, Id colreft, Id colrefb, Id irf_rank, Id match_time, Id nlayers) |
static void | lmlayers_print (LMlayers *lmlayers) |
static Id | st_locate_sample_in_output (LMlayers *lmlayers, Db *dbin, DbGrid *dbout, Id iech, Id *igrid) |
static void | st_check_layer (const char *string, LMlayers *lmlayers, Id ilayer0) |
static Id | st_get_props_result (LMlayers *lmlayers, Db *dbout, Id iech, Id ilayer0, 1 &props) |
static Id | st_get_props_data (LMlayers *lmlayers, Db *dbin, DbGrid *dbout, Id iech, Id ilayer0, 1 &props) |
static double | st_get_drift_result (LMlayers *lmlayers, Db *dbout, Id iech, Id ilayer0) |
static double | st_get_drift_data (LMlayers *lmlayers, Db *dbin, DbGrid *dbout, Id iech, Id ilayer0) |
static void | st_covariance_c00 (LMlayers *lmlayers, Model *model, const 1 &prop1, MatrixSquare &covtab, double *c00) |
static double | st_cij (LMlayers *lmlayers, Model *model, Id ilayer, const 1 &prop1, Id jlayer, const 1 &prop2, const double *dd, MatrixSquare &covtab) |
static double | st_ci0 (LMlayers *lmlayers, Model *model, Id ilayer, const 1 &prop1, Id jlayer, const double *dd, MatrixSquare &covtab) |
static Id | st_drift (LMlayers *lmlayers, const double *coor, double propval, double drext, Id *ipos_loc, 1 &b) |
static Id | st_lhs_one (LMlayers *lmlayers, Db *dbin, DbGrid *dbout, Model *model, 1 &seltab, Id iech0, Id ilayer0, double *coor, 1 &prop0, 1 &prop2, MatrixSquare &covtab, 1 &b) |
static Id | st_rhs (LMlayers *lmlayers, Db *dbin, DbGrid *dbout, Model *model, double *coor, 1 &seltab, Id iechout, Id ilayer0, 1 &prop0, 1 &prop2, MatrixSquare &covtab, 1 &b) |
static Id | st_lhs (LMlayers *lmlayers, Db *dbin, DbGrid *dbout, Model *model, 1 &seltab, 1 &prop1, 1 &prop2, MatrixSquare &covtab, double *a, double *acov) |
static void | st_data_vector (LMlayers *lmlayers, Db *dbin, DbGrid *dbout, 1 &seltab, 1 &zval) |
static Id | st_subtract_optimal_drift (LMlayers *lmlayers, Id verbose, Db *dbin, DbGrid *dbout, 1 &seltab, 1 &zval) |
static Id | st_get_close_sample (LMlayers *lmlayers, Db *dbin, Id iech0, const double *coor) |
static Id | st_collocated_prepare (LMlayers *lmlayers, Id iechout, double *coor, Db *dbin, DbGrid *dbout, Model *model, 1 &seltab, double *a, 1 &zval, 1 &prop1, 1 &prop2, MatrixSquare &covtab, double *b2, 1 &baux, double *ratio) |
static void | st_estimate_regular (LMlayers *lmlayers, Id flag_std, double c00, double *a, 1 &b, double *dual, double *wgt, double *estim, double *stdev) |
static void | st_estimate_bayes (LMlayers *lmlayers, Id flag_std, double c00, const double *acov, 1 &zval, 1 &b, double *wgt, double *post_mean, double *a0, double *cc, double *ss, const double *gs, double *estim, double *stdev) |
static void | st_estimate (LMlayers *lmlayers, Db *dbin, DbGrid *dbout, Model *model, 1 &seltab, Id flag_bayes, Id flag_std, double *a, 1 &zval, double *dual, 1 &prop1, 1 &prop2, MatrixSquare &covtab, 1 &b, double *b2, 1 &baux, double *wgt, double *c00, 1 &, double *a0, double *cc, double *ss, double *gs, double *, double *post_mean) |
static Id | st_check_auxiliary_variables (LMlayers *lmlayers, Db *dbin, DbGrid *dbout, 1 &seltab) |
static void | st_convert_results (LMlayers *lmlayers, Db *dbout, Id flag_std) |
static Id | st_drift_data (LMlayers *lmlayers, Db *dbin, DbGrid *dbout, 1 &seltab, 1 &prop1, 1 &fftab) |
static Id | st_drift_bayes (LMlayers *lmlayers, Id verbose, double *prior_mean, const double *prior_vars, double *acov, 1 &zval, 1 &fftab, double *a0, double *cc, double *ss, double *gs, double *post_mean, double *post_S) |
Id | multilayers_kriging (Db *dbin, DbGrid *dbout, Model *model, ANeigh *neigh, Id flag_same, Id flag_z, Id flag_vel, Id flag_cumul, Id flag_ext, Id flag_std, Id flag_bayes, Id irf_rank, Id match_time, Id dim_prior, double *prior_mean, double *prior_vars, Id colrefd, Id colreft, Id colrefb, Id verbose) |
static Id | st_evaluate_lag (LMlayers *lmlayers, Db *dbin, DbGrid *dbout, Vario_Order *vorder, Id nlayers, Id ifirst, Id ilast, 1 &zval, Id *nval, double *distsum, Id *stat, 1 &phia, 1 &phib, double *atab, double *btab) |
static Id | st_varioexp_chh (LMlayers *lmlayers, Id verbose, Db *dbin, DbGrid *dbout, Vario_Order *vorder, 1 &zval, Id idir, Vario *vario) |
Id | multilayers_vario (Db *dbin, DbGrid *dbout, Vario *vario, Id nlayers, Id flag_vel, Id flag_ext, Id irf_rank, Id match_time, Id colrefd, Id colreft, Id verbose) |
static Id | st_get_prior (Id nech, Id npar, 1 &zval, 1 &fftab, double *mean, double *vars) |
Id | multilayers_get_prior (Db *dbin, DbGrid *dbout, Model *model, Id flag_same, Id flag_vel, Id flag_ext, Id irf_rank, Id match_time, Id colrefd, Id colreft, Id colrefb, Id verbose, Id *npar_arg, 1 &mean, 1 &vars) |
Model * | model_duplicate_for_gradient (const Model *model, double ball_radius) |
void | model_cova_characteristics (const ECov &type, char cov_name[STRING_LENGTH], Id *flag_range, Id *flag_param, Id *min_order, Id *max_ndim, Id *flag_int_1d, Id *flag_int_2d, Id *flag_aniso, Id *flag_rotation, double *scale, double *parmax) |
Model * | model_combine (const Model *model1, const Model *model2, double r) |
Id | model_covmat_inchol (Id verbose, Db *db, Model *model, double eta, Id npivot_max, Id nsize1, const Id *ranks1, const double *center, Id flag_sort, Id *npivot_arg, 1 &pvec, 1 &Gmatrix, const CovCalcMode *mode) |
static Id | st_velocity_minmax (Id nech, double *vv, double *v0, double *v1, double *vmin, double *vmax) |
static void | st_yxtoxy (Id nx, double dx, double x0, const double *y, Id ny, double dy, double y0, double xylo, double xyhi, double *x) |
static double | dsinc (double x) |
static void | stoepd (Id n, const double *r, const double *g, double *f, double *a) |
static void | st_mksinc (double d, Id lsinc, double *sinc) |
static void | st_intt8r (Id ntable, double table[][LTABLE], Id nxin, double dxin, double fxin, const double *yin, double yinl, double yinr, Id nxout, const double *xout, double *yout) |
static void | st_weights (double table[][LTABLE]) |
static void | st_seismic_debug (Id rankz, Id nz, double z0, double dz, Id rankt, Id nt, double t0, double dt, double vmin, double vmax) |
static void | st_copy (Id mode, DbGrid *db, Id iatt, Id ival, double *tab) |
static Id | st_match (DbGrid *db_z, DbGrid *db_t) |
static void | st_seismic_z2t_convert (DbGrid *db_z, Id iatt_z, Id nz, double z0, double, double dz, DbGrid *db_t, Id iatt_t, Id nt, double t0, double t1, double dt, DbGrid *db_v, Id iatt_v, Id natt, double *tz, double *zt, double *at, double *az) |
static void | st_seismic_t2z_convert (DbGrid *db_t, Id iatt_t, Id nt, double t0, double t1, double dt, DbGrid *db_z, Id iatt_z, Id nz, double z0, double z1, double dz, DbGrid *db_v, Id iatt_v, Id natt, double *tz, double *zt, double *at, double *az) |
static double | TR_IN (Db *db, Id iatt_in, Id iatt, Id itrace, Id it) |
static void | TR_OUT (Db *db, Id iatt_out, Id iatt, Id itr, Id it, double value) |
static Id | st_seismic_operate (Db *db, Id oper, Id natt, Id nt, Id iatt_in, Id iatt_out, double dt) |
static | st_seismic_wavelet (Id verbose, Id type, Id ntw, Id tindex, double dt, double fpeak, double period, double amplitude, double distort) |
static void | st_seismic_convolve (Id nx, Id ix0, const double *x, Id ny, Id iy0, const double *y, Id nz, Id iz0, double *z) |
static void | st_seismic_affect (Db *, Id nz, Id shift, double val_before, double val_middle, double val_after, const double *tab0, double *tab1) |
static void | st_seismic_contrast (Id nz, double *tab) |
static Id | st_absolute_index (DbGrid *db, Id ix, Id iz) |
static void | st_sample_remove_central (ST_Seismic_Neigh *ngh) |
static void | st_sample_add (DbGrid *db, Id iatt_z1, Id iatt_z2, Id flag_test, Id ix, Id iz, ST_Seismic_Neigh *ngh) |
static void | st_estimate_check_presence (DbGrid *db, Id ivar, Id *npres, Id *presence) |
static void | st_estimate_neigh_init (ST_Seismic_Neigh *ngh) |
static ST_Seismic_Neigh * | st_estimate_neigh_management (Id mode, Id nvois, ST_Seismic_Neigh *ngh) |
static Id | st_estimate_neigh_unchanged (ST_Seismic_Neigh *ngh_old, ST_Seismic_Neigh *ngh_cur) |
static void | st_estimate_neigh_copy (ST_Seismic_Neigh *ngh_cur, ST_Seismic_Neigh *ngh_old) |
static void | st_estimate_neigh_print (ST_Seismic_Neigh *ngh, Id ix0, Id iz0) |
static Id | st_estimate_neigh_create (DbGrid *db, Id flag_exc, Id iatt_z1, Id iatt_z2, Id ix0, Id iz0, Id nbench, Id nv2max, Id[2], 1 &presence, ST_Seismic_Neigh *ngh) |
static void | st_estimate_flag (ST_Seismic_Neigh *ngh, Id nfeq, Id *flag, Id *nred) |
static void | st_estimate_var0 (Model *model, double *var0) |
static void | st_estimate_c00 (Model *model, double *c00) |
static void | st_estimate_lhs (ST_Seismic_Neigh *ngh, Model *model, Id nfeq, Id nred, Id *flag, double *lhs) |
static void | st_estimate_rhs (ST_Seismic_Neigh *ngh, Model *model, Id nfeq, Id nred, Id *flag, double *rhs) |
static void | st_wgt_print (ST_Seismic_Neigh *ngh, Id nvar, Id nech, Id nred, const Id *flag, const double *wgt) |
static Id | st_estimate_wgt (ST_Seismic_Neigh *ngh, Model *, Id nred, Id *flag, double *lhs, double *rhs, double *wgt) |
static void | st_estimate_result (Db *db, ST_Seismic_Neigh *ngh, Id flag_std, Id, Id nred, const Id *flag, const double *wgt, const double *rhs, const double *var0, Id *iatt_est, Id *iatt_std) |
static void | st_simulate_result (DbGrid *db, Id ix0, Id iz0, ST_Seismic_Neigh *ngh, Id nbsimu, Id, Id nred, const Id *flag, const double *wgt, const double *rhs, const double *c00, Id *iatt_sim) |
static Id | st_estimate_sort (const Id *presence, Id *rank) |
static void | st_copy_attribute (Db *db, Id nbsimu, Id *iatt) |
static void | st_simulation_environment (void) |
static Id | st_facies (PropDef *propdef, Id ipgs, Id ifac) |
void | simu_func_categorical_transf (Db *db, Id verbose, Id isimu, Id nbsimu) |
void | simu_func_continuous_update (Db *db, Id verbose, Id isimu, Id nbsimu) |
void | simu_func_categorical_update (Db *db, Id verbose, Id isimu, Id nbsimu) |
void | simu_func_continuous_scale (Db *db, Id verbose, Id nbsimu) |
void | simu_func_categorical_scale (Db *db, Id verbose, Id nbsimu) |
void | check_mandatory_attribute (const char *method, Db *db, const ELoc &locatorType) |
static Id | st_keep (Id flag_gaus, Id flag_prop, Id file, Id type) |
static Id | st_check_simtub_environment (Db *dbin, Db *dbout, Model *model, ANeigh *neigh) |
static void | st_suppress_added_samples (Db *db, Id nech) |
static void | st_check_facies_data2grid (Db *dbin, Db *dbout, Id flag_check, Id flag_show, Id ipgs, Id nechin, Id nfacies, Id nbsimu) |
Id | db_simulations_to_ce (Db *db, const ELoc &locatorType, Id nbsimu, Id nvar, Id *iptr_ce_arg, Id *iptr_cstd_arg) |
Id | simtub_constraints (Db *dbin, Db *dbout, Model *model, ANeigh *neigh, Id seed, Id nbtuba, Id nbsimu_min, Id nbsimu_quant, Id niter_max, 1 &cols, Id(*func_valid)(Id flag_grid, Id nDim, Id nech, Id *nx, double *dx, double *x0, double nonval, double percent, 1 &tab)) |
static Id | st_maxstable_mask (Db *dbout, double seuil, double scale, Id iptrv, Id iptrs) |
static void | st_maxstable_combine (Db *dbout, double scale, Id iter0, Id iptrg, Id iptrv, Id iptrr, Id *last) |
Id | simmaxstable (Db *dbout, Model *model, double ratio, Id seed, Id nbtuba, Id flag_simu, Id flag_rank, Id verbose) |
static double | st_quantile (Db *dbout, double proba, double *sort) |
Id | simRI (Db *dbout, Model *model, Id ncut, double *zcut, double *wcut, Id seed, Id nbtuba, Id verbose) |
Id | simcond (Db *dbin, Db *dbout, Model *model, Id seed, Id nbsimu, Id nbtuba, Id gibbs_nburn, Id gibbs_niter, Id flag_check, Id flag_ce, Id flag_cstd, Id verbose) |
static Id | st_getTimeInterval (double date, Id ntime, double time0, double dtime) |
static Id | st_getFACIES (const DbGrid *dbgrid, Id nfacies, Id indFacies, Id iech) |
static double | st_getPORO (const DbGrid *dbgrid, Id indPoro, Id iech) |
static double | st_getDATE (const DbGrid *dbgrid, Id indDate, Id iech) |
static Id | st_getFLUID (const DbGrid *dbgrid, Id nfluids, Id indFluid, Id iech) |
static double | st_htop_evaluate () |
static void | st_get_coordinates (const double *pt_out, Id *ix, Id *iy, SPIMG *image=SPIMG_OUT, bool flag_center=false) |
static void | st_dump (bool flagMain, const String &title, double *pt_out, SPIMG *image) |
static void | st_blank_center (SPIMG *image) |
static void | st_copy_center (Id mode, Id iatt, SPIMG *image, double defval) |
static void | st_extract_center (SPIMG *image, Id iatt) |
static void | st_change (double *pt_out, double value) |
static void | st_convert (double hspill) |
static SPIMG * | st_image_free (SPIMG *image) |
static SPIMG * | st_image_alloc (double value) |
static void | st_heap_add (double *p) |
static double * | st_heap_del (void) |
static Id | st_traite (double *pt_out, double *pt_vois) |
static void | st_print () |
static void | st_final_stats (double hspill, Id ix0, Id iy0) |
Id | spill_point (DbGrid *dbgrid, Id ind_depth, Id ind_data, Id option, bool flag_up, Id verbose_step, double hmax, double *h, const double *th, Id *ix0, Id *iy0) |
static double | st_extract_subgrid (Id verbose, Id flag_ffff, Id iech0, Id nech0, Id ntot, DbGrid *dbgrid, Id *ind0, Id *ixyz, Id *nxyz, double *numtab1, double *valtab1) |
static Id | st_divide_by_2 (Id *nxyz, Id orient) |
static void | st_mean_arith (Id idim, const Id *nxyz1, const Id *nxyz2, const double *numtab1, double *numtab2, double *valtab1, double *valtab2) |
static void | st_mean_harmo (Id idim, const Id *nxyz1, const Id *nxyz2, const double *numtab1, double *numtab2, double *valtab1, double *valtab2) |
static Id | st_recopy (const Id *nxyz1, const double *numtab1, const double *valtab1, Id *nxyz2, double *numtab2, double *valtab2) |
static void | st_print_grid (const char *subtitle, Id nxyz[3], double *numtab, double *valtab) |
static void | st_print_upscale (const char *title, Id *nxyz, const double *valtab) |
static void | st_upscale (Id orient, Id *nxyz, Id flag_save, double *numtab0, double *numtab1, double *numtab2, double *valtab0, double *valtab1, double *valtab2, double *res1, double *res2) |
static Id | st_is_subgrid (Id verbose, const char *title, DbGrid *dbgrid1, DbGrid *dbgrid2, Id *ind0, Id *nxyz, Id *ntot) |
Id | db_upscale (DbGrid *dbgrid1, DbGrid *dbgrid2, Id orient, Id verbose) |
static double | st_squared_distance (Id orient, Id ndim, const Id *locini, const Id *loccur) |
static void | st_sample_to_grid (Id ndim, Id ntot, const Id *nxyz, Id iech, Id *indg) |
static Id | st_grid_to_sample (Id ndim, const Id *nxyz, const Id *indg) |
static Id | st_fixed_position (Id ntot, const double *tab, Id cell) |
static Id | st_find_cell (Id ntot, const double *tab, double proba) |
static void | st_migrate_seed (Id ndim, Id n_nbgh, Id *nxyz, const Id *nbgh, double *valwrk, const double *valtab0, Id *locwrk, Id *loccur) |
static void | st_print_position (Id ndim, Id iseed, Id iter, Id *tab) |
static void | st_updiff (Id orient, Id ndim, Id ntot, Id nseed, Id niter, Id n_nbgh, Id flag_save, double probtot, Id *nxyz, Id *nbgh, Id *tabini, Id *tabcur, Id *tabwrk, double *valwrk, double *valtab0, Id verbose, double *cvdist2, double *trsave) |
static void | st_update_regression (double x, double y, double *count, double *sum_x, double *sum_y, double *sum_xx, double *sum_xy) |
static double | st_get_diff_coeff (Id niter, Id verbose, double pmid, Id flag_save, double *cvdist2, double *cvsave) |
Id | db_diffusion (DbGrid *dbgrid1, DbGrid *dbgrid2, Id orient, Id niter, Id nseed, Id seed, Id verbose) |
Id | stats_residuals (Id verbose, Id nech, const double *tab, Id ncut, double *zcut, Id *nsorted, double *mean, double *residuals, double *T, double *Q) |
static Id | st_proportion_locate (PropDef *propdef, Id ifac_ref) |
static Id | st_proportion_transform (PropDef *propdef) |
static Id | st_proportion_changed (PropDef *propdef) |
static Id | st_proportion_define (PropDef *propdef, const Db *db, Id iech, Id isimu, Id nbsimu, Id *jech) |
Id | _db_rule (Db *db, const RuleProp *ruleprop, Model *model, const NamingConvention &namconv) |
Id | db_bounds_shadow (Db *db, Db *dbprop, RuleShadow *rule, Model *model, const 1 &props, Id flag_stat, Id nfacies) |
Id | _db_bounds (Db *db, const RuleProp *ruleprop, Model *model, const NamingConvention &namconv) |
Id | _db_threshold (Db *db, const RuleProp *ruleprop, Model *model, const NamingConvention &namconv) |
static Id | st_match_keypair (const char *keyword, Id flag_exact) |
static Keypair * | st_get_keypair_address (const char *keyword) |
static void | st_keypair_attributes (Keypair *keypair, Id mode, Id origin, Id, Id ncol) |
static void | st_keypair_allocate (Keypair *keypair, Id nrow, Id ncol) |
static void | st_keypair_copy (Keypair *keypair, Id type, Id start, void *values) |
static void | del_keypone (Id indice) |
double | ut_distance (Id ndim, const double *tab1, const double *tab2) |
void | ut_distance_allocated (Id ndim, double **tab1, double **tab2) |
ut_split_into_two (Id ncolor, Id flag_half, Id verbose, Id *nposs) | |
static Relem * | st_relem_alloc (Split *old_split) |
static Split * | st_split_alloc (Relem *old_relem) |
static Id | st_define_fipos (Id oper, Id side) |
static void | st_relem_define (Relem *relem, Id nfacies, const 1 &facies, Id side, const Id *poss) |
static void | st_rule_print (Id rank, Id nbyrule, const 1 &rules, const 1 &fipos, bool flag_rank, Id flag_similar, Id flag_igrf, double score) |
static void | st_rules_print (const char *title, Id nrule, Id nbyrule, const 1 &rules, const 1 &fipos) |
static void | st_relem_subdivide (Relem *relem0, Id half, Id noper) |
static Split * | st_split_free (Split *split) |
static Relem * | st_relem_free (Relem *relem) |
static void | st_variogram_define_vars (Vario *vario, const Rule *rule, Id ngrf) |
static void | st_set_bounds (Db *db, Id flag_one, Id ngrf, Id nfacies, Id ifac, Id iech, double t1min, double t1max, double t2min, double t2max) |
static void | st_set_rho (double rho, Local_Pgs *local_pgs) |
static double | st_get_proba_ind (double correl, double *low, double *up, Id iconf) |
static Id | st_calculate_thresh_stat (Local_Pgs *local_pgs) |
static Id | st_vario_pgs_variable (Id mode, Id ngrf, Id nfacies, Id flag_one, Id flag_prop, Db *db, PropDef *propdef, const Rule *rule) |
static Rule * | st_rule_encode (const Id *string) |
static double | st_extract_trace (Local_Pgs *local_pgs) |
static void | st_variogram_patch_C00 (Local_Pgs *local_pgs, Vario *vario, Id idir, double rho) |
static void | trace_add_row (Local_Pgs *local_pgs) |
static double | st_func_search_stat (double correl, void *user_data) |
static double | st_func_search_nostat (double correl, void *user_data) |
static void | trace_define (Local_Pgs *local_pgs, double value0, double value1, Id origin, Id number, const double *values) |
static Id | st_varcalc_from_vario_stat (Vario *vario, Local_Pgs *local_pgs, Id ngrf) |
static void | st_define_trace (Id flag_rho, Id flag_correl, Local_Pgs *local_pgs) |
static void | st_retrace_define (Local_Pgs *local_pgs) |
static void | st_varcalc_uncorrelated_grf (Local_Pgs *local_pgs, Id idir) |
static double | st_rule_calcul (Local_Pgs *local_pgs, Id *string) |
static Id | st_permut (Id value, Id igrf) |
static Id | st_fipos_encode (1 &fgrf) |
static void | st_fipos_decode (Id fipos, 1 &fgrf) |
static Id | st_update_orientation (Id fac0, Id igrf_cas, 1 &fgrf) |
static Id | st_same_score (Relem *relem, Id ir0, Id igrf_cas, 1 &fgrf, 1 &fcmp) |
static | st_relem_evaluate (Relem *relem, Id verbose, 1 &fgrf, 1 &fcmp, Local_Pgs *local_pgs, Id *nscore, Id *r_opt) |
static void | st_rule_glue (Relem *relem, Id nrule1, Id nbyrule1, const 1 &rules1, const 1 &fipos1) |
static void | st_rule_product (Split *split, Id nprod, Id nrule1, Id nbyrule1, const 1 &rules1, const 1 &fipos1, Id nrule2, Id nbyrule2, const 1 &rules2, const 1 &fipos2) |
static void | st_split_collapse (Split *split, Id verbose) |
static void | st_relem_explore (Relem *relem, Id verbose) |
static Id | invgen (MatrixSymmetric &a, MatrixSymmetric &tabout) |
static Id | st_index (Id i, Id j) |
static | st_compute_params (Local_CorPgs *corpgs, 1 ¶ms_in) |
static void | st_build_correl (Local_CorPgs *corpgs, 1 ¶ms_in, MatrixSymmetric &correl) |
static void | st_update_constraints (Local_CorPgs *corpgs, 1 &Grad, MatrixSymmetric &Hess) |
static void | st_update_constraints_with_JJ (Local_CorPgs *corpgs, 1 &Grad, MatrixSymmetric &Hess, MatrixSymmetric &JJ) |
static void | st_deriv_eigen (Local_CorPgs *corpgs, double eigval, const MatrixSquare *ev, 1 &d1, MatrixSymmetric &d2) |
static double | st_param_expand (Local_Pgs *local_pgs, Id igrf, Id jgrf, Id idir) |
static void | st_set_modif (Local_CorPgs *corpgs) |
static void | st_define_corpgs (Id option, Id flag_rho, double rho, Local_Pgs *local_pgs) |
static Id | st_get_count (Local_Pgs *local_pgs, Id ifac1, Id ifac2) |
static double | st_rkl (Id maxpts, double x, double y, 1 &lower, 1 &upper, MatrixSymmetric &corr1, MatrixSquare &covar, MatrixSquare &temp) |
static double | st_ikl (Id maxpts, Id index1, Id index2, 1 &lower, 1 &upper, MatrixSymmetric &correl) |
static double | st_nkl (1 &u, double lower, double upper, 1 &invvari, Id index2, double meanj, double varj, double stdj) |
static double | st_d2_dkldkl (Id maxpts, Id index1, Id index2, 1 &lower, 1 &upper, MatrixSymmetric &correl) |
static double | st_d2_dkldij (1 &lower, 1 &upper, MatrixSymmetric &correl) |
static double | st_d2_dkldkj (Id index1, Id index2, 1 &lower, 1 &upper, MatrixSymmetric &correl) |
static double | st_calcul_stat (Local_Pgs *local_pgs, Id flag_deriv, Id flag_reset, MatrixSymmetric &correl, 1 &Grad, MatrixSymmetric &Hess, MatrixSymmetric &JJ) |
static double | st_calcul_nostat (Local_Pgs *local_pgs, Id flag_deriv, Id flag_reset, MatrixSymmetric &correl, 1 &Grad, MatrixSymmetric &Hess, MatrixSymmetric &JJ) |
static double | st_calcul (Local_Pgs *local_pgs, Id flag_deriv, Id flag_reset, 1 ¶ms, 1 &Grad, MatrixSymmetric &Hess, MatrixSymmetric &JJ) |
static void | st_initialize_params (Local_CorPgs *corpgs) |
static double | st_optim_onelag_pgs (Local_Pgs *local_pgs, double tolsort, Id new_val) |
static Id | st_discard_point (Local_Pgs *local_pgs, Id iech) |
static Id | st_variogram_geometry_pgs_final (Local_Pgs *local_pgs) |
static void | st_variogram_geometry_pgs_correct (Local_Pgs *local_pgs, Vario *vario, Id idir) |
static Id | st_variogram_geometry_pgs_calcul (Local_Pgs *local_pgs, Vario *vario, Id idir) |
static void | st_set_opt_correl (Id opt, Local_CorPgs *corpgs) |
static double | st_varcalc_correlated_grf (Local_Pgs *local_pgs, Id idir) |
static void | st_manage_corpgs (Local_CorPgs *local_corpgs) |
static void | st_manage_trace (Local_TracePgs *local_tracepgs) |
static void | st_manage_pgs (Id mode, Local_Pgs *local_pgs, Db *db=nullptr, const Rule *rule=nullptr, Vario *vario=nullptr, Vario *varioind=nullptr, Model *model=nullptr, PropDef *propdef=nullptr, Id flag_stat=0, Id flag_facies=0, Id flag_dist=0, Id ngrf=0, Id nfacies=0, const ECalcVario &calcul_type=ECalcVario::UNDEFINED) |
static Id | st_variopgs_calcul_norho (Vario *vario, const Rule *rule, Local_Pgs *local_pgs, Id ngrf, Id opt_correl, Id flag_geometry) |
static void | st_make_some_lags_inactive (Vario *vario) |
static void | st_make_all_lags_active (Vario *vario) |
static double | st_rho_search (double rho, void *user_data) |
static Id | st_variopgs_calcul_rho (Vario *vario, const Rule *rule, Local_Pgs *local_pgs, Id ngrf, Id opt_correl) |
static Id | st_check_test_discret (const ERule &mode, Id flag_rho) |
static Id | st_vario_pgs_check (Id flag_db, Id flag_rule, Id flag_varioind, Db *db, const Db *dbprop, const Vario *vario, Vario *varioind, const Rule *rule) |
static Id | st_variogram_pgs_nostat (Db *db, const Db *dbprop, Vario *vario, const Rule *rule, const 1 &propcst, Id flag_rho, Id opt_correl) |
static void | st_calcul_covmatrix (Local_Pgs *local_pgs, Id *flag_ind, Id *iconf, double *cov) |
static double | st_get_proba (Local_Pgs *local_pgs, Id flag_ind, double *low, double *up, Id *iconf, double *cov) |
static void | st_define_bounds (Local_Pgs *local_pgs, Id iech1, Id iech2, Id ifac1, Id ifac2, double *low, double *up, double *ploc) |
static double | st_get_value (Local_Pgs *local_pgs, Id flag_ind, Id iech1, Id iech2, Id ifac1, Id ifac2, Id *iconf, double *cov) |
static void | st_variogram_scale (Vario *vario, Id idir) |
static Id | st_vario_indic_model_nostat (Local_Pgs *local_pgs) |
static Id | st_copy_swhh (const Vario *vario1, Vario *vario2, bool flagSw, bool flagHh, bool flagGg) |
static Id | st_vario_indic_model_stat (Local_Pgs *local_pgs) |
static void | st_update_variance_stat (Local_Pgs *local_pgs) |
static void | st_update_variance_nostat (Local_Pgs *local_pgs) |
static Id | st_variogram_pgs_stat (Db *db, Vario *vario, Vario *varioind, const Rule *rule, const 1 &propcst) |
Rule * | _rule_auto (Db *db, const VarioParam *varioparam, const RuleProp *ruleprop, Id ngrfmax, Id verbose) |
static double | softplus (double x) |
static double | softplusinv (double x) |
static double | softplusDerivative (double x) |
bool | _isValid (ACovFunc *cova, const CovContext &ctxt) |
bool | _isSelected (ACovFunc *cov, Id ndim, Id minorder, bool hasrange, bool flagSimtub, bool flagSimuSpectral) |
static Id | st_code_comparable (const Db *db1, const Db *db2, Id iech, Id jech, Id opt_code, Id tolcode) |
static void | st_grid_fill_neigh (Id ipos, Id ndim, Id radius, Id *nech_loc, Id *tabind, double *tabval) |
static Id | st_grid_fill_calculate (Id ipos, Id mode, Id nech, Id *tabind, const double *tabval) |
static void | st_write_active_sample (Db *db, Id iech, Id nvar, Id *iatt, double *tab) |
static Id | st_read_active_sample (Db *db, Id flag_zero, Id iech, Id nvar, Id *iatt, double eps, double *tab) |
static Id | st_find_interval (double x, Id ndef, const double *X) |
static void | st_grid1D_interpolate_linear (Db *dbgrid, Id ivar, Id ndef, const double *X, const double *Y) |
static Id | st_grid1D_interpolate_spline (Db *dbgrid, Id ivar, Id ndef, const double *X, const double *Y) |
thread_local | viech2 (1) |
static void | _modifyMopForAnam (ModelGeneric *model, ModelOptimParam &mop) |
static Id | _modifyMopForVMap (const DbGrid *dbmap, ModelGeneric *model, Constraints *constraints, ModelOptimParam &mop) |
static Id | _modifyMopForVario (const Vario *vario, ModelGeneric *model, Constraints *constraints, ModelOptimParam &mop) |
static void | _modifyOneParam (const EConsType &cas, ParamInfo *param, double value) |
static Id | _modifyModelForConstraints (Constraints *constraints, ModelGeneric *model) |
static void | _fixAllAnglesFromIndex (CorAniso *coraniso, Id start, bool resetToZero=false) |
static void | _fixAllScalesFromIndex (CorAniso *coraniso, Id start=0) |
static Id | _modifyModelForMop (const ModelOptimParam &mop, ModelGeneric *model) |
double | logLikelihood (const Db *db, ModelGeneric *model, bool verbose) |
BiTargetCheckGeometry * | create (Id ndim, const 1 &codir, double tolang, double bench, double cylrad, bool flagasym) |
static double | _getRadius (double radius_arg) |
static double | st_convertGeodeticAngle (double, double cosa, double sinb, double cosb, double sinc, double cosc) |
double | util_rotation_gradXYToAngle (double dzoverdx, double dzoverdy) |
static void | _addVerrConstant (MatrixSymmetric &sills, const 1 &verrDef) |
static void | _checkMinNugget (MatrixSymmetric &sills, const 1 &minNug) |
static MatrixSymmetric | _buildSillPartialMatrix (const MatrixSymmetric &sillsRef, Id nvar, Id ndef, const 1 &identity) |
static Id | _loadPositions (Id iech, const 1 &index1, const 1 &cumul, 1 &positions, 1 &identity, Id *rank_arg) |
static std::vector< std::vector< const IProj * > > | castToBase (const std::vector< std::vector< const ProjMatrix * > > &vect) |
static Id | st_load_segment (DbGrid *dbgrid, 1 &mesh, 1 &order, Id ipos, Id ix1, Id ix2) |
static Id | st_load_triangle (DbGrid *dbgrid, 1 &mesh, 1 &order, Id ipos, Id ix1, Id iy1, Id ix2, Id iy2, Id ix3, Id iy3) |
static Id | st_load_tetra (DbGrid *dbgrid, 1 &mesh, 1 &order, Id ipos, Id ix1, Id iy1, Id iz1, Id ix2, Id iy2, Id iz2, Id ix3, Id iy3, Id iz3, Id ix4, Id iy4, Id iz4) |
static MeshEStandard * | st_ultimate_regular_grid (Db *dbgrid, Id ndim, Id nmesh, Id ncorner, 1 &meshes, 1 &order) |
Id | add_sill_constraints (Constraints &constraints, double constantSill) |
static MatrixDense | _transformF (const MatrixDense &F1, Id type, Id idx) |
void | _st_morpho_image_radius_define (const 1 &radius) |
Id | _st_morpho_label_size (const 1 &compnum, Id nbcomp, 1 &sizes) |
void | _st_morpho_label_order (1 &compnum, const 1 &order, Id nbcomp) |
static Id | st_to_f (Id x) |
static short | st_to_s (short x) |
static unsigned short | st_to_u (unsigned short a) |
static Id | st_to_i (Id a) |
static float | st_ibm2ieee (const float ibm) |
static double | st_scaling (Id coor, Id scale) |
static void | st_print_traceHead (traceHead *Theader, Id numTrace) |
static void | st_print_BFileHead (binaryFileHeader *Bheader) |
static binaryFileHeader | st_binaryFileHeader_init () |
static Id | st_readFileHeader (FILE *file, Id verbOption, Id *NPerTrace, double *delta) |
static Id | st_read_trace (FILE *file, Id codefmt, Id numtrace, Id nPerTrace, double delta, Id verbOption, 1 &values, 1 &cotes) |
static Id | st_surface_identify (Id verbOption, Db *surfaces, const String &name_bot, bool flag_bot, Id *iatt_bot, const String &name_top, bool flag_top, Id *iatt_top, const String &aux_top, Id *iaux_top, const String &aux_bot, Id *iaux_bot) |
static Id | st_get_cuts (Db *surfaces, Id rank, Id iatt_top, Id iatt_bot, double, double, double thickmin, double *cztop, double *czbot) |
static void | st_verify_refpt (RefPt refpt[3], RefStats &refstats, Id nbrefpt, double x0, double y0, double dx, double dy, double sint, double cost) |
static void | st_grid_from_3refpt (RefPt refpt[3], RefStats &refstats, double dz, Grid &def_grid) |
static void | st_grid_from_2refpt (RefPt refpt[3], RefStats &refstats, double dz, Grid &def_grid) |
static Id | st_store_refpt (Id nbrefpt, RefPt refpt[3], Id iline, Id xline, double xtrace, double ytrace) |
static void | st_print_grid (const Grid &def_grid) |
static Id | st_complete_squeeze_and_stretch (Id ntab, 1 &tab) |
static bool | st_within_layer (double z0, double delta, double cztop, double czbot, double cote, Id option, Id nz, Id *iz1_ret, Id *iz2_ret, double *cote_ret) |
static double | st_get_average (Id nz, const 1 &writes) |
static Id | st_identify_trace_rank (DbGrid *surfaces, double xtrace, double ytrace) |
static void | st_auxiliary (Db *surfaces, Id rank, Id nz, Id option, double z0, double delta, double czbot, double cztop, Id iaux_bot, Id iaux_top, RefStats &refstats) |
static Id | st_load_trace (Id nPerTrace, Id nz, Id option, double z0, double delta, double czbot, double cztop, const 1 &cotes, const 1 &values, 1 &writes, Id *nbvalues, RefStats &refstats) |
static void | st_print_results (Id nPerTrace, bool flag_surf, double delta, RefStats &refstats) |
void | st_get_trace_params (traceHead *Theader, Id *iline, Id *xline, double *delta, double *xtrace, double *ytrace) |
static Id | st_reject_trace (Id iline, Id xline, Id iline_min, Id iline_max, Id xline_min, Id xline_max) |
static void | st_refstats_update (Id iline, Id xline, double xtrace, double ytrace, RefStats &refstats) |
static void | st_refstats_init (RefStats &refstats, double modif_high, double modif_low, double modif_scale) |
static traceHead | st_traceHead_init () |
static void | end_line (void) |
static void | open_file (const char *filename) |
static void | close_file (void) |
static void | force_big_endian (unsigned char *bytes) |
static void | write_string (const char *str) |
static void | new_section (void) |
static void | write_int (Id val) |
static void | write_float (float val) |
static void | write_header (void) |
void | write_variables (Id nvars, const Id *vardim, const Id *centering, const char *const *varname, 1 &vars, Id npts, Id ncells) |
static Id | num_points_for_cell (Id celltype) |
double | _convert2u (double yc, double krigest, double krigstd) |
void | _calculateIn (1 &In, double yk, double sk, double u, const 1 &hnYc) |
void | _calculateJJ (MatrixSquare &JJ, 1 &In, double yk, double sk, double u, const 1 &hnYc, const 1 &phi) |
static void | _updateGravityCenter (const 1 &xxs, const 1 &yys, const 1 &zzs, const 1 &wws, std::vector< SpacePoint > ¢ers, 1 &pa, 1 &pb, 1 &ig, Id found) |
static SpacePoint | _calculateGlobalGravityCenter (const 1 &xxs, const 1 &yys, const 1 &zzs, const 1 &wws, double *patot, double *pbtot) |
static void | _createNewPatch (Id iech, const 1 &xxs, const 1 &yys, const 1 &zzs, const 1 &wws, std::vector< SpacePoint > ¢ers, 1 &pa, 1 &pb) |
bool | _operStatisticsCheck (const EStatOption &oper, Id flag_multi, Id flag_indic, Id flag_sum, Id flag_median, Id flag_qt) |
void | _updateProportions (DbGrid *dbin, 1 &indg, Id nfacies, 1 &prop) |
void | _updateTransition (DbGrid *dbin, Id pos, 1 &indg, Id nfacies, Id orient, 1 &trans) |
void | _scaleAndAffect (Db *dbout, Id iptr, Id iech, Id nitem, 1 &tab) |
bool | _operExists (const std::vector< EStatOption > &opers, const EStatOption &refe) |
void | _refactor (Id ncol, 1 &tab) |
void | _copyResults (Id nx, Id ny, const 1 &tabin, 1 &tabout) |
void | _neighboringCell (Id ndim, Id radius, Id rank0, const 1 &indg0, 1 &indg) |
double | _getQuantile (1 &tab, Id ntab, double proba) |
void | _getRowname (const String &radix, Id ncol, Id icol, const String &name, String &string) |
bool | _regressionCheck (Db *db1, Id icol0, const 1 &icols, Id mode, Db *db2, const Model *model) |
bool | _regressionLoad (Db *db1, Db *db2, Id iech, Id icol0, const 1 &icols, Id mode, Id flagCst, const Model *model, double *value, 1 &x) |
void | swap (Id *arr, Id i1, Id i2) |
Id | find_node_split_dim (const MatrixT< double > &data, const 1 &node_indices, Id n_features, Id n_points) |
Id | partition_node_indices (const MatrixT< double > &data, Id *node_indices, Id split_dim, Id n_points, Id split_index) |
void | dual_swap (double *darr, Id *iarr, Id i1, Id i2) |
void | simultaneous_sort (double *dist, Id *idx, Id size) |
Variables | |
DISABLE_WARNING_NOT_EXPORTED_FROM_DLL DISABLE_WARNING_BASE_NOT_EXPORTED_FROM_DLL typedef std::span< const double > | constvect |
typedef | VectorNumT< Id > |
typedef | VectorNumT< double > |
typedef | VectorNumT< float > |
typedef | VectorNumT< UChar > |
typedef | VectorT< 1 > |
static unsigned char | FLAG_RESUME = 1 |
Print the Db summary. | |
static unsigned char | FLAG_VARS = 2 |
Print the Field names. | |
static unsigned char | FLAG_EXTEND = 4 |
Print the Db extension. | |
static unsigned char | FLAG_STATS = 8 |
Print the variable statistics. | |
static unsigned char | FLAG_ARRAY = 16 |
Print the variable contents. | |
static unsigned char | FLAG_LOCATOR = 32 |
Print the locators. | |
static String | FORMAT |
static String | DECODE |
static String | TABSTR |
thread_local | _iwork0 |
thread_local | _work1 |
thread_local | _work2 |
thread_local Id | Random_factor = 105 |
thread_local Id | Random_congruent = 20000159 |
thread_local Id | Random_value = 43241421 |
thread_local bool | Random_Old_Style = true |
thread_local std::mt19937 | Random_gen |
static double | c_b11 = 1. |
static EDbg | _debugOptions = EDbg::DB |
static | work1 |
static | work2 |
static size_t | SpaceAlloced = 0 |
static size_t | MaxPermAlloced = 0 |
static void * | Tmp0 = NULL |
static void * | Tmp1 = NULL |
static void * | Tmp2 = NULL |
static void * | Tmp3 = NULL |
static Id * | Perm = NULL |
static Id | factor [NFACTOR] |
static Id | VERBOSE_GQO = 0 |
static Id | NPAR |
static Id | NPAR2 |
static Id | NPARAC |
static Id | NPARAC2 |
static Id | NDAT |
static Id | NCONT |
static Id | NPCT |
static Id | NPCT2 |
static Id | ITERATION |
static Id | SOUSITER |
static void(* | FUNC_EVALUATE )(Id ndat, Id npar, 1 ¶m, 1 &work) |
static Id | messages |
static Id | source_at_node = 0 |
static Id | init_stage = 0 |
static Id | current_side_limit |
static Id | X0 |
static Id | X1 |
static Id | Y0 |
static Id | Y1 |
static Id | Z0 |
static Id | Z1 |
static Id | reverse_order |
static Id | flag_fb |
static Id | x_start_fb |
static Id | y_start_fb |
static Id | z_start_fb |
static Id | flag_bf |
static Id | x_start_bf |
static Id | y_start_bf |
static Id | z_start_bf |
static Id | flag_ff |
static Id | x_start_ff |
static Id | y_start_ff |
static Id | z_start_ff |
static Id | flag_bb |
static Id | x_start_bb |
static Id | y_start_bb |
static Id | z_start_bb |
static | longflags |
local headwave flags. | |
static double | hs_eps_init |
static Id | bx |
static Id | by |
static Id | bz |
static const char * | err_msg [] |
static char | DEL_COM = '#' |
static char | DEL_BLK = ' ' |
static char | DEL_SEP = ' ' |
static void(* | WRITE_FUNC )(const char *) = static_cast<void (*)(const char*)>(st_print) |
static void(* | WARN_FUNC )(const char *) = static_cast<void (*)(const char*)>(st_print) |
static void(* | READ_FUNC )(const char *, char *) = st_read |
static void(* | EXIT_FUNC )(void) = st_exit |
static std::string | currentLine |
static size_t | pos = 0 |
static | d1_1_global |
static | d1_2_global |
static | covaux_global |
static | var0_global |
static | d1_global |
static | d1_t_global |
static | lhs_global |
static | rhs_global |
static | wgt_global |
static | zam1_global |
static | flag_global |
static Id | KRIGE_INIT = 0 |
static Id | MODEL_INIT = 0 |
static Id | IECH_OUT = -1 |
static Id | FLAG_COLK |
static Id | FLAG_SIMU |
static Id | FLAG_EST |
static Id | FLAG_STD |
static Id | FLAG_VARZ |
static Id | FLAG_PROF |
static Id | IPTR_EST |
static Id | IPTR_STD |
static Id | IPTR_VARZ |
static Id | IPTR_NBGH |
static Id * | RANK_COLCOK |
static Db * | DBIN |
static Db * | DBOUT |
static Koption | KOPTION |
static Id | INH_FLAG_VERBOSE = 0 |
static Id | INH_FLAG_LIMIT = 1 |
static String | string |
static CovInternal | COVINT |
Id | NDIM_LOCAL = 0 |
X1_LOCAL | |
X2_LOCAL | |
static MatrixSquare | covtab |
static double | DX |
static double | DZ |
static Id | NX |
static Id | NY |
static Id | NZ |
static Id | NVAR |
static Id | NTRACE |
static double | VFACT = 1000. |
static Id | IECH_OUT = -1 |
static double | GIBBS_RHO |
static double | GIBBS_SQR |
static Modif_Categorical | ModCat = {0, {0, 0}, NULL, NULL} |
static Id | SX |
static Id | SY |
static Id | TX |
static Id | TY |
static Id | TXY |
static Id | SXY |
static Id | STEP = 0 |
static Id | Hsize = 0 |
static double ** | Heap |
static double | HMAX |
static double | HINIT |
static double | HTOP |
static double | BIGVAL |
static Id | Offset_mark_out |
static Id | Offset_out_in |
static Id | SIGNE |
static Id | OPTION |
static Id | VERBOSE_STEP |
static DbGrid * | DB |
static SPIMG * | SPIMG_OUT = nullptr |
static SPIMG * | SPIMG_IN = nullptr |
static SPIMG * | SPIMG_MARK = nullptr |
static double * | PT_SPILL = nullptr |
static Id | DEBUG = 0 |
static Id | KEYPAIR_NTAB = 0 |
static std::vector< Keypair > | KEYPAIR_TABS |
static Id | DISTANCE_NDIM = 0 |
static | DISTANCE_TAB1 |
static | DISTANCE_TAB2 |
static Id | NWGT [4] = {2, 3, 4, 5} |
static Id | NORWGT [4] = {2, 6, 20, 70} |
static Id | COVWGT [4][5] |
static bool | bessel_Old_Style = false |
thread_local | nbgh_init |
thread_local | jvars |
static DbGrid * | DB_GRID_FILL |
static Def_Locator | DEF_LOCATOR [] |
thread_local | ivars |
static const VectorString | symbol = {"F","S","T"} |
static const VectorString | symbol = {"F", "S", "T"} |
static Id | GAUSS_MODE = 1 |
static I32 | _globalMultiThread = 0 |
static bool | _flagMatrixCheck = false |
static Id | RADIUS [3] |
static Id | LARGE = 9999999 |
static FILE * | fp = NULL |
static Id | useBinary = 0 |
static Id | numInColumn = 0 |
_emptyVec | |
PolyElem | _emptyElem |
static Id | invdir [6] = {1, 0, 3, 2, 5, 4} |
Id | _maxiter |
double | _tmax |
double | _background |
double | _facies |
_dilate | |
static Id | ndir [4] = {0, 2, 4, 6} |
static Id | invdir [6] = {1, 0, 3, 2, 5, 4} |
static Id | id [6][3] |
static ASpaceSharedPtr | defaultSpace = nullptr |
Unique default global space. | |
static Id | IECH1 |
static Id | IECH2 |
static Id | IDIRLOC |
static Id | NWGT [4] = {2, 3, 4, 5} |
static Id | NORWGT [4] = {2, 6, 20, 70} |
static Id | VARWGT [4][5] = {{1, -1, 0, 0, 0}, {1, -2, 1, 0, 0}, {1, -3, 3, -1, 0}, {1, -4, 6, -4, 1}} |
static Id | IPTR |
static Polygons * | POLYGON = nullptr |
static | IDS |
static Id | IPTV |
static Id | IPTW |
Shift Operator for performing the basic tasks of SPDE.
TODO : to be kept ?
Output structure
Gaussian Anamorphosis using Empirical Method
This class is meant in order to construct the transfer function from Raw to Gaussian scale directly based on the data.
It essentially maps the cumulative function (CDF) of the raw values into the CDF of the theoretical Gaussian distribution.
This can be performed directly on the experimental CDF (normal score) or by diluting the data values beforehand. In the latter solution, each (valid) datum is replaced by a small local distribution. This is meant to smooth the stepwise CDF.
The dilution function (implemented at any data point) can be either a Gaussian or a Lognormal one. In the Gaussian case, the variance (width of the dilution function) is considered as constant (either provided by the user or defaulted by the program)* In the lognormal case, the logarithmic variance is constant (hence the width is proportional to the square of the value).
Square Matrix
Multivariate complex Fourier transform, computed in place using mixed-radix Fast Fourier Transform algorithm.
Fortran code by: RC Singleton, Stanford Research Institute, Sept. 1968 NIST Guide to Available Math Software. Source for module FFT from package GO. Retrieved from NETLIB on Wed Jul 5 11:50:07 1995. translated by f2c (version 19950721) and with lots of cleanup to make it resemble C by: MJ Olesen, Queen's University at Kingston, 1995-97
Copyright(c)1995,97 Mark Olesen olese.nosp@m.n@me.nosp@m..Quee.nosp@m.nsU..nosp@m.CA Queen's Univ at Kingston (Canada)
Permission to use, copy, modify, and distribute this software for any purpose without fee is hereby granted, provided that this entire notice is included in all copies of any software which is or includes a copy or modification of this software and in all copies of the supporting documentation for such software.
THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR QUEEN'S UNIVERSITY AT KINGSTON MAKES ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
All of which is to say that you can do what you like with this source code provided you don't try to sell it as your own and you include an unaltered copy of this message (including the copyright).
It is also implicitly understood that bug fixes and improvements should make their way back to the general Internet community so that everyone benefits.
This variable switches ON/OFF the ability to use Eigen library for Algebra
typedef std::shared_ptr<const ASpace> gstlrn::ASpaceSharedPtr |
typedef std::vector<ASpaceSharedPtr> gstlrn::ASpaceSharedPtrVector |
using gstlrn::constvectint = typedef std::span<const Id> |
typedef std::function<double(const SpacePoint&, const SpacePoint&, Id, Id, const CovCalcMode* calcmode)> gstlrn::covmaptype |
using gstlrn::DataFrame = typedef std::map<std::string, std::vector<double> > |
typedef std::chrono::high_resolution_clock gstlrn::hrc |
using gstlrn::I32 = typedef int |
Secondary integer type. To be used instead of "int". No "int" should be voluntarily introduced in gstlearn.
using gstlrn::Id = typedef long |
Main type for gstlearn 64-bits integers, to be used in priority when an integer is needed.
typedef std::unordered_map<ParamId, std::shared_ptr<ANoStat>, ParamIdHash, ParamIdEqual> gstlrn::mapNoStat |
typedef std::chrono::milliseconds gstlrn::ms |
typedef double(* gstlrn::operate_function) (double) |
typedef struct Local_Relem gstlrn::Relem |
typedef std::chrono::duration<double> gstlrn::sec |
using gstlrn::Sp = typedef Eigen::SparseMatrix<double> |
typedef struct Local_Split gstlrn::Split |
typedef Eigen::SparseMatrix<double>::StorageIndex gstlrn::StorageIndex |
typedef std::string gstlrn::String |
typedef unsigned char gstlrn::UChar |
typedef std::span<double> gstlrn::vect |
using gstlrn::vectint = typedef std::span<Id> |
typedef VectorT<UChar> gstlrn::VectorBool |
typedef std::vector<ECov> gstlrn::VectorECov |
typedef std::vector<const AMesh*> gstlrn::VectorMeshes |
typedef VectorT<String> gstlrn::VectorString |
enum gstlrn::charTypeT |
enum gstlrn::ENUM_ANAM_QT |
enum gstlrn::ENUM_CONVS |
enum gstlrn::ENUM_CSTS |
enum gstlrn::ENUM_SEGY |
enum gstlrn::ENUM_SHADOWS |
enum gstlrn::ENUM_TYPES |
Enumerator | |
---|---|
WAVELET_NONE | No Convolution. |
WAVELET_RICKER1 | Ricker wavelet with peak frequency "fpeak". |
WAVELET_RICKER2 | Ricker wavelet. |
WAVELET_AKB | Wavelet Alford, Kelly, and Boore. |
WAVELET_SPIKE | Spike. |
WAVELET_UNIT | Constant unit shift. |
|
static |
void gstlrn::_buffer_write | ( | String & | buffer, |
const char * | format, | ||
va_list | ap | ||
) |
Write the next token into the buffer
[in] | buffer | Writing buffer |
[in] | format | Encoding format |
[in] | ap | va_list to be written |
This method is not documented on purpose. It should remain private
|
static |
|
static |
|
static |
void gstlrn::_calculateIn | ( | 1 & | In, |
double | yk, | ||
double | sk, | ||
double | u, | ||
const 1 & | hnYc | ||
) |
Calculate In(u,v) = int_u^v H_n(yk + sk * t) g(t) dt (with v = +Inf)
In | Returned vector (in place) |
yk | Kriged value |
sk | Standard deviation of estimation error |
u | Lower bound of integral (-inf if set to TEST) |
hnYc | Vector of Hermite polynomials at cutoff |
void gstlrn::_calculateJJ | ( | MatrixSquare & | JJ, |
1 & | In, | ||
double | yk, | ||
double | sk, | ||
double | u, | ||
const 1 & | hnYc, | ||
const 1 & | phi | ||
) |
Calculate matrix JJ(n,p) = int_u_v H_n(y+st) H_p(y+st) g(t) dt (with v = +Inf)
JJ | Output matrix |
In | Preliminary calculations (see _calculateII) |
yk | Kriged value |
sk | Standard deviation of Krging error |
u | Lower bound for integration |
hnYc | Vector of Hermite polynomials at cutoff |
phi |
charTypeT gstlrn::_charType | ( | char | c | ) |
|
static |
|
static |
|
static |
double gstlrn::_conv_exponential | ( | double | v | ) |
double gstlrn::_conv_gaussian | ( | double | v | ) |
double gstlrn::_conv_sincard | ( | double | v | ) |
double gstlrn::_conv_uniform | ( | double | v | ) |
double gstlrn::_convert2u | ( | double | yc, |
double | krigest, | ||
double | krigstd | ||
) |
Function to compute the Van der Corput sequence
n | The number of values to be computed |
b | The base in which the numbers are represented |
|
static |
Id gstlrn::_db_bounds | ( | Db * | db, |
const RuleProp * | ruleprop, | ||
Model * | model, | ||
const NamingConvention & | namconv | ||
) |
Id gstlrn::_db_rule | ( | Db * | db, |
const RuleProp * | ruleprop, | ||
Model * | model, | ||
const NamingConvention & | namconv | ||
) |
Apply the Rule transformation to convert a set of Gaussian vectors into the corresponding Facies in a Db
[in] | db | Output Db structure |
[in] | ruleprop | RuleProp structure |
[in] | model | First Model structure (only for SHIFT) |
[in] | namconv | Naming convention |
Id gstlrn::_db_threshold | ( | Db * | db, |
const RuleProp * | ruleprop, | ||
Model * | model, | ||
const NamingConvention & | namconv | ||
) |
|
static |
Perform the recursion through the dimension
[in] | idim | Space rank |
[in] | verbose | Verbose flag |
[in] | dlp | DimLoop structure |
void gstlrn::_endOfLine | ( | ) |
void gstlrn::_erase_current_string | ( | void | ) |
Id gstlrn::_file_get_ncol | ( | FILE * | file | ) |
FILE * gstlrn::_file_open | ( | const char * | filename, |
Id | mode | ||
) |
Open an ASCII file
[in] | filename | Local file name |
[in] | mode | type of file (OLD or NEW) |
This method is not documented on purpose. It should remain private
Id gstlrn::_file_read | ( | FILE * | file, |
const char * | format, | ||
va_list | ap | ||
) |
void gstlrn::_file_write | ( | FILE * | file, |
const char * | format, | ||
va_list | ap | ||
) |
Write the next token from the file
[in] | file | FILE structure |
[in] | format | Encoding format |
[in] | ap | Value to be written |
This method is not documented on purpose. It should remain private
|
static |
std::stringstream gstlrn::_formatColumn | ( | const EJustify & | justify, |
Id | localSize = 0 |
||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
double gstlrn::_getQuantile | ( | 1 & | tab, |
Id | ntab, | ||
double | proba | ||
) |
Calculate the quantile which corresponds to a given probability
[in] | tab | Array of outcomes per sample |
[in] | ntab | Number of active values |
[in] | proba | Probability value (between 0 and 1) |
|
static |
void gstlrn::_getRowname | ( | const String & | radix, |
Id | ncol, | ||
Id | icol, | ||
const String & | name, | ||
String & | string | ||
) |
Constitute the name of the row
[in] | radix | Radix for the different variables (optional) |
[in] | ncol | Number of variables |
[in] | icol | Rank of the variable |
[in] | name | Variables name |
[in] | string | String array |
|
static |
|
static |
void gstlrn::_introduction | ( | const String & | title, |
bool | end_of_line = false |
||
) |
bool gstlrn::_isSelected | ( | ACovFunc * | cov, |
Id | ndim, | ||
Id | minorder, | ||
bool | hasrange, | ||
bool | flagSimtub, | ||
bool | flagSimuSpectral | ||
) |
bool gstlrn::_isValid | ( | ACovFunc * | cova, |
const CovContext & | ctxt | ||
) |
Id gstlrn::_krigsim | ( | Db * | dbin, |
Db * | dbout, | ||
const Model * | model, | ||
ANeigh * | neigh, | ||
bool | flag_bayes, | ||
const 1 & | dmean, | ||
const MatrixSymmetric & | dcov, | ||
Id | icase, | ||
Id | nbsimu, | ||
bool | flag_dgm | ||
) |
Conditioning Kriging
[in] | dbin | input Db structure |
[in] | dbout | output Db structure |
[in] | model | Model structure |
[in] | neigh | ANeigh structure |
[in] | flag_bayes | 1 if Bayes option is switched ON |
[in] | dmean | Array giving the prior means for the drift terms |
[in] | dcov | Array containing the prior covariance matrix for the drift terms |
[in] | icase | Case for PGS and GRF (or -1) |
[in] | nbsimu | Number of simulations |
[in] | flag_dgm | 1 if the DGM version of kriging should be used |
double gstlrn::_lire_double | ( | const char * | question, |
Id | flag_def, | ||
double | valdef, | ||
double | valmin, | ||
double | valmax | ||
) |
void gstlrn::_lire_string | ( | const char * | question, |
Id | flag_def, | ||
const char * | valdef, | ||
char * | answer | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
Define the options of the structure Opt_Vario
[in] | vario | Vario structure containing the exp. variogram |
[in] | model | ModelGeneric structure |
[in] | constraints | Constraints structure |
[out] | mop | ModelOptimParam structure |
|
static |
Define the options of the structure ModelOptimParam
[in] | dbmap | Db Grid structure containing the Vmap |
[in] | model | ModelGeneric structure |
[in] | constraints | Constraints structure |
[out] | mop | ModelOptimParam structure |
|
static |
bool gstlrn::_operExists | ( | const std::vector< EStatOption > & | opers, |
const EStatOption & | refe | ||
) |
Check the operator name is mentioned within a list
[in] | opers | Array of operators |
[in] | refe | Reference operator |
bool gstlrn::_operStatisticsCheck | ( | const EStatOption & | oper, |
Id | flag_multi, | ||
Id | flag_indic, | ||
Id | flag_sum, | ||
Id | flag_median, | ||
Id | flag_qt | ||
) |
Check the operator name
[in] | oper | A EStatOption item |
[in] | flag_multi | 1 if multivariate operator is authorized |
[in] | flag_indic | 1 if indicator ("plus","minus","zero") is authorized |
[in] | flag_sum | 1 if sum of variable is authorized |
[in] | flag_median | 1 if median is authorized |
[in] | flag_qt | 1 if QT ("ore","metal") is authorized |
String gstlrn::_printColumnHeader | ( | const VectorString & | colnames, |
Id | colfrom, | ||
Id | colto, | ||
Id | colSize = _getColumnSize() |
||
) |
void gstlrn::_printDouble | ( | double | value | ) |
void gstlrn::_printEmpty | ( | ) |
void gstlrn::_printInt | ( | Id | value | ) |
String gstlrn::_printRowHeader | ( | const VectorString & | rownames, |
Id | iy, | ||
Id | rowSize = _getColumnSize() |
||
) |
void gstlrn::_printString | ( | const String & | value | ) |
void gstlrn::_printVectorDouble | ( | const 1 & | values | ) |
void gstlrn::_printVectorInt | ( | const 1 & | values | ) |
void gstlrn::_printVectorString | ( | const VectorString & | values | ) |
void gstlrn::_printVectorVectorDouble | ( | const 1 & | values | ) |
void gstlrn::_printVectorVectorInt | ( | const 1 & | values | ) |
std::regex gstlrn::_protectRegexp | ( | const String & | match | ) |
Protect the matching pattern against Crash which happens when the string contains "*" without any preceding character
match | Initial matching pattern |
Id gstlrn::_record_read | ( | FILE * | file, |
const char * | format, | ||
void * | out | ||
) |
Read the next record
[in] | file | Pointer to the file to be read |
[in] | format | Encoding format |
[in] | out | Output argumentn |
void gstlrn::_refactor | ( | Id | ncol, |
1 & | tab | ||
) |
Copy the multivariate into monovariate statistics (before printout)
[in] | ncol | Dimension of the (square) matrix |
[in,out] | tab | Array to be refactored |
bool gstlrn::_regressionCheck | ( | Db * | db1, |
Id | icol0, | ||
const 1 & | icols, | ||
Id | mode, | ||
Db * | db2, | ||
const Model * | model | ||
) |
bool gstlrn::_regressionLoad | ( | Db * | db1, |
Db * | db2, | ||
Id | iech, | ||
Id | icol0, | ||
const 1 & | icols, | ||
Id | mode, | ||
Id | flagCst, | ||
const Model * | model, | ||
double * | value, | ||
1 & | x | ||
) |
Rule * gstlrn::_rule_auto | ( | Db * | db, |
const VarioParam * | varioparam, | ||
const RuleProp * | ruleprop, | ||
Id | ngrfmax, | ||
Id | verbose | ||
) |
Find the optimal Truncation Scheme from Variopgs score
[in] | db | Db structure |
[in] | varioparam | VarioParam structure for the GRFs |
[in] | ruleprop | RuleProp structure |
[in] | ngrfmax | Maximum number of underlying GRFs (1 or 2) |
[in] | verbose | Verbose flag |
void gstlrn::_st_morpho_image_radius_define | ( | const 1 & | radius | ) |
Defines the image radius (global variables)
[in] | radius | Radius of the structural element |
void gstlrn::_st_morpho_label_order | ( | 1 & | compnum, |
const 1 & | order, | ||
Id | nbcomp | ||
) |
Orders the connected components using a rank array
[in] | compnum | array containing the component index |
[in] | order | array containing the ordering criterion |
[in] | nbcomp | number of connected components |
Returns the sizes of all the connected components
[in] | compnum | array containing the component index |
[in] | nbcomp | number of connected components to be measured |
[out] | sizes | array containing the sizes of the connected components labelled from 1 to nbcomp |
|
static |
String gstlrn::_tabPrintString | ( | const String & | string, |
const EJustify & | justify, | ||
Id | localSize = 0 |
||
) |
double gstlrn::_tape_cubic | ( | double | h | ) |
double gstlrn::_tape_penta | ( | double | h | ) |
double gstlrn::_tape_spherical | ( | double | h | ) |
double gstlrn::_tape_storkey | ( | double | h | ) |
double gstlrn::_tape_triangle | ( | double | h | ) |
double gstlrn::_tape_wendland1 | ( | double | h | ) |
double gstlrn::_tape_wendland2 | ( | double | h | ) |
void gstlrn::_test | ( | ) |
void gstlrn::_token_delimitors | ( | const char | del_com, |
const char | del_sep, | ||
const char | del_blk | ||
) |
Define the file delimitors
[in] | del_com | Delimitor for comments |
[in] | del_sep | Delimitor for separator |
[in] | del_blk | Delimitor for blank |
This method is not documented on purpose. It should remain private
|
static |
|
static |
void gstlrn::acknowledge_gstlearn | ( | void | ) |
Acknowledgment of the authors for gstlearn Library
Id gstlrn::add_sill_constraints | ( | Constraints & | constraints, |
double | constantSill | ||
) |
Add constraints to the Option_AutoFit structure
[in] | constraints | Constraints structure |
[in] | constantSill | Constant value for the Sill as a constraint |
Id gstlrn::add_unit_sill_constraints | ( | Constraints & | constraints | ) |
Add constraints (all equal to 1) to the Option_AutoFit structure
[in] | constraints | Constraints structure |
Id gstlrn::anakexp_3D | ( | DbGrid * | db, |
double * | cov_ref, | ||
Id | cov_radius, | ||
Id | neigh_ver, | ||
Id | neigh_hor, | ||
Id | flag_sym, | ||
Model * | model, | ||
double | nugget, | ||
Id | nfeq, | ||
Id | dbg_ix, | ||
Id | dbg_iy | ||
) |
Factorial Kriging analysis on a grid file using discretized covariances for the target variable. The discretized covariance of the total variable is calculated on the fly
[in] | db | input Db structure |
[in] | cov_ref | Array of discretized covariance for target variable |
[in] | cov_radius | Radius of the covariance array |
[in] | neigh_ver | Radius of the Neighborhood along Vertical |
[in] | neigh_hor | Radius of the Neighborhood along Horizontal |
[in] | flag_sym | 1 for symmetrized covariance |
[in] | model | Model structure (only used for horizontal) |
[in] | nugget | Additional Nugget Effect component |
[in] | nfeq | 0 or 1 drift function(s) |
[in] | dbg_ix | Rank of the trace along X for variogram debug |
[in] | dbg_iy | Rank of the trace along Y for variogram debug |
Id gstlrn::anakexp_f | ( | DbGrid * | db, |
double * | covdd, | ||
double * | covd0, | ||
double | top, | ||
double | bot, | ||
Id | cov_radius, | ||
Id | neigh_radius, | ||
Id | flag_sym, | ||
Id | nfeq | ||
) |
Factorial Kriging analysis on a 1-D grid file using discretized covariances for total and partial variables
[in] | db | input Db structure |
[in] | covdd | Array of discretized cov. for total variable |
[in] | covd0 | Array of discretized cov. for partial variable |
[in] | top | Elevation of the Top variable |
[in] | bot | Elevation of the bottom variable |
[in] | cov_radius | Radius of the Covariance arrays |
[in] | neigh_radius | Radius of the Neighborhood |
[in] | flag_sym | 1 for symmetrized covariance |
[in] | nfeq | 0 or 1 drift function(s) |
Transform a point anamorphosis into a block anamorphosis
[in] | anam | Point anamorphosis -> Block anamorphosis [out] |
[in] | verbose | Verbose option |
[in] | cvv | Block variance |
[in] | coeff | Coefficient of change of support |
[in] | mu | Additional coefficient for Discrete case |
Deposit a keypair (double values) - Append to existing array
[in] | keyword | Keyword |
[in] | origin | 1 from C; 2 from R |
[in] | nrow | Number of rows |
[in] | ncol | Number of columns |
[in] | values | Array of values (Dimension: nrow * ncol) |
Deposit a keypair (doubleinteger values) - Append to existing array
[in] | keyword | Keyword |
[in] | origin | 1 from C; 2 from R |
[in] | nrow | Number of rows |
[in] | ncol | Number of columns |
[in] | values | Array of values (Dimension: nrow * ncol) |
void gstlrn::argumentDefTestDbl | ( | double | argDbl = 2. | ) |
void gstlrn::argumentDefTestInt | ( | Id | argInt = 2 | ) |
void gstlrn::argumentDefTestStr | ( | const String & | argstr = "Default String" | ) |
void gstlrn::argumentDefTestVDbl | ( | const 1 & | argVDbl = 1() | ) |
void gstlrn::argumentDefTestVInt | ( | const 1 & | argVInt = 1() | ) |
void gstlrn::argumentDefTestVString | ( | const VectorString & | argVString = VectorString() | ) |
void gstlrn::argumentDefTestVVDbl | ( | 1 | argVVDbl = 1() | ) |
void gstlrn::argumentDefTestVVInt | ( | 1 | argVVInt = 1() | ) |
double gstlrn::argumentReturnDouble | ( | double | value | ) |
MatrixDense gstlrn::argumentReturnMatrix | ( | Id | nrows = 2 , |
Id | ncols = 3 , |
||
Id | seed = 1312 |
||
) |
MatrixSparse gstlrn::argumentReturnMatrixSparse | ( | Id | nrows = 2 , |
Id | ncols = 3 , |
||
double | zeroPercent = 0.1 , |
||
Id | seed = 1356 |
||
) |
gstlrn::argumentReturnVectorDouble | ( | const 1 & | values | ) |
gstlrn::argumentReturnVectorInt | ( | const 1 & | values | ) |
gstlrn::argumentReturnVectorVectorDouble | ( | const 1 & | values | ) |
gstlrn::argumentReturnVectorVectorInt | ( | const 1 & | values | ) |
void gstlrn::argumentTestDouble | ( | double | value | ) |
Function to test Double argument
value | Double input argument |
void gstlrn::argumentTestDoubleOverload | ( | const 1 & | values | ) |
void gstlrn::argumentTestDoubleOverload | ( | double | value | ) |
void gstlrn::argumentTestEnum | ( | const ETests & | value | ) |
void gstlrn::argumentTestInt | ( | Id | value | ) |
Function to test Integer argument
value | Integer input argument |
void gstlrn::argumentTestIntOverload | ( | const 1 & | values | ) |
void gstlrn::argumentTestIntOverload | ( | Id | value | ) |
void gstlrn::argumentTestMatrixDense | ( | const MatrixDense & | mat = MatrixDense() | ) |
void gstlrn::argumentTestMatrixSparse | ( | const MatrixSparse & | mat = MatrixSparse() | ) |
void gstlrn::argumentTestMatrixSquare | ( | const MatrixSquare & | mat = MatrixSquare() | ) |
void gstlrn::argumentTestMatrixSymmetric | ( | const MatrixSymmetric & | mat = MatrixSymmetric() | ) |
void gstlrn::argumentTestString | ( | const String & | value | ) |
void gstlrn::argumentTestStringOverload | ( | const String & | value | ) |
void gstlrn::argumentTestStringOverload | ( | const VectorString & | values | ) |
void gstlrn::argumentTestVectorDouble | ( | const 1 & | values | ) |
void gstlrn::argumentTestVectorInt | ( | const 1 & | values | ) |
void gstlrn::argumentTestVectorString | ( | const VectorString & | values | ) |
void gstlrn::argumentTestVectorVectorDouble | ( | const 1 & | values | ) |
void gstlrn::argumentTestVectorVectorInt | ( | const 1 & | values | ) |
void gstlrn::ascii_environ_read | ( | String & | filename, |
bool | verbose | ||
) |
bool gstlrn::ascii_option_defined | ( | const String & | filename, |
const char * | option_name, | ||
Id * | answer, | ||
bool | verbose = false |
||
) |
void gstlrn::ascii_simu_read | ( | String & | filename, |
bool | verbose, | ||
Id * | nbsimu, | ||
Id * | nbtuba, | ||
Id * | seed | ||
) |
void gstlrn::ascii_study_define | ( | const char * | study | ) |
Ask interactively for the value of one boolean
text | Text of the question |
defval | Default value |
double gstlrn::askDouble | ( | const String & | text, |
double | defval, | ||
bool | authTest | ||
) |
Ask interactively for the value of one Real (Double value)
text | Text of the question |
defval | Default value (or IFFFF) |
authTest | True if a TEST answer is authorized (TEST) |
Ask interactively for the value of one integer
text | Text of the question |
defval | Default value (or IFFFF) |
authTest | True if TEST value is authorized (TEST) |
Eigen::SparseMatrix< double > gstlrn::AtMA | ( | const Eigen::SparseMatrix< double > & | A, |
const Eigen::SparseMatrix< double > & | M | ||
) |
void gstlrn::bessel_set_old_style | ( | bool | style | ) |
double gstlrn::besselj | ( | double | x, |
Id | n | ||
) |
This routine calculates Bessel functions J SUB(NB+ALPHA) (X) for non-negative argument X, and non-negative order NB+ALPHA.
[in] | x | Working precision non-negative real argument for which J's are to be calculated. |
[in] | alpha | Working precision fractional part of order for which J's are to be calculated. 0 <= ALPHA < 1.0. |
[in] | nb | Integer number of functions to be calculated, NB > 0 The first function calculated is of order ALPHA, and the last is of order (NB - 1 + ALPHA). |
[out] | b | Working precision output vector of length NB. If the routine terminates normally (NCALC=NB), the vector b[] contains the functions Y(ALPHA,X), ... ,Y(NB-1+ALPHA,X), |
This routine calculates modified Bessel functions of the second kind, K SUB(N+ALPHA) (X), for non-negative argument X and non-negative order N+ALPHA
[in] | x | Working precision non-negative real argument for which K's are to calculated. If K's are to be calculated, X must not be greater than XMAX. |
[in] | alpha | Working precision fractional part of order for which K's are to be calculated. 0 <= ALPHA <1.0. |
[in] | nb | Integer number of functions to be calculated, NB > 0. The first function calculated is of order ALPHA, and the last is of order (NB - 1 + ALPHA). |
[out] | bk | Working precision output vector of length NB. If the routine terminates normally (NCALC=NB), the vector BK contains the functions : K(ALPHA,X), ... , K(NB-1+ALPHA,X), |
Db * gstlrn::buildDbFromVarioParam | ( | Db * | db, |
const VarioParam & | varioparam | ||
) |
Establish a new Db containing the pairs of the Variogram
[in] | db | Db structure |
[in] | varioparam | VarioParam structure |
std::shared_ptr< MatrixSparse > gstlrn::buildInvNugget | ( | Db * | dbin, |
Model * | model, | ||
const SPDEParam & | params = SPDEParam() |
||
) |
|
static |
void gstlrn::check_mandatory_attribute | ( | const char * | method, |
Db * | db, | ||
const ELoc & | locatorType | ||
) |
Check for the presence of mandatory attributes
[in] | method | Name of the method |
[in] | db | Db structure |
[in] | locatorType | Mandatory attribute type |
|
static |
Checks if Space Dimension of the first Db is at least equal to the Space dimension of the second Db
Id gstlrn::computeCovMatSVCLHSInPlace | ( | MatrixSymmetric & | cov, |
const MatrixSymmetric & | Sigma, | ||
const MatrixDense & | F1, | ||
Id | type = 1 , |
||
Id | idx = 0 |
||
) |
Id gstlrn::computeCovMatSVCRHSInPlace | ( | MatrixDense & | cov, |
const MatrixSymmetric & | Sigma, | ||
const MatrixDense & | F1, | ||
const MatrixDense & | F2, | ||
Id | type1 = 1 , |
||
Id | idx1 = 0 , |
||
Id | type2 = 1 , |
||
Id | idx2 = 0 |
||
) |
Id gstlrn::computeDriftMatSVCRHSInPlace | ( | MatrixDense & | mat, |
const MatrixDense & | F, | ||
Id | type = 1 , |
||
Id | idx = 0 , |
||
bool | flagCenteredFactors = true |
||
) |
String gstlrn::concatenateString | ( | const String & | string, |
double | value, | ||
const String & | delim = "-" |
||
) |
String gstlrn::concatenateStrings | ( | const String & | delimt = "." , |
const String & | string1 = "" , |
||
const String & | string2 = "" , |
||
const String & | string3 = "" , |
||
const String & | string4 = "" |
||
) |
gstlrn::condexp | ( | Db * | db1, |
Db * | db2, | ||
Id | icol1, | ||
Id | icol2, | ||
double | mini, | ||
double | maxi, | ||
Id | nclass, | ||
bool | verbose | ||
) |
Evaluate the experimental conditional expectation
[in] | db1 | Db descriptor (for target variable) |
[in] | db2 | Db descriptor (for auxiliary variables) |
[in] | icol1 | Rank of the target variable |
[in] | icol2 | Rank of the explanatory variable |
[in] | mini | Minimum value for the explanaroty variable |
[in] | maxi | Maximum value for the explanaroty variable |
[in] | nclass | Number of classes |
[in] | verbose | Verbose flag |
Id gstlrn::ConditionalExpectation | ( | Db * | db, |
AAnam * | anam, | ||
Selectivity * | selectivity, | ||
const String & | name_est, | ||
const String & | name_std, | ||
bool | flag_OK, | ||
double | proba, | ||
Id | nbsimu, | ||
const NamingConvention & | namconv | ||
) |
Calculate the Conditional Expectation
[in] | db | Db structure containing the factors (Z-locators) |
[in] | anam | Point anamorphosis |
[in] | selectivity | Selectivity structure |
[in] | name_est | Name of the Kriging estimate |
[in] | name_std | Name of the Kriging St. deviation |
[in] | flag_OK | 1 if kriging has ben performed in Ordinary Kriging |
[in] | proba | Probability |
[in] | nbsimu | Number of Simulation outcomes |
[in] | namconv | Naming convention |
double gstlrn::constraints_get | ( | const Constraints & | constraints, |
const EConsType & | icase, | ||
Id | igrf, | ||
Id | icov, | ||
const EConsElem & | icons, | ||
Id | iv1, | ||
Id | iv2 | ||
) |
Return the constraint value (if defined) or TEST
[in,out] | constraints | Constraints structure |
[in] | icase | Parameter type (EConsType) |
[in] | igrf | Rank of the Gaussian Random Function |
[in] | icov | Rank of the structure (starting from 0) |
[in] | icons | Type of the constraint (EConsElem) |
[in] | iv1 | Rank of the first variable |
[in] | iv2 | Rank of the second variable |
void gstlrn::constraints_print | ( | const Constraints & | constraints | ) |
Print the Auto Fitting Constraints Structure
[in] | constraints | Constraints structure |
TODO: transfer this in swig_inc.i.
void gstlrn::correctNamesForDuplicates | ( | VectorString & | list | ) |
Check that the names in 'list' are not conflicting with any previous name. If it does, increment its name by a version number.
list |
void gstlrn::correctNewNameForDuplicates | ( | VectorString & | list, |
Id | rank | ||
) |
Identify samples from scatter plot when included within a polygon
[in] | db1 | Db descriptor (first variable) |
[in] | db2 | Db descriptor (second variable for flag.same=T) |
[in] | icol1 | Rank of the first column |
[in] | icol2 | Rank of the second column |
[in] | polygon | Polygons structure |
gstlrn::correlationPairs | ( | Db * | db1, |
Db * | db2, | ||
const String & | name1, | ||
const String & | name2, | ||
bool | flagFrom1, | ||
bool | verbose | ||
) |
Evaluate the correlation Correl(Z1(x) , Z2(x))
[in] | db1 | Db descriptor (first variable) |
[in] | db2 | Db descriptor (second variable for flag.same=T) |
[in] | name1 | Name of the first variable |
[in] | name2 | Name of the second variable |
[in] | flagFrom1 | Start numbering of indices from 1 if True |
[in] | verbose | Verbose flag |
BiTargetCheckGeometry * gstlrn::create | ( | Id | ndim, |
const 1 & | codir, | ||
double | tolang, | ||
double | bench, | ||
double | cylrad, | ||
bool | flagasym | ||
) |
Db * gstlrn::createDbFromDataFrame | ( | const DataFrame * | dat, |
const VectorString & | coordinates | ||
) |
MatrixSparse * gstlrn::createFromAnyMatrix | ( | const AMatrix * | mat | ) |
Transform any matrix into a Sparse format
GaussianProcess * gstlrn::createModelFromData | ( | const Db * | dat, |
const VectorString & | variables, | ||
const std::vector< ECov > & | structs, | ||
bool | addMeasurementError = false |
||
) |
Id gstlrn::csv_manage | ( | const char * | filename, |
const CSVformat & | csv, | ||
Id | mode, | ||
Id | nitem, | ||
bool | flagInteger = false , |
||
bool | verbose = false |
||
) |
void gstlrn::csv_print_double | ( | double | value | ) |
Id gstlrn::csv_table_read | ( | const String & | filename, |
const CSVformat & | csvfmt, | ||
bool | verbose, | ||
Id | ncol_max, | ||
Id | nrow_max, | ||
Id * | ncol_arg, | ||
Id * | nrow_arg, | ||
VectorString & | names, | ||
1 & | tab | ||
) |
double gstlrn::ct_tableone_calculate_by_rank | ( | CTables * | ctables, |
Id | iconf0, | ||
double * | rklows, | ||
double * | rkups | ||
) |
CTables * gstlrn::ct_tables_manage | ( | Id | mode, |
Id | verbose, | ||
Id | flag_cumul, | ||
Id | nconf, | ||
Id | ndisc, | ||
double | cmin, | ||
double | cmax, | ||
CTables * | ctables_old | ||
) |
Def_Convolution & gstlrn::D_CONV | ( | Id | rank | ) |
Def_Tapering & gstlrn::D_TAPE | ( | Id | rank | ) |
Id gstlrn::db_bounds_shadow | ( | Db * | db, |
Db * | dbprop, | ||
RuleShadow * | rule, | ||
Model * | model, | ||
const 1 & | props, | ||
Id | flag_stat, | ||
Id | nfacies | ||
) |
Id gstlrn::db_diffusion | ( | DbGrid * | dbgrid1, |
DbGrid * | dbgrid2, | ||
Id | orient, | ||
Id | niter, | ||
Id | nseed, | ||
Id | seed, | ||
Id | verbose | ||
) |
Calculate the diffusion factor from a grid Db into another grid Db
[in] | dbgrid1 | Db for the input grid |
[in] | dbgrid2 | Db for the output grid |
[in] | orient | Diffusion orientation (0 or the space rank dimension) |
[in] | niter | Number of iterations |
[in] | nseed | Number of seeds |
[in] | seed | Seed for the random number generation |
[in] | verbose | Verbose Option |
gstlrn::db_distances_general | ( | Db * | db1, |
Db * | db2, | ||
Id | niso, | ||
Id | mode, | ||
Id | flag_same, | ||
Id * | n1, | ||
Id * | n2, | ||
double * | dmin, | ||
double * | dmax | ||
) |
Evaluate the array of distances between samples of two data sets Takes the selection into account (if any)
[in] | db1 | Db first descriptor |
[in] | db2 | Db second descriptor |
[in] | niso | Number of variables tested for isotopy |
[in] | mode | Type of array returned 0 : extreme distances 1 : the distance to the closest sample 2 : all point-to-point distances |
[in] | flag_same | 1 if both Db coincide |
[out] | n1 | First dimension of the returned array |
[out] | n2 | Second dimension of the returned array |
[out] | dmin | Minimum distance |
[out] | dmax | Maximum distance |
Id gstlrn::db_gradient_component_to_modang | ( | Db * | db, |
Id | verbose, | ||
Id | iad_gx, | ||
Id | iad_gy, | ||
Id | iad_mod, | ||
Id | iad_ang, | ||
double | scale, | ||
double | ve | ||
) |
Transform a set of gradients defined by (gx,gy) into (module,angle) Only defined in the 2-D case
[in] | db | Initial Db |
[in] | verbose | 1 for the verbose option |
[in] | iad_gx | Rank of the 'gx' attribute (defined in degrees) |
[in] | iad_gy | Rank of the 'gy' attribute (defined in degrees) |
[in] | iad_mod | Rank of the 'modulus' attribute |
[in] | iad_ang | Rank of the 'angle' attribute (defined in degrees) |
[in] | scale | Scaling factor for the modulus |
[in] | ve | Moderation factor |
Id gstlrn::db_gradient_modang_to_component | ( | Db * | db, |
Id | ang_conv, | ||
Id | iad_mod, | ||
Id | iad_ang, | ||
Id | iad_gx, | ||
Id | iad_gy | ||
) |
Transform a set of gradients defined by (modulus,angle) into (gx,gy) Only defined in the 2-D case
[in] | db | Initial Db |
[in] | ang_conv | Convention on the angles
|
[in] | iad_mod | Rank of the 'modulus' attribute |
[in] | iad_ang | Rank of the 'angle' attribute (defined in degrees) |
[in] | iad_gx | Rank of the 'gx' attribute (defined in degrees) |
[in] | iad_gy | Rank of the 'gy' attribute (defined in degrees) |
Update the Data Base for Kriging with Gradient components This update is limited to the 2-D Monovariate case
[in] | db | Input/output Db |
Id gstlrn::db_grid_copy | ( | DbGrid * | db1, |
DbGrid * | db2, | ||
const Id * | ind1, | ||
const Id * | ind2, | ||
Id | ncol, | ||
Id * | cols | ||
) |
Id gstlrn::db_grid_copy_dilate | ( | DbGrid * | db1, |
Id | iatt1, | ||
DbGrid * | db2, | ||
Id | iatt2, | ||
Id | mode, | ||
const Id * | nshift | ||
) |
Id gstlrn::db_grid_patch | ( | DbGrid * | ss_grid, |
DbGrid * | db_grid, | ||
Id | iptr_ss, | ||
Id | iptr_db, | ||
Id | iptr_rank, | ||
Id | new_rank, | ||
Id | oper, | ||
Id | verbose | ||
) |
Patch a sub-grid within a main grid
[in] | ss_grid | Db sub-grid structure |
[in] | db_grid | Db main grid structure |
[in] | iptr_ss | Rank of the attribute in the sub-grid |
[in] | iptr_db | Rank of the attribute in the main grid |
[in] | iptr_rank | Rank of the attribute storing object rank If <0, no check is performed: always patch |
[in] | new_rank | Rank of the current object to patch in main grid |
[in] | oper | >0 for larger; <0 for smaller |
[in] | verbose | Verbose flag |
void gstlrn::db_grid_print | ( | Db * | db | ) |
DbGrid * gstlrn::db_grid_reduce | ( | DbGrid * | db_grid, |
Id | iptr, | ||
const Id * | margin, | ||
const Id * | limmin, | ||
Id | flag_sel, | ||
Id | flag_copy, | ||
Id | verbose, | ||
double | vmin, | ||
double | vmax | ||
) |
Extract the subgrid (from a grid) which contains the only cells where the target variable lies wuthin the target interval Selection in the input grid is taken into account
[in] | db_grid | Db structure |
[in] | iptr | Rank of the column of the target variable |
[in] | margin | Array of margins (or NULL) |
[in] | limmin | Array of minimum dimensions (or NULL) |
[in] | flag_sel | Create the selection |
[in] | flag_copy | 1 if the selection must be copied in sub-grid |
[in] | verbose | Verbose flag |
[in] | vmin | Lower bound (included) |
[in] | vmax | Upper bound (excluded) |
Id gstlrn::db_grid_write_bmp | ( | const char * | filename, |
DbGrid * | db, | ||
Id | icol, | ||
Id | nsamplex = 1 , |
||
Id | nsampley = 1 , |
||
Id | nmult = 1 , |
||
Id | ncolor = 1 , |
||
Id | flag_low = 1 , |
||
Id | flag_high = 1 , |
||
double | valmin = TEST , |
||
double | valmax = TEST , |
||
Id * | red = nullptr , |
||
Id * | green = nullptr , |
||
Id * | blue = nullptr , |
||
Id | mask_red = 0 , |
||
Id | mask_green = 0 , |
||
Id | mask_blue = 0 , |
||
Id | ffff_red = 232 , |
||
Id | ffff_green = 232 , |
||
Id | ffff_blue = 0 , |
||
Id | low_red = 255 , |
||
Id | low_green = 255 , |
||
Id | low_blue = 255 , |
||
Id | high_red = 255 , |
||
Id | high_green = 0 , |
||
Id | high_blue = 0 |
||
) |
Id gstlrn::db_grid_write_irap | ( | const char * | filename, |
DbGrid * | db, | ||
Id | icol, | ||
Id | nsamplex = 1 , |
||
Id | nsampley = 1 |
||
) |
Id gstlrn::db_locator_attribute_add | ( | Db * | db, |
const ELoc & | locatorType, | ||
Id | number, | ||
Id | r_tem, | ||
double | valinit, | ||
Id * | iptr | ||
) |
Add and initiate several attributes corresponding to a given locator
[in] | db | Db structure |
[in] | locatorType | Rank of the Pointer (ELoc) |
[in] | number | Number of locators to be defined |
[in] | r_tem | Rank of the first item in the pointer |
[in] | valinit | Value to be used for initialization |
[out] | iptr | Rank of the first new attribute |
void gstlrn::db_locators_correct | ( | VectorString & | strings, |
const 1 & | current, | ||
Id | flag_locnew | ||
) |
void gstlrn::db_monostat | ( | Db * | db, |
Id | iatt, | ||
double * | wtot, | ||
double * | mean, | ||
double * | var, | ||
double * | mini, | ||
double * | maxi | ||
) |
Monovariate statistics
[in] | db | Db structure |
[in] | iatt | Rank of the attribute |
[out] | wtot | Sum of the weights |
[out] | mean | Mean of the variable |
[out] | var | variance of the variable |
[out] | mini | Minimum value |
[out] | maxi | Maximum value |
Calculate the gradient orientations of a colored image
Id gstlrn::db_morpho_calc | ( | DbGrid * | dbgrid, |
Id | iptr0, | ||
const EMorpho & | oper, | ||
double | vmin, | ||
double | vmax, | ||
Id | option, | ||
const 1 & | radius, | ||
bool | flagDistErode, | ||
bool | verbose | ||
) |
Perform a morphological operation with a DbGrid
Calculate the gradient components of a colord image
Identify the attribute by its name
[in] | db | Db descriptor |
[in] | string | attribute name |
void gstlrn::db_polygon | ( | Db * | db, |
const Polygons * | polygon, | ||
bool | flag_sel, | ||
bool | flag_period, | ||
bool | flag_nested, | ||
const NamingConvention & | namconv | ||
) |
Create a selection if the samples of a Db are inside Polygons
[in] | db | Db structure |
[in] | polygon | Polygons structure |
[in] | flag_sel | true if previous selection must be taken into account |
[in] | flag_period | true if first coordinate is longitude (in degree) and must be cycled for the check |
[in] | flag_nested | Option for nested polyelems (see details) |
[in] | namconv | Naming Convention |
Calculates the proportions of facies within a grid
[in] | db | Input Db structure |
[in] | dbgrid | Output Grid Db structure |
[in] | nfac1max | Maximum number of facies for the first variable |
[in] | nfac2max | Maximum number of facies for the second variable |
[out] | nclout | Total number of classes |
Id gstlrn::db_proportion_estimate | ( | Db * | dbin, |
DbGrid * | dbout, | ||
Model * | model, | ||
Id | niter = 100 , |
||
bool | verbose = false , |
||
const NamingConvention & | namconv = NamingConvention("Prop", true, true, true, ELoc::fromKey("P")) |
||
) |
Db * gstlrn::db_read_csv | ( | const String & | filename, |
const CSVformat & | csvfmt, | ||
bool | verbose = false , |
||
Id | ncol_max = -1 , |
||
Id | nrow_max = -1 , |
||
bool | flagAddSampleRank = false |
||
) |
Id gstlrn::db_rule_shadow | ( | Db * | db, |
Db * | dbprop, | ||
RuleShadow * | rule, | ||
Model * | model, | ||
const 1 & | props, | ||
Id | flag_stat, | ||
Id | nfacies | ||
) |
Apply the Rule transformation to the GRFs of a Db (Shadow case)
[in] | db | Output Db structure |
[in] | dbprop | Db structure used for proportions (non-stationary case) |
[in] | rule | Lithotype Rule definition |
[in] | model | First Model structure (only for SHIFT) |
[in] | props | Array of proportions for the facies |
[in] | flag_stat | 1 for stationary; 0 otherwise |
[in] | nfacies | Number of facies |
void gstlrn::db_sample_print | ( | Db * | db, |
Id | iech, | ||
Id | flag_ndim, | ||
Id | flag_nvar, | ||
Id | flag_nerr, | ||
Id | flag_blk | ||
) |
Print a sample
[in] | db | Db structure |
[in] | iech | Rank of the sample |
[in] | flag_ndim | 1 if the coordinates must be printed |
[in] | flag_nvar | 1 if the variables must be printed |
[in] | flag_nerr | 1 if the error measurement variance must be printed |
[in] | flag_blk | 1 if the variable block extension must be printed |
Id gstlrn::db_segy | ( | const char * | filesegy, |
DbGrid * | grid3D, | ||
DbGrid * | surf2D, | ||
const String & | name_top, | ||
const String & | name_bot, | ||
double | thickmin, | ||
Id | option, | ||
Id | nz_ss, | ||
Id | verbOption, | ||
Id | iline_min, | ||
Id | iline_max, | ||
Id | xline_min, | ||
Id | xline_max, | ||
double | modif_high, | ||
double | modif_low, | ||
double | modif_scale, | ||
Id | codefmt, | ||
const NamingConvention & | namconv | ||
) |
Read the contents of a SEGY file
[in] | filesegy | Name of the SEGY file |
[in] | grid3D | Db containing the resulting 3-D grid |
[in] | surf2D | Db containing the top, Bottom and Reference surfaces This file is optional |
[in] | name_top | Rank of variable containing the Top Surface (or 0) |
[in] | name_bot | Rank of variable containing the Bottom Surface (or 0) |
[in] | thickmin | Minimum thickness (or 0) |
[in] | option | Flattening option: 0 no flattening; 1 flattening from top; -1 flattening from bottom -2 squeeze and stretch option 2 averaging from 3-D to 2-D |
[in] | nz_ss | Deprecated argument |
[in] | verbOption | Verbose option |
[in] | iline_min | Minimum Inline number included (if defined) |
[in] | iline_max | Maximum Inline number included (if defined) |
[in] | xline_min | Minimum Xline number included (if defined) |
[in] | xline_max | Maximum Xline number included (if defined) |
[in] | modif_high | Upper truncation (when defined) |
[in] | modif_low | Lower truncation (when defined) |
[in] | modif_scale | Scaling value (when defined) |
[in] | codefmt | Reading format |
[in] | namconv | Naming convention |
: In the case of Squeeze and Stretch (S&S), the number of layers
: is meaningless. It is fixed by the user, unless defined
: by the output grid (if flag_store == 1)
Id gstlrn::db_selhull | ( | Db * | db1, |
Db * | db2, | ||
double | dilate, | ||
bool | verbose, | ||
const NamingConvention & | namconv | ||
) |
Select samples from a file according to the 2-D convex hull computed over the active samples of a second file
[in] | db1 | descriptor of the Db serving for convex hull calculation |
[in] | db2 | descriptor of the Db where the mask must be stored |
[in] | dilate | Radius of the dilation |
[in] | verbose | Verbose flag |
[in] | namconv | Naming convention |
Id gstlrn::db_selref | ( | Id | ndim, |
const Id * | nx, | ||
const Id * | ref, | ||
const double * | tabin, | ||
double * | tabout | ||
) |
Id gstlrn::db_simulations_to_ce | ( | Db * | db, |
const ELoc & | locatorType, | ||
Id | nbsimu, | ||
Id | nvar, | ||
Id * | iptr_ce_arg, | ||
Id * | iptr_cstd_arg | ||
) |
Convert series of simulations to conditional expectation and variance
[in] | db | Db structure |
[in] | locatorType | Type of pointer containing the simulations |
[in] | nbsimu | Number of simulations |
[in] | nvar | Number of variables |
[out] | iptr_ce_arg | Pointer to the Conditional Expectation attributes |
[out] | iptr_cstd_arg | Pointer to the Conditional St. Dev. attributes |
DbGrid * gstlrn::db_vcloud | ( | Db * | db, |
const VarioParam * | varioparam, | ||
double | lagmax, | ||
double | varmax, | ||
Id | lagnb, | ||
Id | varnb, | ||
const NamingConvention & | namconv | ||
) |
Evaluate the experimental variogram cloud
[in] | db | Db descriptor |
[in] | varioparam | VarioParam structure |
[in] | lagmax | Maximum distance |
[in] | varmax | Maximum Variance value (see remarks) |
[in] | lagnb | Number of discretization steps along distance axis |
[in] | varnb | Number of discretization steps along variance axis |
[in] | namconv | Naming convention |
DbGrid * gstlrn::db_vmap | ( | Db * | db, |
const ECalcVario & | calcul_type, | ||
const 1 & | nxx, | ||
const 1 & | dxx, | ||
Id | radius, | ||
bool | flag_FFT, | ||
const NamingConvention & | namconv | ||
) |
Calculate the variogram map (integrated function)
[in] | db | Db containing the data |
[in] | calcul_type | Type of calculation (ECalcVario) |
[in] | nxx | Vector of (Half-) number of nodes for Vmap (def:20) |
[in] | dxx | Vector of mesh for Vmap (see details) |
[in] | radius | Dilation radius (mooth resulting maps) only on points |
[in] | flag_FFT | Use FFT method (only valid on grid) |
[in] | namconv | Naming convention |
Db * gstlrn::db_well_read_las | ( | const char * | filename, |
double | xwell, | ||
double | ywell, | ||
double | cwell, | ||
Id | verbose = 0 |
||
) |
Id gstlrn::db_write_csv | ( | Db * | db, |
const char * | filename, | ||
const CSVformat & | csv, | ||
Id | flag_allcol = 1 , |
||
Id | flag_coor = 1 , |
||
bool | flagInteger = false |
||
) |
Id gstlrn::dbFoldPolyline | ( | DbGrid * | dbin, |
Db * | dbout, | ||
const 1 & | cols, | ||
const PolyLine2D & | polyline, | ||
const NamingConvention & | namconv | ||
) |
Fold an input Db into an output Db with respect to a polyline
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | cols | Vector of the target variable ranks |
[in] | polyline | PolyLine2D structure |
[in] | namconv | Naming convention |
Id gstlrn::dbFromPolylines | ( | Db * | db, |
const PolyLine2D & | top, | ||
const PolyLine2D & | bot, | ||
Id | nb_neigh, | ||
bool | flagMask, | ||
const NamingConvention & | namconv | ||
) |
Calculate quantities on the Db by comparison with top and bottom polylines
db | Pointer to the Db where relevant information will be stored |
top | 2-D Polyline defining the Top surface |
bot | 2-D Polyline defining the Bottom surface |
nb_neigh | Size of neighborhood radius (for regularizing the angle calculation) |
flagMask | Mask if the target is outside the two polylines |
namconv | Naming convention |
Id gstlrn::dbg2gCopy | ( | DbGrid * | dbin, |
DbGrid * | dbout, | ||
const NamingConvention & | namconv = NamingConvention( "Copy") |
||
) |
Id gstlrn::dbg2gExpand | ( | DbGrid * | dbin, |
DbGrid * | dbout, | ||
const NamingConvention & | namconv = NamingConvention( "Expand") |
||
) |
Id gstlrn::dbg2gInterpolate | ( | DbGrid * | dbin, |
DbGrid * | dbout, | ||
const VectorString & | tops = VectorString() , |
||
const VectorString & | bots = VectorString() , |
||
const NamingConvention & | namconv = NamingConvention( "Interpolation", false) |
||
) |
Id gstlrn::dbg2gShrink | ( | DbGrid * | dbin, |
DbGrid * | dbout, | ||
const NamingConvention & | namconv = NamingConvention( "Shrink") |
||
) |
gstlrn::dbgridLineSampling | ( | DbGrid * | dbgrid, |
const double * | x1, | ||
const double * | x2, | ||
Id | ndisc, | ||
Id | ncut, | ||
const double * | cuts, | ||
Id * | nval_ret | ||
) |
Sampling vertices within a Grid between two points
[in] | dbgrid | reference Grid |
[in] | x1 | Array giving the coordinates of the first point |
[in] | x2 | Array giving the coordinates of the second point |
[in] | ndisc | Number of discretized points in the segment |
[in] | ncut | Number of cutoffs |
[in] | cuts | Array of cutoffs |
[out] | nval_ret | Number of samples in the output array |
Id gstlrn::dbMorpho | ( | DbGrid * | dbgrid, |
const EMorpho & | oper, | ||
double | vmin, | ||
double | vmax, | ||
Id | option, | ||
const 1 & | radius, | ||
bool | flagDistErode, | ||
bool | verbose, | ||
const NamingConvention & | namconv | ||
) |
Perform a Morphological operation on an image stored in Db
dbgrid | Target IN/OUT Db (must be a Grid) |
oper | Type of morphological operation |
vmin | Minimum threshold value |
vmax | Maximum threshold value |
option | Option |
radius | Radius |
verbose | Verbose option |
flagDistErode | True: Inflate the grain; False: Reduce the grain |
namconv | Naming convention |
Id gstlrn::dbPolygonDistance | ( | Db * | db, |
Polygons * | polygon, | ||
double | dmax, | ||
Id | scale, | ||
Id | polin, | ||
const NamingConvention & | namconv | ||
) |
Determine the distance to a polyline
[in] | db | Db structure |
[in] | polygon | Polygons structure |
[in] | dmax | Maximum distance |
[in] | scale | Scaling option 0 : no scaling >0 : scaling between 0 and 1 <0 : scaling between 1 and 0 |
[in] | polin | Option for checking against the polygon 0 : no check >0 : if sample is outside polygon, return TEST <0 : if sample is inside polygon, return TEST |
[in] | namconv | Naming convention |
Id gstlrn::dbRegression | ( | Db * | db1, |
const String & | nameResp, | ||
const VectorString & | nameAux, | ||
Id | mode = 0 , |
||
bool | flagCst = true , |
||
Db * | db2 = nullptr , |
||
const Model * | model = nullptr , |
||
const NamingConvention & | namconv = NamingConvention("Regr") |
||
) |
Id gstlrn::dbSelectivity | ( | Db * | db, |
const String & | name, | ||
const 1 & | zcuts, | ||
const NamingConvention & | namconv = NamingConvention( "Selectivity") |
||
) |
Id gstlrn::dbSmoother | ( | DbGrid * | dbgrid, |
ANeigh * | neigh, | ||
Id | type, | ||
double | range, | ||
const NamingConvention & | namconv | ||
) |
gstlrn::dbStatisticsFacies | ( | Db * | db | ) |
Considering that the Unique variable is a Facies (positive integer) returns the vector of proportions
[in] | db | Db structure |
double gstlrn::dbStatisticsIndicator | ( | Db * | db | ) |
Considering that the Unique variable is an Indicator (0 or 1) returns the proportion of 1
[in] | db | Db structure |
Id gstlrn::dbStatisticsOnGrid | ( | Db * | db, |
DbGrid * | dbgrid, | ||
const EStatOption & | oper, | ||
Id | radius, | ||
const NamingConvention & | namconv | ||
) |
Id gstlrn::dbUnfoldPolyline | ( | Db * | db, |
const PolyLine2D & | polyline, | ||
const NamingConvention & | namconv | ||
) |
Unfold a 2-D Db with respect to a polyline
[in] | db | Db structure |
[in] | polyline | PolyLine2D structure |
[in] | namconv | Naming convention |
MatrixSymmetric gstlrn::dbVarianceMatrix | ( | const Db * | db | ) |
Calculate the variance-covariance matrix on the isotopic data set from the Z-locator variables.
db | Target Data Base |
Id gstlrn::declustering | ( | Db * | dbin, |
Model * | model, | ||
Id | method, | ||
ANeigh * | neigh, | ||
DbGrid * | dbgrid, | ||
const 1 & | radius, | ||
const 1 & | ndiscs, | ||
Id | flag_sel, | ||
bool | verbose | ||
) |
Perform the Declustering task
[in] | dbin | input Db structure |
[in] | model | Model structure |
[in] | method | Method for declustering |
[in] | neigh | ANeigh structure |
[in] | dbgrid | Grid auxiliary Db structure |
[in] | radius | Array of neighborhood radius |
[in] | ndiscs | Array of discretization |
[in] | flag_sel | 1 to mask off samples with zero weight |
[in] | verbose | Verbose option |
gstlrn::decodeGridSorting | ( | const String & | string, |
const 1 & | nx, | ||
bool | verbose | ||
) |
Decode the grid sorting order
[in] | string | Name of the sorting string |
[in] | nx | Array giving the number of cells per direction |
[in] | verbose | Verbose flag |
Id gstlrn::decodeInList | ( | const VectorString & | symbols, |
const String & | node, | ||
Id * | rank, | ||
Id * | facies, | ||
bool | caseSensitive | ||
) |
Decode the input string 'node' as a one-character keyword followed by an integer rank The keyword must match one of the symbols: its rank is 'rank' The integer rank is returned as 'facies'
symbols | |
node | |
rank | |
facies | |
caseSensitive |
Id gstlrn::decodeInString | ( | const String & | symbol, |
const String & | node, | ||
Id * | facies, | ||
bool | caseSensitive | ||
) |
Decode the input string 'node' as a one-character keyword followed by an integer rank The keyword must match the symbol. The integer rank is returned as 'facies'
symbol | |
node | |
facies | |
caseSensitive |
void gstlrn::defineDefaultSpace | ( | const ESpaceType & | type, |
size_t | ndim, | ||
double | param | ||
) |
(Re)Defining the unique default global space
Factory for defining the unique default global space (optional parameter can be used for sphere radius for example)
type | Space type (RN, SN, ...) |
ndim | Number of dimensions |
param | Optional space parameter (ex: radius of the sphere) |
void gstlrn::del_keypair | ( | const char * | keyword, |
Id | flag_exact | ||
) |
Delete a keypair
[in] | keyword | Keyword to be deleted |
[in] | flag_exact | 1 if Exact keyword matching is required |
|
static |
Delete a keypair
[in] | indice | Index of the Keyword to be deleted |
Id gstlrn::DisjunctiveKriging | ( | Db * | db, |
AAnam * | anam, | ||
Selectivity * | selectivity, | ||
const VectorString & | name_est, | ||
const VectorString & | name_std, | ||
const NamingConvention & | namconv | ||
) |
Calculate the recoveries (z,T,Q,m,B) starting from the factors
[in] | db | Db structure containing the factors (Z-locators) |
[in] | anam | Point anamorphosis |
[in] | selectivity | Selectivity structure |
[in] | name_est | Array of variable names for factor estimation |
[in] | name_std | Array of variable names for factor St. Dev. |
[in] | namconv | Naming convention |
double gstlrn::distance_grid | ( | DbGrid * | db, |
Id | flag_moins1, | ||
Id | iech1, | ||
Id | iech2, | ||
double * | dist_vect | ||
) |
Calculates the distance between two points in the same grid Db
[in] | db | Db structure |
[in] | flag_moins1 | 1 to use the cell center |
[in] | iech1 | rank of the first sample |
[in] | iech2 | rank of the second sample |
[out] | dist_vect | If the output vector is provided. Returns the distance as a vector |
double gstlrn::distance_inter | ( | const Db * | db1, |
const Db * | db2, | ||
Id | iech1, | ||
Id | iech2, | ||
double * | dist_vect | ||
) |
Calculates the distance between two points
[in] | db1 | Db structure for the first sample |
[in] | db2 | Db structure for the second sample |
[in] | iech1 | rank of the first sample |
[in] | iech2 | rank of the second sample |
[out] | dist_vect | If the output vector is provided. Returns the distance as a vector |
Calculates the distance between two points in the same Db
[in] | db | Db structure |
[in] | iech1 | rank of the first sample |
[in] | iech2 | rank of the second sample |
[out] | dist_vect | If the output vector is provided. Returns the distance as a vector |
double gstlrn::distanceBetweenPolylines | ( | const PolyLine2D & | poly1, |
const PolyLine2D & | poly2, | ||
const PolyPoint2D & | pldist1, | ||
const PolyPoint2D & | pldist2 | ||
) |
|
static |
void gstlrn::dumpMeshes | ( | const VectorMeshes & | meshes | ) |
|
static |
auto gstlrn::enumerate | ( | T & | container | ) |
|
static |
double gstlrn::euclidean_distance | ( | const double * | x1, |
const double * | x2, | ||
Id | n_features | ||
) |
Returns the Standard Euclidean distance between two points
x1 | Vector of coordinates for the first point |
x2 | Vector of coordinates for the second point |
n_features | Number of coordinates |
Array gstlrn::evalCovFFTSpatial | ( | const 1 & | hmax, |
Id | N, | ||
const std::function< double(const 1 &)> & | funcSpectrum | ||
) |
Array gstlrn::evalCovFFTTimeSlice | ( | const 1 & | hmax, |
double | time, | ||
Id | N, | ||
const std::function< std::complex< double >(1, double)> & | funcSpectrum | ||
) |
perform the FFT transform for a First-Order Space Time evolution equation
hmax | Maximum spatial distances (Dimension: spatial ndim) |
time | Time of the covariance slice |
N | Discretization number (in each spatial dimension) |
funcSpectrum | External adequate spectrum evaluation function |
void gstlrn::exit_extern | ( | ) |
External function to provoke an exit of API This call comes from AStringable where initial mes_abort() has been moved
Expands a variable from one point Db into a variable at points defined by coordinate vectors (maximum 3D)
[in] | db1 | descriptor of the input parameters |
[in] | iatt | rank of the input attribute |
[in] | coords | Array of coordinates |
[out] | tab | Output array (Dimension: number of discretized points) |
VectorString gstlrn::expandList | ( | const VectorString & | list, |
const String & | match, | ||
bool | onlyOne | ||
) |
Returns the list of matching names
list | List of eligible names |
match | Name to be expanded |
onlyOne | True if the expanded list may only contain a single name |
VectorString gstlrn::expandList | ( | const VectorString & | list, |
const VectorString & | matches | ||
) |
Expands a variable from one point Db into a variable at points defined by coordinate vectors (maximum 3D)
[in] | db1 | descriptor of the input parameters |
[in] | iatt | rank of the input attribute |
[in] | coords | Array of coordinates |
[out] | tab | Output array (Dimension: number of discretized points) |
Id gstlrn::expandPointToGrid | ( | Db * | db_point, |
DbGrid * | db_grid, | ||
Id | iatt, | ||
Id | iatt_time, | ||
Id | iatt_angle, | ||
Id | iatt_scaleu, | ||
Id | iatt_scalev, | ||
Id | iatt_scalew, | ||
Id | flag_index, | ||
Id | distType, | ||
const 1 & | dmax, | ||
1 & | tab | ||
) |
Expands a variable from the point structure into a variable in the grid structure
[in] | db_point | Descriptor of the point parameters |
[in] | db_grid | Descriptor of the grid parameters |
[in] | iatt | Rank of the point attribute |
[in] | iatt_time | Optional variable for Time shift |
[in] | iatt_angle | Optional variable for anisotropy angle (around Z) |
[in] | iatt_scaleu | Optional variable for anisotropy scale factor (U) |
[in] | iatt_scalev | Optional variable for anisotropy scale factor (V) |
[in] | iatt_scalew | Optional variable for anisotropy scale factor (W) |
[in] | flag_index | 1 if the Index must be assigned to grid node 0 the 'iatt' attribute is assigned instead |
[in] | distType | Type of distance for calculating maximum distance 1 for L1 and 2 for L2 distance |
[in] | dmax | Array of maximum distances (optional) |
[out] | tab | Output array |
bool gstlrn::FFFF | ( | double | value | ) |
Checks if a double value is TEST
[in] | value | Value to be tested |
|
static |
Free the arrays allocated for FFT
Calculate the FFT in a space of dimension N
Calculate the FFT in a space of dimension N
|
static |
void gstlrn::fftshift | ( | const 1 & | dims, |
1 & | data | ||
) |
MatrixDense gstlrn::fillLegendreMatrix | ( | const 1 & | r, |
Id | legendreOrder | ||
) |
Id gstlrn::find_node_split_dim | ( | const MatrixT< double > & | data, |
const 1 & | node_indices, | ||
Id | n_features, | ||
Id | n_points | ||
) |
MatrixT< Id > gstlrn::findNN | ( | const Db * | dbin, |
const Db * | dbout = nullptr , |
||
Id | nb_neigh = 3 , |
||
bool | flagShuffle = false , |
||
bool | verbose = false , |
||
Id | leaf_size = 10 , |
||
Id | default_distance_function = 1 |
||
) |
MatrixDense gstlrn::fluid_extract | ( | DbGrid * | dbgrid, |
const String & | name_facies, | ||
const String & | name_fluid, | ||
const String & | name_poro, | ||
const String & | name_date, | ||
Id | nfacies, | ||
Id | nfluids, | ||
Id | facies0, | ||
Id | fluid0, | ||
Id | ntime, | ||
double | time0, | ||
double | dtime, | ||
bool | verbose | ||
) |
Extract time charts from the fluid propagation block
[in] | dbgrid | Db grid structure |
[in] | name_facies | Name of variable containing Facies |
[in] | name_fluid | Name of variable containing Fluid |
[in] | name_poro | Name of variable containing Porosity (optional) |
[in] | name_date | Name of variable containing Date |
[in] | nfacies | number of facies (facies 0 excluded) |
[in] | nfluids | number of fluids |
[in] | facies0 | Value of the target facies |
[in] | fluid0 | Value of the target fluid |
[in] | ntime | Number of Time intervals |
[in] | time0 | Starting time |
[in] | dtime | Time interval |
[in] | verbose | 1 for a verbose option |
Id gstlrn::fluid_propagation | ( | DbGrid * | dbgrid, |
const String & | name_facies, | ||
const String & | name_fluid, | ||
const String & | name_perm, | ||
const String & | name_poro, | ||
Id | nfacies, | ||
Id | nfluids, | ||
Id | niter, | ||
const 1 & | speeds, | ||
bool | show_fluid, | ||
double | number_max, | ||
double | volume_max, | ||
Id | seed, | ||
bool | verbose, | ||
const NamingConvention & | namconv | ||
) |
Multivariate multiphase propagation into a set of components constrained by initial conditions and fluid densities
[in] | dbgrid | Db grid structure |
[in] | name_facies | Name of the variable containing the Facies |
[in] | name_fluid | Name of the variable containing the Fluid |
[in] | name_perm | Name of the variable containing the Permeability |
[in] | name_poro | Name of the variable containing the Porosity |
[in] | nfacies | number of facies (facies 0 excluded) |
[in] | nfluids | number of fluids |
[in] | niter | Number of iterations |
[in] | speeds | Array containing the travel speeds |
[in] | show_fluid | 1 for modifying the value of the cells to show
|
[in] | number_max | Maximum count of cells invaded (or TEST) |
[in] | volume_max | Maximum volume invaded (or TEST) |
[in] | seed | Seed for random number generator (or 0) |
[in] | verbose | 1 for a verbose option |
[in] | namconv | Naming convention |
|
static |
Id gstlrn::foxleg_f | ( | Id | ndat, |
Id | npar, | ||
Id | ncont, | ||
const MatrixDense & | acont, | ||
1 & | param, | ||
1 & | lower, | ||
1 & | upper, | ||
1 & | scale, | ||
const Option_AutoFit & | mauto, | ||
Id | flag_title, | ||
void(*)(Id ndat, Id npar, 1 ¶m, 1 &work) | func_evaluate, | ||
1 & | tabexp, | ||
1 & | tabwgt | ||
) |
Foxleg algorithm
[in] | ndat | Number of control points |
[in] | npar | Number of parameters to estimate |
[in] | ncont | Number of additional constraints |
[in] | acont | Matrix of additional constraints (Dimension = ncont * npar) |
[in] | param | Current values of the parameters |
[in] | lower | Array of lower values |
[in] | upper | Array of upper values |
[in] | scale | Array of scale |
[in] | mauto | Option_AutoFit structure |
[in] | flag_title | Print the title after func_evaluate() |
[in] | func_evaluate | Function for evaluating the model |
[in] | tabexp | Array of values at control points |
[in] | tabwgt | Array of weights at control points |
|
static |
VectorString gstlrn::generateMultipleNames | ( | const String & | radix, |
Id | number, | ||
const String & | delim = "-" |
||
) |
Returns a value from the a 3-D (maximum) grid
Inquiry the keypair
[in] | keyword | Keyword |
[out] | nrow | Number of rows |
[out] | ncol | Number of columns |
[out] | values | Array of values attached to the keyword |
Inquiry the keypair (integer values)
[in] | keyword | Keyword |
[out] | nrow | Number of rows |
[out] | ncol | Number of columns |
[out] | values | Array of values attached to the keyword |
double gstlrn::get_keypone | ( | const char * | keyword, |
double | valdef | ||
) |
Inquiry the keypair (for a single value)
[in] | keyword | Keyword |
[in] | valdef | Factory setting value |
Give the rank of a "variable" for a given GRF and PGS
[in] | propdef | PropDef structure |
[in] | ipgs | Rank of the GS |
[in] | igrf | Rank of the Gaussian |
double gstlrn::get_rule_extreme | ( | Id | mode | ) |
Get the lower or upper bound
[in] | mode | <0 for lower bound; >0 for upper bound |
Id gstlrn::get_rule_mode | ( | void | ) |
Get the current Rule Mode
gstlrn::getChangeSupport | ( | DbGrid * | db, |
ModelGeneric * | model, | ||
const SimuFFTParam & | param, | ||
const 1 & | sigma, | ||
Id | seed, | ||
bool | verbose | ||
) |
Calculate the change of support coefficients by FFT method in the lognormal case on a grid
[in] | db | Db structure |
[in] | model | ModelGeneric structure |
[in] | param | SimuFFTParam structure |
[in] | sigma | Array of logarithmic variances |
[in] | seed | Seed for random number generator |
[in] | verbose | Verbose flag |
Id gstlrn::getClosestInteger | ( | double | value | ) |
const ASpace * gstlrn::getDefaultSpace | ( | ) |
Id gstlrn::getDefaultSpaceDimension | ( | ) |
ASpaceSharedPtr gstlrn::getDefaultSpaceSh | ( | ) |
ESpaceType gstlrn::getDefaultSpaceType | ( | ) |
Return a clone of the unique default global space.
bool gstlrn::getFlagMatrixCheck | ( | ) |
Id gstlrn::getITEST | ( | ) |
gstlrn::getListActiveToAbsolute | ( | const 1 & | sel | ) |
Returns the list of absolute indices for the only active samples A sample is active if its 'sel' value is equal to 1
sel | Vector giving the status of all samples (Dimension: absolute) |
gstlrn::getLocatorMultiples | ( | ) |
Return the name of Locator
locatorType | Type of the Locator (can be negative for 'Rank') |
locatorIndex | Rank within the locator starting from 1 (can be <0 for the keyword only) |
VectorString gstlrn::getLocatorNames | ( | ) |
Returns the map such that MAP[iabs] = iact. A sample is active if its 'sel' value is equal to 1
sel | Vector giving the status of all samples (Dimension: absolute) |
verbose | Verbose flag |
double gstlrn::getMax | ( | double | val1, |
double | val2 | ||
) |
Id gstlrn::getMaxStringSize | ( | const VectorString & | list | ) |
Returns the maximum string size of a list of strings
list | List of strings |
double gstlrn::getMin | ( | double | val1, |
double | val2 | ||
) |
I32 gstlrn::getMultiThread | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Id gstlrn::getRankInList | ( | const VectorString & | list, |
const String & | match, | ||
bool | caseSensitive | ||
) |
Return the rank of the (first) item in 'list' which matches 'match'
list | List of keywords used for search |
match | Searched pattern |
caseSensitive | Case Sensitive flag |
Returns the rank of the relative grid node from its absolute index using the Map
map | The <Id,Id> map |
iabs | Absolute rank of the grid node |
double gstlrn::getTEST | ( | ) |
unsigned long long gstlrn::getTotalSystemMemory | ( | ) |
Id gstlrn::gibbs_sampler | ( | Db * | dbin, |
Model * | model, | ||
Id | nbsimu, | ||
Id | seed, | ||
Id | gibbs_nburn, | ||
Id | gibbs_niter, | ||
bool | flag_moving, | ||
bool | flag_norm, | ||
bool | flag_multi_mono, | ||
bool | flag_propagation, | ||
bool | flag_sym_neigh, | ||
Id | gibbs_optstats, | ||
double | percent, | ||
bool | flag_ce, | ||
bool | flag_cstd, | ||
bool | verbose, | ||
const NamingConvention & | namconv | ||
) |
Perform the Gibbs sampler
[in] | dbin | Db structure |
[in] | model | Model structure |
[in] | nbsimu | Number of simulations |
[in] | seed | Seed for random number generator |
[in] | gibbs_nburn | Initial number of iterations for bootstrapping |
[in] | gibbs_niter | Maximum number of iterations |
[in] | flag_moving | 1 for Moving |
[in] | flag_norm | 1 if the Model must be normalized |
[in] | flag_multi_mono | 1 for the Multi_mono algorithm |
[in] | flag_propagation | 1 for the propagation algorithm |
[in] | flag_sym_neigh | Deprecated argument |
[in] | gibbs_optstats | 0: No stats - 1: Print - 2: Save Neutral file |
[in] | percent | Amount of nugget effect added to too continuous model (expressed in percentage of total variance) |
[in] | flag_ce | 1 if the conditional expectation should be returned instead of simulations |
[in] | flag_cstd | 1 if the conditional standard deviation should be returned instead of simulations |
[in] | verbose | Verbose flag |
[in] | namconv | Naming convention |
Global_Result gstlrn::global_arithmetic | ( | Db * | dbin, |
DbGrid * | dbgrid, | ||
ModelGeneric * | model, | ||
Id | ivar0 = 0 , |
||
bool | verbose = false |
||
) |
Global_Result gstlrn::global_kriging | ( | Db * | dbin, |
Db * | dbout, | ||
ModelGeneric * | model, | ||
Id | ivar0 = 0 , |
||
bool | verbose = false |
||
) |
Id gstlrn::global_transitive | ( | DbGrid * | dbgrid, |
Model * | model, | ||
Id | flag_verbose, | ||
Id | flag_regular, | ||
Id | ndisc, | ||
double * | abundance, | ||
double * | sse, | ||
double * | cvtrans | ||
) |
Estimation of the variance by transitive method
[in] | dbgrid | Db structure containing the dicretization grid |
[in] | model | Model structure |
[in] | flag_verbose | 1 for a verbose output |
[in] | flag_regular | 1 for regular; 0 for stratified |
[in] | ndisc | Number of Discretization steps |
[out] | abundance | Global estimated abundance |
[out] | sse | Global standard deviation |
[out] | cvtrans | CV transitive |
double gstlrn::golden_search | ( | double(*)(double test, void *user_data) | func_evaluate, |
void * | user_data, | ||
double | tolstop, | ||
double | a0, | ||
double | c0, | ||
double * | test_loc, | ||
double * | niter | ||
) |
Golden Search algorithm
[in] | func_evaluate | Evaluating function |
[in] | user_data | User Data |
[in] | tolstop | Tolerance parameter |
[in] | a0 | Initial value for lower bound of interval |
[in] | c0 | Initial value for upper bound of interval |
[out] | test_loc | Final value of the evaluating function |
[out] | niter | Number of iterations |
gstlrn::grid_iterator_next | ( | Grid * | grid | ) |
Returns 1 when the last element of the iteration is reached
Increment the Grid iterator
bool gstlrn::gslFileExist | ( | const char * | path, |
const char * | mode | ||
) |
FILE * gstlrn::gslFopen | ( | const char * | path, |
const char * | mode | ||
) |
std::istream & gstlrn::gslSafeGetline | ( | std::istream & | is, |
String & | t | ||
) |
Get line from an input text stream whatever the end of line convention. Thanks to: https://stackoverflow.com/a/6089413
Id gstlrn::gslScanf | ( | const char * | fmt, |
... | |||
) |
Id gstlrn::gslSScanf | ( | const char * | str, |
const char * | fmt, | ||
... | |||
) |
char * gstlrn::gslStrcat | ( | char * | dst, |
Id | n, | ||
const char * | src | ||
) |
void gstlrn::gslStrcat | ( | String & | dst, |
const char * | src | ||
) |
char * gstlrn::gslStrcpy | ( | char * | dst, |
Id | n, | ||
const char * | src | ||
) |
void gstlrn::gslStrcpy | ( | String & | dst, |
const char * | src | ||
) |
char * gstlrn::gslStrtok | ( | char * | str, |
const char * | delim | ||
) |
Given two Dbs, check that they have same Variable Number (locator Z) The first or the second Db must be undefined When both are undefined, FALSE if returned When both are defined, return the Maximum value.
db1 | |
db2 | |
nvar | Common number of variables |
Given two Dbs, check that they have same Space Dimension The first or the second Db must be undefined When both are undefined, FALSE if returned.
db1 | |
db2 | |
ndim | Common space dimension |
gstlrn::hermiteCoefIndicator | ( | double | yc, |
Id | nbpoly | ||
) |
yc | Cutoff Value |
nbpoly | Number of Hermite polynomials |
gstlrn::hermiteCoefLower | ( | double | y, |
Id | nbpoly | ||
) |
Returns the vector of Hermite coefficients of the gaussian floored at 'y'
y | Floor value |
nbpoly | Number of Polynomial functions |
gstlrn::hermiteCoefMetal | ( | double | yc, |
const 1 & | phi | ||
) |
yc | Cutoff Value |
phi | Coefficients of Hermite polynomial |
gstlrn::hermiteCondExp | ( | 1 | krigest, |
1 | krigstd, | ||
const 1 & | phi | ||
) |
Calculate the Conditional Expectation: E[Z | Z1=z1, Z2=z2, ..., Zn=zn] = Id Phi(y_kk + s_k u) g(u) du
krigest | Vector of Kriging estimates |
krigstd | Vector of Kriging standard deviations |
phi | Array of Hermite coefficients |
double gstlrn::hermiteCondExpElement | ( | double | krigest, |
double | krigstd, | ||
const 1 & | phi | ||
) |
gstlrn::hermiteCondStd | ( | 1 | krigest, |
1 | krigstd, | ||
const 1 & | phi | ||
) |
Vector of conditional variances (same dimension as krigest and krigstd)
krigest | Vector of Kriging estimate |
krigstd | Vector of Kriging standard deviations |
phi | Array of Hermite coefficients |
double gstlrn::hermiteCondStdElement | ( | double | krigest, |
double | krigstd, | ||
const 1 & | phi | ||
) |
MatrixSquare gstlrn::hermiteIncompleteIntegral | ( | double | yc, |
Id | nbpoly | ||
) |
yc | Cutoff Value |
nbpoly | Number of Hermite polynomials |
gstlrn::hermiteIndicator | ( | double | yc, |
1 | krigest, | ||
1 | krigstd | ||
) |
yc | Cutoff Value |
krigest | Estimation |
krigstd | Standard deviation of estimation error |
double gstlrn::hermiteIndicatorElement | ( | double | yc, |
double | krigest, | ||
double | krigstd | ||
) |
gstlrn::hermiteIndicatorLower | ( | double | y, |
Id | nbpoly | ||
) |
gstlrn::hermiteIndicatorStd | ( | double | yc, |
1 | krigest, | ||
1 | krigstd | ||
) |
double gstlrn::hermiteIndicatorStdElement | ( | double | yc, |
double | krigest, | ||
double | krigstd | ||
) |
gstlrn::hermiteLognormal | ( | double | mean, |
double | sigma, | ||
Id | nbpoly | ||
) |
Hermite coefficient for a lognormal transform mean * exp(sigma * Y + 1/2 * sigma^2)
mean | Mean value |
sigma | Standard deviation |
nbpoly | Number of Hermite polynomials |
gstlrn::hermiteMetal | ( | double | yc, |
1 | krigest, | ||
1 | krigstd, | ||
const 1 & | phi | ||
) |
yc | Cutoff Value |
krigest | Estimation |
krigstd | Standard deviation of estimation error |
phi | Hermite coefficients |
double gstlrn::hermiteMetalElement | ( | double | yc, |
double | krigest, | ||
double | krigstd, | ||
const 1 & | phi | ||
) |
gstlrn::hermiteMetalStd | ( | double | yc, |
1 | krigest, | ||
1 | krigstd, | ||
const 1 & | phi | ||
) |
double gstlrn::hermiteMetalStdElement | ( | double | yc, |
double | krigest, | ||
double | krigstd, | ||
const 1 & | phi | ||
) |
gstlrn::hermitePolynomials | ( | double | y, |
double | r, | ||
const 1 & | ifacs | ||
) |
Returns the vector of Hermite Polynomials selected by ranks
y | Target variable |
r | Change of support coefficient |
ifacs | Vector of ranks (staring from 0) |
gstlrn::hermitePolynomials | ( | double | y, |
double | r, | ||
Id | nbpoly | ||
) |
Calculation of the Hermite Polynomials for a given value
y | Gaussian value for which the Hermite polynomials are calculated |
r | Change of support coefficient |
nbpoly | Number of Hermite polynomials |
double gstlrn::hermiteSeries | ( | const 1 & | an, |
const 1 & | hn | ||
) |
Evaluate the Hermite expansion
an | Series of coefficients of the Hermite polynomials |
hn | Hermite polynomial values |
gstlrn::hscatterPairs | ( | Db * | db, |
const String & | name1, | ||
const String & | name2, | ||
VarioParam * | varioparam, | ||
Id | ilag, | ||
Id | idir, | ||
bool | verbose | ||
) |
Evaluate the shifted correlation calculated as follows: Correl(Z1(x) , Z2(x+h))
[in] | db | Db descriptor |
[in] | name1 | Name of the first variable |
[in] | name2 | Name of the second variable |
[in] | varioparam | pointer to a VarioParam structure |
[in] | ilag | Rank of the lag of interest |
[in] | idir | Rank of the direction of interest (within VarioParam) |
[in] | verbose | Verbose flag |
bool gstlrn::IFFFF | ( | Id | value | ) |
Checks if an integer value is TEST
[in] | value | Value to be tested |
String gstlrn::incrementStringVersion | ( | const String & | string, |
Id | rank = 1 , |
||
const String & | delim = "." |
||
) |
Id gstlrn::index_point_to_grid | ( | const Db * | dbin, |
Id | iech, | ||
Id | flag_outside, | ||
const DbGrid * | dbout, | ||
double * | coor | ||
) |
Find the index of the output grid file which is the closest to the sample of the input file
[in] | dbin | descriptor of the input file |
[in] | iech | Index of the data point |
[in] | flag_outside | value returned for the point outside the grid
|
[in] | dbout | descriptor of the output grid file |
[out] | coor | Working array (dimension: ndim) |
Id gstlrn::inhomogeneous_kriging | ( | Db * | dbdat, |
Db * | dbsrc, | ||
Db * | dbout, | ||
double | power, | ||
Id | flag_source, | ||
Model * | model_dat, | ||
Model * | model_src | ||
) |
Inhomogeneous Kriging with Sources
[in] | dbdat | Db structure containing Data |
[in] | dbsrc | Db structure containing Sources |
[in] | dbout | Output Db structure |
[in] | power | Power of the Distance decay |
[in] | flag_source | If the result is the source, rather than diffusion |
[in] | model_dat | Model structure for the data |
[in] | model_src | Model structure for the sources |
|
static |
|
static |
|
static |
double gstlrn::integralGaussHermite | ( | double | yc, |
double | r, | ||
const 1 & | psi | ||
) |
Calculate: Id phi(r*y + u * sqrt(1-r^2)) g(u) du
yc | Cutoff value |
r | Change of support coefficient |
psi | Vector of Hermite coefficients |
Id gstlrn::interpolateVariableToPoint | ( | DbGrid * | db_grid, |
Id | iatt, | ||
Id | np, | ||
const double * | xp, | ||
const double * | yp, | ||
const double * | zp, | ||
double * | tab | ||
) |
Interpolate a variable from a grid Db on discretization points
[in] | db_grid | Descriptor of the grid parameters |
[in] | iatt | Rank of the attribute in db_grid |
[in] | np | Number of discretized points |
[in] | xp | Array of first coordinates |
[in] | yp | Array of second coordinates |
[in] | zp | Array of third coordinates |
[out] | tab | Output array |
Id gstlrn::inverseDistance | ( | Db * | dbin, |
Db * | dbout, | ||
double | exponent, | ||
bool | flag_expand, | ||
double | dmax, | ||
bool | flag_est, | ||
bool | flag_std, | ||
Model * | model, | ||
const NamingConvention & | namconv | ||
) |
Inverse distance estimation
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | exponent | exponent of the inverse distance |
[in] | flag_expand | True for expansion option (if dbin is Grid) |
[in] | dmax | Maximum search radius (if dbin is Points) |
[in] | flag_est | True if the estimation must be calculated |
[in] | flag_std | True if the St. Dev. must be calculated |
[in] | model | Model structure (used for St. Dev.) |
[in] | namconv | Naming convention |
|
static |
Calculate the generalized inverse of a square symmetric matrix
[in] | a | Matrix to be inverted |
[out] | tabout | Inverted matrix |
Check if a grid is a multiple of the other grid
[in] | db1 | Db1 small grid structure |
[in] | db2 | Db1 coarse grid structure |
bool gstlrn::isDefaultSpaceSphere | ( | ) |
bool gstlrn::isEqual | ( | double | v1, |
double | v2, | ||
double | eps = EPSILON10 |
||
) |
bool gstlrn::isEqualExtended | ( | double | v1, |
double | v2, | ||
double | eps, | ||
bool | flagRelative, | ||
bool | flagAbsolute, | ||
const String & | string | ||
) |
Function checking that two values are equal This verbose method is essentially used in tests.
v1 | First value to be compared |
v2 | Second value to be compared |
eps | Tolerance used for comparison |
flagRelative | when True, the values are compared without paying attention to their sign |
flagAbsolute | when True, test is run on absolute difference |
string | Message to be displayed when the vectors are not similar |
bool gstlrn::isEven | ( | Id | number | ) |
bool gstlrn::isInteger | ( | double | value, |
double | eps = EPSILON10 |
||
) |
bool gstlrn::isLocatorTypeValid | ( | const ELoc & | locatorType, |
bool | unknownValid | ||
) |
Check if the Locator type is valid or not Note that the locator type is returned as -1 for non identified locator (such as rank)
locatorType | The locator type to be identified |
unknownValid | True if ELoc::UNKNOWN is considered as valid |
bool gstlrn::isMultiThread | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool gstlrn::isOdd | ( | Id | number | ) |
bool gstlrn::isOne | ( | double | value, |
double | eps = EPSILON10 |
||
) |
bool gstlrn::isTurbo | ( | const VectorMeshes & | meshes | ) |
Check if a series of Meshes (included in 'meshes') are Turbo.
meshes |
bool gstlrn::isZero | ( | double | value, |
double | eps = EPSILON10 |
||
) |
Perform k-means clustering on a given set of variables. The number of clusters is given in input
[in] | data | Array of values |
[in] | nvar | Number of samples |
[in] | nech | Number of variables |
[in] | nclusters | Number if clusters |
[in] | npass | Number of times clustering is performed |
[in] | mode | 0 for k-means and 1 for k-medians |
[in] | verbose | Verbose option |
std::vector< EStatOption > gstlrn::KeysToStatOptions | ( | const VectorString & | opers | ) |
Perform k-medoids clustering on a given set of variables. The number of clusters is given in input
[in] | data | Array of values |
[in] | nvar | Number of samples |
[in] | nech | Number of variables |
[in] | nclusters | Number if clusters |
[in] | npass | Number of times clustering is performed |
[in] | verbose | Verbose option |
Id gstlrn::kribayes | ( | Db * | dbin, |
Db * | dbout, | ||
ModelGeneric * | model, | ||
ANeigh * | neigh, | ||
const 1 & | prior_mean, | ||
const MatrixSymmetric & | prior_cov, | ||
bool | flag_est, | ||
bool | flag_std, | ||
const NamingConvention & | namconv | ||
) |
Estimation with Bayesian Drift
[in] | dbin | input Db structure |
[in] | dbout | output Db structure |
[in] | model | ModelGeneric structure |
[in] | neigh | ANeigh structure |
[in] | prior_mean | Array giving the prior means for the drift terms |
[in] | prior_cov | Array containing the prior covariance matrix for the drift terms |
[in] | flag_est | Pointer for the storing the estimation |
[in] | flag_std | Pointer for the storing the standard deviation |
[in] | namconv | Naming convention |
Id gstlrn::krigcell | ( | Db * | dbin, |
Db * | dbout, | ||
ModelGeneric * | model, | ||
ANeigh * | neigh, | ||
bool | flag_est, | ||
bool | flag_std, | ||
const KrigOpt & | krigopt, | ||
const NamingConvention & | namconv | ||
) |
Standard Block Kriging with variable cell dimension
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | model | ModelGeneric structure |
[in] | neigh | ANeigh structure |
[in] | flag_est | Option for the storing the estimation |
[in] | flag_std | Option for the storing the standard deviation |
[in] | krigopt | KrigOpt structure |
[in] | namconv | Naming convention |
Id gstlrn::krige_koption_manage | ( | Id | mode, |
Id | flag_check, | ||
const EKrigOpt & | calcul, | ||
Id | flag_rand, | ||
const 1 & | ndiscs | ||
) |
Management of Kriging option
[in] | mode | 1 for allocation; -1 for deallocation |
[in] | flag_check | 1 if the file should be checked |
[in] | calcul | Type of calculation (EKrigOpt) |
[in] | flag_rand | 0 if the second discretization is regular 1 if the second point must be randomized |
[in] | ndiscs | Discretization parameters (or NULL) |
Print the L.H.S. matrix
[in] | nech | Number of active points (optional) |
[in] | neq | Number of equations |
[in] | nred | Reduced number of equations |
[in] | flag | Flag array (optional) |
[in] | lhs | Kriging L.H.S |
Print the R.H.S. matrix
[in] | nvar | Number of variables |
[in] | nech | Number of active points (optional) |
[in] | neq | Number of equations |
[in] | nred | Reduced number of equations |
[in] | flag | Flag array (optional) |
[in] | rhs | Kriging R.H.S. matrix |
Id gstlrn::kriggam | ( | Db * | dbin, |
Db * | dbout, | ||
ModelGeneric * | model, | ||
ANeigh * | neigh, | ||
AAnam * | anam, | ||
const NamingConvention & | namconv | ||
) |
Id gstlrn::kriging | ( | Db * | dbin, |
Db * | dbout, | ||
ModelGeneric * | model, | ||
ANeigh * | neigh, | ||
bool | flag_est, | ||
bool | flag_std, | ||
bool | flag_varz, | ||
const KrigOpt & | krigopt, | ||
const NamingConvention & | namconv | ||
) |
Standard Kriging
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | model | ModelGeneric structure |
[in] | neigh | ANeigh structure |
[in] | flag_est | Option for storing the estimation |
[in] | flag_std | Option for storing the standard deviation |
[in] | flag_varz | Option for storing the variance of the estimator (only available for stationary model) |
[in] | krigopt | KrigOpt structure |
[in] | namconv | Naming convention |
Id gstlrn::krigingFactors | ( | Db * | dbin, |
Db * | dbout, | ||
Model * | model, | ||
ANeigh * | neigh, | ||
bool | flag_est, | ||
bool | flag_std, | ||
const KrigOpt & | krigopt, | ||
const NamingConvention & | namconv | ||
) |
Disjunctive Kriging
[in] | dbin | input Db structure (containing the factors) |
[in] | dbout | output Grid Db structure |
[in] | model | Model structure |
[in] | neigh | ANeigh structure |
[in] | flag_est | Option for the storing the estimation |
[in] | flag_std | Option for the storing the standard deviation |
[in] | krigopt | Krigopt structure |
[in] | namconv | Naming convention |
Id gstlrn::krigingSPDE | ( | Db * | dbin, |
Db * | dbout, | ||
Model * | model, | ||
bool | flag_est, | ||
bool | flag_std, | ||
Id | useCholesky, | ||
const VectorMeshes * | meshesK, | ||
const ProjMultiMatrix * | projInK, | ||
const VectorMeshes * | meshesS, | ||
const ProjMultiMatrix * | projInS, | ||
const ProjMultiMatrix * | projOutK, | ||
const ProjMultiMatrix * | projOutS, | ||
const SPDEParam & | params, | ||
bool | verbose, | ||
const NamingConvention & | namconv | ||
) |
Perform the estimation by KRIGING under the SPDE framework
dbin | Input Db (must contain the variable to be estimated) |
dbout | Output Db where the estimation must be performed |
model | Model definition |
flag_est | True for the estimation |
flag_std | True for the standard deviation of estimation error |
useCholesky | Define the choice regarding Cholesky (see _defineCholesky) |
meshesK | Meshes description (optional) |
projInK | Matrix of projection (optional) |
meshesS | Meshes used for Variance calulcation (optional) |
projInS | Matrix of projection used for Variance calculation (optional) |
projOutK | Matrix of projection on dbout used for Kriging (optional) |
projOutS | Matrix of projection on dbout used for Simulations (optional) |
params | Set of SPDE parameters |
verbose | Verbose flag |
namconv | Naming convention |
'meshesS' and 'projInS' are used only if 'flag_std' is true and useCholesky=0
Id gstlrn::krigingVecchia | ( | Db * | dbin, |
Db * | dbout, | ||
ModelGeneric * | model, | ||
Id | nb_neigh = 5 , |
||
bool | verbose = false , |
||
const NamingConvention & | namconv = NamingConvention("Vecchia") |
||
) |
Id gstlrn::krigsampling_f | ( | Db * | dbin, |
Db * | dbout, | ||
Model * | model, | ||
double | beta, | ||
1 & | ranks1, | ||
1 & | ranks2, | ||
bool | flag_std, | ||
Id | verbose | ||
) |
Perform the Kriging procedure using the parcimonious search within the whole input data set
Id gstlrn::krigsum | ( | Db * | dbin, |
Db * | dbout, | ||
Model * | model, | ||
ANeigh * | neigh, | ||
bool | flag_positive, | ||
const NamingConvention & | namconv | ||
) |
Punctual Multivariate Kriging under a constraint
[in] | dbin | input Db structure |
[in] | dbout | output Db structure |
[in] | model | Model structure (univariate) |
[in] | neigh | ANeigh structure |
[in] | flag_positive | 1 for a positive constraints |
[in] | namconv | Naming convention |
Krigtest_Res gstlrn::krigtest | ( | Db * | dbin, |
Db * | dbout, | ||
ModelGeneric * | model, | ||
ANeigh * | neigh, | ||
Id | iech0, | ||
const KrigOpt & | krigopt, | ||
bool | verbose | ||
) |
Perform kriging and return the calculation elements
[in] | dbin | input Db structure |
[in] | dbout | output Db structure |
[in] | model | ModelGeneric structure |
[in] | neigh | ANeigh structure |
[in] | iech0 | Rank of the target sample |
[in] | krigopt | KrigOpt structure |
[in] | verbose | When TRUE, the full debugging flag is switched ON (the current status is reset after the run) |
Id gstlrn::krimage | ( | DbGrid * | dbgrid, |
Model * | model, | ||
ANeigh * | neigh, | ||
bool | flagFFT, | ||
bool | verbose, | ||
Id | seed, | ||
const NamingConvention & | namconv | ||
) |
Kriging (Factorial) a regular grid
double gstlrn::law_beta1 | ( | double | parameter1, |
double | parameter2 | ||
) |
Generate random numbers according to a beta distribution (first kind)
[in] | parameter1 | first parameter of the beta distribution |
[in] | parameter2 | first parameter of the beta distribution |
double gstlrn::law_beta2 | ( | double | parameter1, |
double | parameter2 | ||
) |
Generate random numbers according to a beta distribution (second kind)
[in] | parameter1 | first parameter of the beta distribution |
[in] | parameter2 | first parameter of the beta distribution |
Generates a binomial value
[in] | n | Number of trials |
[in] | p | Event probability |
double gstlrn::law_cdf_gaussian | ( | double | value | ) |
Cumulated density function of a gaussian distribution
[in] | value | raw value |
double gstlrn::law_df_bigaussian | ( | 1 & | vect, |
1 & | mean, | ||
MatrixSymmetric & | correl | ||
) |
double gstlrn::law_df_gaussian | ( | double | value | ) |
Density function of a gaussian distribution
[in] | value | raw value |
double gstlrn::law_df_multigaussian | ( | 1 & | vect, |
MatrixSymmetric & | correl | ||
) |
Density function of a multigaussian distribution
[in] | vect | Array of values (Dimension = nvar) |
[in] | correl | Correlation matrix (Dimension: nvar*nvar) |
double gstlrn::law_df_poisson | ( | Id | i, |
double | parameter | ||
) |
gstlrn::law_df_poisson_vec | ( | 1 | is, |
double | parameter | ||
) |
double gstlrn::law_df_quadgaussian | ( | 1 & | vect, |
MatrixSymmetric & | correl | ||
) |
Density function of a quadrigaussian distribution
[in] | vect | Array of values (Dimension = nvar) |
[in] | correl | Correlation matrix (Dimension: nvar*nvar) |
double gstlrn::law_dnorm | ( | double | value, |
double | mean, | ||
double | std | ||
) |
Density function of a (non-normalized) gaussian distribution
[in] | value | Raw value |
[in] | mean | Mean value |
[in] | std | Standard deviation |
gstlrn::law_exp_sample | ( | const double * | tabin, |
Id | mode, | ||
Id | nvar, | ||
Id | nechin, | ||
Id | nechout, | ||
Id | niter, | ||
Id | nconst, | ||
double * | consts, | ||
Id | seed, | ||
double | percent | ||
) |
Sample a multivariate empirical distribution
[in] | tabin | Input array |
[in] | mode | Describes the way 'tabin' and 'tabout' are filled 1: by column; 2: by row |
[in] | nvar | Number of variables (input and output) |
[in] | nechin | Number of samples in the input array |
[in] | nechout | Number of created samples |
[in] | niter | Maximum number of iterations |
[in] | nconst | Number of constraints |
[in] | consts | Array of constraints (optional) (Dimension: nconst * (nvar+1)) This array is entered by line |
[in] | seed | Value for the seed generator |
[in] | percent | Dimension of the convolution kernel expressed as a percentage of the dispersion st. dev. Should be between 0 and 100 |
double gstlrn::law_exponential | ( | double | lambda | ) |
Generate random numbers according to exponential distribution
[in] | lambda | Parameter of exponential distribution |
double gstlrn::law_gamma | ( | double | alpha, |
double | beta | ||
) |
Generate random numbers according to a gamma distribution
[in] | alpha | parameter of the gamma distribution |
[in] | beta | Second parameter of the Gamma distribution |
double gstlrn::law_gaussian | ( | double | mean, |
double | sigma | ||
) |
Generate random numbers according to a gaussian distribution
[in] | mean | Mean of the Normal Distribution |
[in] | sigma | Standard deviation of the Normal Distribution |
double gstlrn::law_gaussian_between_bounds | ( | double | binf, |
double | bsup | ||
) |
Generates a gaussian value which lies in an interval
[in] | binf | lower bound of the interval |
[in] | bsup | upper bound of the interval |
Id gstlrn::law_get_random_seed | ( | void | ) |
read the seed for the random number generator
Draw an integer random number according to a uniform distribution
[in] | mini | minimum value |
[in] | maxi | maximum value |
double gstlrn::law_invcdf_gaussian | ( | double | value | ) |
Inverse cumulated density function of a gaussian distribution
[in] | value | cumulative density |
Id gstlrn::law_poisson | ( | double | parameter | ) |
Generate random number according to a poisson distribution
[in] | parameter | parameter of the Poisson distribution |
gstlrn::law_random_path | ( | Id | nech | ) |
Define a random path
[in] | nech | : Number of samples |
void gstlrn::law_set_old_style | ( | bool | style | ) |
void gstlrn::law_set_random_seed | ( | Id | seed | ) |
Sets the seed for the random number generator
[in] | seed | the new value given to the seed |
double gstlrn::law_stable | ( | double | alpha, |
double | beta, | ||
double | gamma, | ||
double | delta | ||
) |
Generate random numbers according to a stable distribution
[in] | alpha | value of the alpha parameter |
[in] | beta | value of the beta parameter |
[in] | gamma | value of the gamma parameter |
[in] | delta | value of the delta parameter |
double gstlrn::law_stable_a | ( | double | alpha, |
double | beta, | ||
double | gamma, | ||
double | delta | ||
) |
Generate random numbers according to a stable distribution (alpha != 1)
[in] | alpha | value of the alpha parameter |
[in] | beta | value of the beta parameter |
[in] | gamma | value of the gamma parameter |
[in] | delta | value of the delta parameter |
double gstlrn::law_stable_a1 | ( | double | beta, |
double | gamma, | ||
double | delta | ||
) |
Generate random numbers according to a stable distribution (alpha=1)
[in] | beta | value of the beta parameter |
[in] | gamma | value of the gamma parameter |
[in] | delta | value of the delta parameter |
double gstlrn::law_stable_standard_a1gd | ( | double | beta | ) |
Generate random numbers according to a standard stable distribution (alpha=1)
[in] | beta | value of the beta parameter |
double gstlrn::law_stable_standard_abgd | ( | double | alpha | ) |
Generate random numbers according to a standard stable distribution
[in] | alpha | value of the alpha parameter |
double gstlrn::law_stable_standard_agd | ( | double | alpha, |
double | beta | ||
) |
Generate random numbers according to a standard stable distribution
[in] | alpha | value of the alpha parameter |
[in] | beta | value of the beta parameter |
double gstlrn::law_uniform | ( | double | mini, |
double | maxi | ||
) |
Draw a random number according to a uniform distribution
[in] | mini | minimum value |
[in] | maxi | maximum value |
|
static |
Allocate the Multi-Layers internal structure
[in] | flag_same | 1 if input and output files coincide |
[in] | flag_vel | 1 if work is performed in Velocity, 0 for Depth |
[in] | flag_cumul | 1 if work must be done on Depth; 0 on Thickness |
[in] | flag_ext | 1 if external drift must be used; 0 otherwise |
[in] | flag_z | 1 if the output must be provided in depth |
[in] | colrefd | Rank of the reference depth variable |
[in] | colreft | Rank of the reference Time variable in Dbout |
[in] | colrefb | Rank of the reference Bottom Depth variable |
[in] | irf_rank | Rank of the Intrinsic Random Function (0 or 1) |
[in] | match_time | Pointer to the Time pointer (1 if defined as ELoc::F or 0 for ELoc::TIME) |
[in] | nlayers | Number of layers |
Free the Multi-Layers internal structure
[in] | lmlayers | Pointer to the LMlayers structure to be freed |
|
static |
Print the Multi-Layers internal structure
[in] | lmlayers | Pointer to the LMlayers structure |
Id gstlrn::locatorIdentify | ( | String | string, |
ELoc * | ret_locatorType, | ||
Id * | ret_locatorIndex, | ||
Id * | ret_mult | ||
) |
Given a locator string, extract its characteristics
string | Locator string |
ret_locatorType | Resulting Locator type |
ret_locatorIndex | Resulting Locator rank (starting from 0) |
ret_mult | Resulting Locator multiplicity (1: unique; 0: multiple) |
double gstlrn::loggamma | ( | double | parameter | ) |
Calculation of the logarithm of the gamma function
[in] | parameter | raw value |
double gstlrn::logLikelihood | ( | const Db * | db, |
ModelGeneric * | model, | ||
bool | verbose | ||
) |
double gstlrn::logLikelihoodSPDE | ( | Db * | dbin, |
Model * | model, | ||
Id | useCholesky, | ||
const VectorMeshes * | meshes, | ||
const ProjMultiMatrix * | projIn, | ||
const SPDEParam & | params, | ||
bool | verbose | ||
) |
Calculate the Log-Likelihood under the SPDE framework
dbin | Input Db (must contain the variable to be estimated) |
model | Model definition |
useCholesky | Define the choice regarding Cholesky (see _defineCholesky) |
meshes | Meshes description (optional) |
projIn | Matrix of projection (optional) |
params | Set of SPDE parameters |
verbose | True for verbose output |
double gstlrn::logLikelihoodVecchia | ( | const Db * | db, |
ModelGeneric * | model, | ||
Id | nb_neigh, | ||
bool | verbose | ||
) |
Compute the log-likelihood (based on Vecchia approximation for covMat)
db | Db structure where variable are loaded from |
model | ModelGeneric structure used for the calculation |
nb_neigh | Number of neighbors to consider in the Vecchia approximation |
verbose | Verbose flag |
Id gstlrn::manageExternalInformation | ( | Id | mode, |
const ELoc & | locatorType, | ||
Db * | dbin, | ||
Db * | dbout, | ||
bool * | flag_created | ||
) |
Derive the external information(s) from the Output db (if Grid) to the Input Db
double gstlrn::manhattan_distance | ( | const double * | x1, |
const double * | x2, | ||
Id | n_features | ||
) |
Returns the Manhattan distance between two points
x1 | Vector of coordinates for the first point |
x2 | Vector of coordinates for the second point |
n_features | Number of coordinates |
Check if two keywords are similar, up to their case
string1 | First keyword |
string2 | Second keyword |
caseSensitive | true if the case of both strings should be considered Otherwise, both strings are converted into upper case before comparison |
Check if two keywords match up to "Regular Expression" on the second string and their case
string1 | First keyword |
string2 | Second keyword (through Regular Expression interpretation) |
caseSensitive | true if the case of both strings should be considered Otherwise, both strings are converted into upper case before comparison |
Performs the Cholesky triangular decomposition of a definite positive symmetric matrix A = t(TL) * TL
[in] | a | symmetric matrix |
[in] | neq | number of equations in the system |
[out] | tl | Lower triangular matrix defined by column |
void gstlrn::matrix_combine | ( | Id | nval, |
double | coeffa, | ||
const double * | a, | ||
double | coeffb, | ||
const double * | b, | ||
double * | c | ||
) |
Perform a linear combination of matrices or vectors [C] = 'coeffa' * [A] + 'coeffb' * [B]
[in] | nval | Number of elements of the matrices or vectors |
[in] | coeffa | Coefficient applied to the first matrix or vector |
[in] | a | First matrix or vector (not used if NULL) |
[in] | coeffb | Coefficient applied to the second matrix or vector |
[in] | b | Second matrix or vector (not used if NULL) |
[out] | c | Resulting matrix or vector |
double gstlrn::matrix_determinant | ( | Id | neq, |
const 1 & | b | ||
) |
Calculate the determinant of the square matrix (full storage)
[in] | neq | Size of the matrix |
[in] | b | Square matrix to be checked |
Invert a symmetric square matrix Pivots are assumed to be located on the diagonal
[in,out] | a | input matrix, destroyed in computation and replaced by resultant inverse |
[in] | neq | number of equations in the matrix 'a' |
[in] | rank | Type of message when inversion problem is encountered >=0: message involves 'rank+1' -1: neutral message -2: no message |
Id gstlrn::matrix_prod_norme | ( | Id | transpose, |
Id | n1, | ||
Id | n2, | ||
const double * | v1, | ||
const double * | a, | ||
double * | w | ||
) |
Performs the product t(G) %*% A %*% G or G %*% A %*% t(G)
[in] | transpose | transposition mode -1 : transpose the first term +1 : transpose the last term |
[in] | n1 | matrix dimension |
[in] | n2 | matrix dimension |
[in] | v1 | rectangular matrix (n1,n2) |
[in] | a | square matrix (optional) |
[out] | w | square matrix |
void gstlrn::matrix_product_safe | ( | Id | n1, |
Id | n2, | ||
Id | n3, | ||
const double * | v1, | ||
const double * | v2, | ||
double * | v3 | ||
) |
Performs the product of two matrices
[in] | n1 | matrix dimension |
[in] | n2 | matrix dimension |
[in] | n3 | matrix dimension |
[in] | v1 | rectangular matrix (n1,n2) |
[in] | v2 | rectangular matrix (n2,n3) |
[out] | v3 | rectangular matrix (n1,n3) |
Transpose a (square or rectangular) matrix
[in] | n1 | matrix dimension |
[in] | n2 | matrix dimension |
[in] | v1 | rectangular matrix (n1,n2) |
[out] | w1 | rectangular matrix (n2,n1) |
gstlrn::MCCondExp | ( | 1 | krigest, |
1 | krigstd, | ||
const 1 & | psi, | ||
Id | nbsimu = NBSIMU_DEF |
||
) |
double gstlrn::MCCondExpElement | ( | double | krigest, |
double | krigstd, | ||
const 1 & | psi, | ||
Id | nbsimu = NBSIMU_DEF |
||
) |
gstlrn::MCCondStd | ( | 1 | krigest, |
1 | krigstd, | ||
const 1 & | psi, | ||
Id | nbsimu = NBSIMU_DEF |
||
) |
double gstlrn::MCCondStdElement | ( | double | krigest, |
double | krigstd, | ||
const 1 & | psi, | ||
Id | nbsimu = NBSIMU_DEF |
||
) |
gstlrn::MCIndicator | ( | double | yc, |
1 | krigest, | ||
1 | krigstd, | ||
Id | nbsimu = NBSIMU_DEF |
||
) |
double gstlrn::MCIndicatorElement | ( | double | yc, |
double | krigest, | ||
double | krigstd, | ||
Id | nbsimu = NBSIMU_DEF |
||
) |
gstlrn::MCIndicatorStd | ( | double | yc, |
const 1 & | krigest, | ||
const 1 & | krigstd, | ||
Id | nbsimu = NBSIMU_DEF |
||
) |
double gstlrn::MCIndicatorStdElement | ( | double | yc, |
double | krigest, | ||
double | krigstd, | ||
Id | nbsimu = NBSIMU_DEF |
||
) |
gstlrn::MCMetal | ( | double | yc, |
1 | krigest, | ||
1 | krigstd, | ||
const 1 & | psi, | ||
Id | nbsimu = NBSIMU_DEF |
||
) |
double gstlrn::MCMetalElement | ( | double | yc, |
double | krigest, | ||
double | krigstd, | ||
const 1 & | psi, | ||
Id | nbsimu = NBSIMU_DEF |
||
) |
gstlrn::MCMetalStd | ( | double | yc, |
1 | krigest, | ||
1 | krigstd, | ||
const 1 & | psi, | ||
Id | nbsimu = NBSIMU_DEF |
||
) |
double gstlrn::MCMetalStdElement | ( | double | yc, |
double | krigest, | ||
double | krigstd, | ||
const 1 & | psi, | ||
Id | nbsimu = NBSIMU_DEF |
||
) |
char * gstlrn::mem_calloc_ | ( | const char * | call_file, |
size_t | call_line, | ||
Id | size_t, | ||
Id | size, | ||
Id | flag_fatal | ||
) |
char * gstlrn::mem_copy_ | ( | const char * | call_file, |
size_t | call_line, | ||
char * | tabin, | ||
Id | size, | ||
Id | flag_fatal | ||
) |
void gstlrn::mem_error | ( | Id | nbyte | ) |
Problem in memory allocation
[in] | nbyte | number of bytes to be allocated |
char * gstlrn::mem_free_ | ( | const char * | call_file, |
size_t | call_line, | ||
char * | tab | ||
) |
char * gstlrn::mem_realloc_ | ( | const char * | call_file, |
size_t | call_line, | ||
char * | tab, | ||
Id | size, | ||
Id | flag_fatal | ||
) |
double ** gstlrn::mem_tab_free | ( | double ** | tab, |
Id | nvar | ||
) |
Conditionally print the progress of a procedure
string | String to be printed |
ntot | Total number of samples |
iech | Rank of the current sample |
Print a standard Error Message if an argument does not lie in Interval
title | Title to be printed |
current | Current value of the argument |
nmax | Maximum (inclusive) possible value |
Id gstlrn::meshes_2D_sph_create | ( | Id | verbose, |
SphTriangle * | t | ||
) |
Perform the spherical triangulation
[in] | verbose | Verbose option |
[in] | t | SphTriangle structure |
void gstlrn::meshes_2D_sph_free | ( | SphTriangle * | t, |
Id | mode | ||
) |
Free the structure for triangles on a sphere
[in] | t | Pointer to the SphTriangle structure to be freed |
[in] | mode | 1 for partial deallocation 0 for total deallocation |
Id gstlrn::meshes_2D_sph_from_auxiliary | ( | const String & | triswitch, |
SphTriangle * | t | ||
) |
Add auxiliary random points
[in] | triswitch | Triangulation option |
[in] | t | SphTriangle structure |
Id gstlrn::meshes_2D_sph_from_db | ( | Db * | db, |
SphTriangle * | t | ||
) |
Define the memory areas by reading information from Db
[in] | db | Db structure where data are located |
[in] | t | Pointer to the SphTriangle structure to be loaded |
Id gstlrn::meshes_2D_sph_from_points | ( | Id | nech, |
double * | x, | ||
double * | y, | ||
SphTriangle * | t | ||
) |
Add fixed points to modify the SphTriangle structure
[in] | nech | Number of added samples |
[in] | x,y | Array containing the coordinates of added points |
[in] | t | Pointer to the SphTriangle structure to be loaded |
void gstlrn::meshes_2D_sph_init | ( | SphTriangle * | t | ) |
Initialize the structure for triangles on a sphere
[in] | t | Pointer to the SphTriangle structure to be initialized |
void gstlrn::meshes_2D_sph_print | ( | SphTriangle * | t, |
Id | brief | ||
) |
Print the contents of the SphTriangle structure
[in] | t | Pointer to the SphTriangle structure to be printed |
[in] | brief | 1 for a brief output; 0 otherwise |
Id gstlrn::meshes_2D_write | ( | const char * | file_name, |
const char * | obj_name, | ||
Id | verbose, | ||
Id | ndim, | ||
Id | ncode, | ||
Id | ntri, | ||
Id | npoints, | ||
const 1 & | ntcode, | ||
const 1 & | triangles, | ||
const 1 & | points | ||
) |
Dump the contents of a triangulation in an ASCII file according to the STL format
[in] | file_name | Nmae of the created ASCII file |
[in] | obj_name | Name assigned to the object |
[in] | verbose | Verbose flag |
[in] | ndim | Space dimension |
[in] | ncode | Number of different codes |
[in] | ntri | Number of triangles (expected) |
[in] | npoints | Number of poins (expected) |
[in] | ntcode | Array of number of triangles per code |
[in] | triangles | Array of vertex indices for each triangle |
[in] | points | Array of 3-D coordinates for triangle vertices |
void gstlrn::message | ( | const char * | format, |
... | |||
) |
Print a formatted message
format | Output format |
... | Additional arguments |
void gstlrn::message_extern | ( | const char * | string | ) |
Print a message This call comes from AStringable where initial message() has been moved
[in] | string | String to be displayed |
void gstlrn::messageAbort | ( | const char * | format, |
... | |||
) |
Function for aborting the API
format | Fatal error format |
... | Additional arguments |
void gstlrn::messageFlush | ( | const String & | string | ) |
When message has been collected as a String, this function produces it out without passing through useless internal buffering
string | String to be printed out |
void gstlrn::messageNoDiff | ( | const char * | format, |
... | |||
) |
Print a formatted message (with "#NO_DIFF#" prefix)
format | Output format |
... | Additional arguments |
void gstlrn::messerr | ( | const char * | format, |
... | |||
) |
Print Error message
format | Output format |
... | Additional arguments |
void gstlrn::messerrFlush | ( | const String & | string | ) |
When the error message has been collected as a String, this function produces it out without passing through useless internal buffering
string | String to be produced |
void gstlrn::mestitle | ( | Id | level, |
const char * | format, | ||
... | |||
) |
Print a message and underlines it with various formats
level | Level of the title |
format | Output format |
... | Additional arguments |
Id gstlrn::migrate | ( | Db * | dbin, |
Db * | dbout, | ||
const String & | name, | ||
Id | dist_type, | ||
const 1 & | dmax, | ||
bool | flag_fill, | ||
bool | flag_inter, | ||
bool | flag_ball, | ||
const NamingConvention & | namconv | ||
) |
Migrates a variable from one Db to another one
[in] | dbin | Descriptor of the input Db |
[in] | dbout | Descriptor of the output Db |
[in] | name | Name of the attribute to be migrated |
[in] | dist_type | Type of distance for calculating maximum distance 1 for L1 and 2 for L2 distance |
[in] | dmax | Array of maximum distances (optional) |
[in] | flag_fill | Filling option |
[in] | flag_inter | Interpolation |
[in] | flag_ball | Use BallTree sorting algorithm when available |
[in] | namconv | Naming convention |
Id gstlrn::migrateByAttribute | ( | Db * | dbin, |
Db * | dbout, | ||
const 1 & | atts, | ||
Id | dist_type, | ||
const 1 & | dmax, | ||
bool | flag_fill, | ||
bool | flag_inter, | ||
bool | flag_ball, | ||
const NamingConvention & | namconv | ||
) |
Migrates a variable from one Db to another one
[in] | dbin | Descriptor of the input Db |
[in] | dbout | Descriptor of the output Db |
[in] | atts | Array of attributes to be migrated |
[in] | dist_type | Type of distance for calculating maximum distance 1 for L1 and 2 for L2 distance |
[in] | dmax | Array of maximum distances (optional) |
[in] | flag_fill | Filling option |
[in] | flag_inter | Interpolation |
[in] | flag_ball | Use BallTree sorting algorithm when available |
[in] | namconv | Naming Convention |
Id gstlrn::migrateByLocator | ( | Db * | dbin, |
Db * | dbout, | ||
const ELoc & | locatorType, | ||
Id | dist_type, | ||
const 1 & | dmax, | ||
bool | flag_fill, | ||
bool | flag_inter, | ||
bool | flag_ball, | ||
const NamingConvention & | namconv | ||
) |
Migrates all z-locator variables from one Db to another one
[in] | dbin | Descriptor of the input Db |
[in] | dbout | Descriptor of the output Db |
[in] | locatorType | Locator Type |
[in] | dist_type | Type of distance for calculating maximum distance 1 for L1 and 2 for L2 distance |
[in] | dmax | Array of maximum distances (optional) |
[in] | flag_fill | Filling option |
[in] | flag_inter | Interpolation |
[in] | flag_ball | Use BallTree sorting algorithm when available |
[in] | namconv | Naming convention |
Migrates a variable from the grid structure into a variable at points defined by coordinate vectors
[in] | db_grid | descriptor of the grid parameters |
[in] | iatt | rank of the grid attribute |
[in] | coords | Array of coordinates (dimension: ndim, np) |
[out] | tab | Output array (Dimension: number of discretized points) |
Id gstlrn::migrateMulti | ( | Db * | dbin, |
Db * | dbout, | ||
const VectorString & | names, | ||
Id | dist_type, | ||
const 1 & | dmax, | ||
bool | flag_fill, | ||
bool | flag_inter, | ||
bool | flag_ball, | ||
const NamingConvention & | namconv | ||
) |
Migrates a set of variables from one Db to another one
[in] | dbin | Descriptor of the input Db |
[in] | dbout | Descriptor of the output Db |
[in] | names | Name of the attribute to be migrated |
[in] | dist_type | Type of distance for calculating maximum distance 1 for L1 and 2 for L2 distance |
[in] | dmax | Array of maximum distances (optional) |
[in] | flag_fill | Filling option |
[in] | flag_inter | Interpolation |
[in] | flag_ball | Use BallTree sorting algorithm when available |
[in] | namconv | Naming convention |
Id gstlrn::model_auto_fit | ( | Vario * | vario, |
Model * | model, | ||
bool | verbose = false , |
||
const Option_AutoFit & | mauto_arg = Option_AutoFit() , |
||
const Constraints & | cons_arg = Constraints() , |
||
const Option_VarioFit & | optvar_arg = Option_VarioFit() |
||
) |
Combine two monovariate models into a bivariate model (residuals model)
void gstlrn::model_cova_characteristics | ( | const ECov & | type, |
char | cov_name[STRING_LENGTH], | ||
Id * | flag_range, | ||
Id * | flag_param, | ||
Id * | min_order, | ||
Id * | max_ndim, | ||
Id * | flag_int_1d, | ||
Id * | flag_int_2d, | ||
Id * | flag_aniso, | ||
Id * | flag_rotation, | ||
double * | scale, | ||
double * | parmax | ||
) |
Returns the characteristics of the covariance
[in] | type | Type of the covariance |
[out] | cov_name | Name of the covariance |
[out] | flag_range | range definition
|
[out] | flag_param | 1 if the third parameter is defined |
[out] | min_order | Minimum IRF order for validity |
[out] | max_ndim | Maximum dimension for validity |
[out] | flag_int_1d | Integral range in 1-D |
[out] | flag_int_2d | Integral range in 2-D |
[out] | flag_aniso | 1 if anisotropy is meaningful |
[out] | flag_rotation | 1 if an anisotropy rotation is meaningful |
[out] | scale | Scaling parameter |
[out] | parmax | Maximum value for the third parameter |
Id gstlrn::model_covmat_inchol | ( | Id | verbose, |
Db * | db, | ||
Model * | model, | ||
double | eta, | ||
Id | npivot_max, | ||
Id | nsize1, | ||
const Id * | ranks1, | ||
const double * | center, | ||
Id | flag_sort, | ||
Id * | npivot_arg, | ||
1 & | pvec, | ||
1 & | Gmatrix, | ||
const CovCalcMode * | mode | ||
) |
Establish and invert a covariance matrix using Incomplete Cholesky method
[in] | verbose | Verbose option |
[in] | db | Db structure |
[in] | model | Model structure |
[in] | npivot_max | Maximum number of pivots (or 0) |
[in] | eta | Precision (or TEST) |
[in] | nsize1 | Number of pivots already selected |
[in] | ranks1 | Ranks of pivots already selected |
[in] | center | Optional Centering point (for increments) |
[in] | flag_sort | Reordering flag (see remarks) |
[in] | mode | CovCalcMode structure |
[out] | npivot_arg | Number of pivots |
[out] | pvec | Array of indices of the retained samples (from 1) Dimension: nech |
[out] | Gmatrix | Rectangular matrix Dimension: nech * npivot_arg |
Vario * gstlrn::model_pgs | ( | Db * | db, |
const VarioParam * | varioparam, | ||
const RuleProp * | ruleprop, | ||
const Model * | model1, | ||
const Model * | model2 | ||
) |
Evaluate the experimental variogram of indicators in PluriGaussian case
[in] | db | Db descriptor |
[in] | varioparam | VarioParam structure |
[in] | ruleprop | RuleProp structure |
[in] | model1 | First Model structure |
[in] | model2 | Second Model structure (optional) |
Id gstlrn::modify_constraints_on_sill | ( | Constraints & | constraints | ) |
If a constraint concerns a sill, take its square root as it corresponds to a constraints on AIC (not on a sill directly) due to the fact that it will be processed in FOXLEG (not in GOULARD) This transform only makes sense for MONOVARIATE case (the test should have been performed beforehand)
[in] | constraints | Constraints structure |
double gstlrn::modifyOperator | ( | const EOperator & | oper, |
double | oldval, | ||
double | value | ||
) |
Update an Old by a New value according to 'oper'
oper | A keywork of EOperator enum |
oldval | Old value |
value | New value |
Id gstlrn::movingAverage | ( | Db * | dbin, |
Db * | dbout, | ||
ANeigh * | neigh, | ||
bool | flag_est, | ||
bool | flag_std, | ||
Model * | model, | ||
const NamingConvention & | namconv | ||
) |
Moving Average estimation
Id gstlrn::movingMedian | ( | Db * | dbin, |
Db * | dbout, | ||
ANeigh * | neigh, | ||
bool | flag_est, | ||
bool | flag_std, | ||
Model * | model, | ||
const NamingConvention & | namconv | ||
) |
Moving Median estimation
Returns the shift value for the apex('icorn')
[in] | ndim | Space dimension (1, 2 or 3) |
[in] | ipol | Rank of the polarization (starting from 0) |
[in] | icas | Rank of the case (starting from 0) |
[in] | icorn | Rank of the corner (starting from 0) |
[in] | idim | Rank of the coordinate (starting from 0) |
Id gstlrn::multilayers_get_prior | ( | Db * | dbin, |
DbGrid * | dbout, | ||
Model * | model, | ||
Id | flag_same, | ||
Id | flag_vel, | ||
Id | flag_ext, | ||
Id | irf_rank, | ||
Id | match_time, | ||
Id | colrefd, | ||
Id | colreft, | ||
Id | colrefb, | ||
Id | verbose, | ||
Id * | npar_arg, | ||
1 & | mean, | ||
1 & | vars | ||
) |
Multi-layers get the mean and prior matrices for Bayesian prior
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | model | Model structure |
[in] | flag_same | 1 if input and output files coincide |
[in] | flag_vel | 1 if work is performed in Velocity, 0 for Depth |
[in] | flag_ext | 1 if external drift must be used; 0 otherwise |
[in] | irf_rank | Rank of the Intrinsic Random Function (0 or 1) |
[in] | match_time | 1 if external drift matches time; 0 otherwise |
[in] | colrefd | Rank of the reference Depth variable in Dbout |
[in] | colreft | Rank of the reference Time variable in Dbout |
[in] | colrefb | Rank of the Bottom Depth variable in Dbout (or -1) |
[in] | verbose | Verbose option |
[out] | npar_arg | Number of drift terms |
[out] | mean | Array of means |
[out] | vars | Array of variances |
Id gstlrn::multilayers_kriging | ( | Db * | dbin, |
DbGrid * | dbout, | ||
Model * | model, | ||
ANeigh * | neigh, | ||
Id | flag_same, | ||
Id | flag_z, | ||
Id | flag_vel, | ||
Id | flag_cumul, | ||
Id | flag_ext, | ||
Id | flag_std, | ||
Id | flag_bayes, | ||
Id | irf_rank, | ||
Id | match_time, | ||
Id | dim_prior, | ||
double * | prior_mean, | ||
double * | prior_vars, | ||
Id | colrefd, | ||
Id | colreft, | ||
Id | colrefb, | ||
Id | verbose | ||
) |
Multi-layers architecture estimation
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | model | Model structure |
[in] | neigh | ANeigh structure |
[in] | flag_same | 1 if input and output files coincide |
[in] | flag_z | 1 if the output must be converted back into depth |
[in] | flag_vel | 1 if work is performed in Velocity, 0 for Depth |
[in] | flag_cumul | 1 if work is performed in Depth; 0 in Thickness |
[in] | flag_ext | 1 if external drift must be used; 0 otherwise |
[in] | flag_std | 1 if the estimation error must be calculated |
[in] | flag_bayes | 1 if the Bayesian hypothesis is used on drift coeffs |
[in] | irf_rank | Rank of the Intrinsic Random Function (0 or 1) |
[in] | match_time | 1 if external drift matches time; 0 otherwise |
[in] | dim_prior | Dimension of the prior information (for verification) |
[in] | prior_mean | Vector of prior means for drift coefficients |
[in] | prior_vars | Vector of prior variances for drift coefficients |
[in] | colrefd | Rank of the reference Depth variable in Dbout |
[in] | colreft | Rank of the reference Time variable in Dbout |
[in] | colrefb | Rank of the Bottom Depth variable in Dbout (or -1) |
[in] | verbose | Verbose option |
Id gstlrn::multilayers_vario | ( | Db * | dbin, |
DbGrid * | dbout, | ||
Vario * | vario, | ||
Id | nlayers, | ||
Id | flag_vel, | ||
Id | flag_ext, | ||
Id | irf_rank, | ||
Id | match_time, | ||
Id | colrefd, | ||
Id | colreft, | ||
Id | verbose | ||
) |
Multi-layers architecture experimental variogram
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | vario | Vario structure |
[in] | nlayers | Number of layers |
[in] | flag_vel | 1 if work is performed in Velocity, 0 for Depth |
[in] | flag_ext | 1 if external drift must be used; 0 otherwise |
[in] | irf_rank | Rank of the Intrinsic Random Function (0 or 1) |
[in] | match_time | 1 if external drift matches time; 0 otherwise |
[in] | colrefd | Rank of the reference Depth variable in Dbout |
[in] | colreft | Rank of the reference Time variable in Dbout |
[in] | verbose | 1 for a verbose option |
void gstlrn::mvndst | ( | Id | n, |
double * | lower, | ||
double * | upper, | ||
Id * | infin, | ||
double * | correl, | ||
Id | maxpts, | ||
double | abseps, | ||
double | releps, | ||
double * | error, | ||
double * | value, | ||
Id * | inform | ||
) |
Multivariate Normal Probability
[in] | n | Number of variables |
[in] | lower | Array of lower integration limits |
[in] | upper | Array of upper integration limits |
[in] | infin | Array of integration limit flags
|
[in] | correl | Array of correlation coefficients |
[in] | maxpts | Maximum number of function values allowed |
[in] | abseps | Absolute error tolerance |
[in] | releps | Relative error tolerance |
[out] | error | Estimated absolute error with 90% confidence level |
[out] | value | Estimated value for the integral |
[out] | inform | Returned code |
void gstlrn::mvndst2n | ( | const double * | lower, |
const double * | upper, | ||
const double * | means, | ||
double * | correl, | ||
Id | maxpts, | ||
double | abseps, | ||
double | releps, | ||
double * | error, | ||
double * | value, | ||
Id * | inform | ||
) |
Calculate the multigaussian integral (non-normalized)
[in] | lower | Array of lower bounds (Dimension: nvar) |
[in] | upper | Array of upper bounds (Dimension: nvar) |
[in] | means | Array of means (Dimension: 2) |
[in] | correl | Correlation matrix (Dimension: 2*2) |
[in] | maxpts | Maximum number of function values allowed |
[in] | abseps | Absolute error tolerance |
[in] | releps | Relative error tolerance |
[out] | error | Estimated absolute error with 90% confidence level |
[out] | value | Estimated value for the integral |
[out] | inform | Returned code |
void gstlrn::mvndst4 | ( | double * | lower, |
double * | upper, | ||
const double * | correl, | ||
Id | maxpts, | ||
double | abseps, | ||
double | releps, | ||
double * | error, | ||
double * | value, | ||
Id * | inform | ||
) |
Calculate the quadri-variable gaussian integral
[in] | lower | Array of lower bounds |
[in] | upper | Array of upper bounds |
[in] | correl | Correlation matrix (Dimension: 4*4) |
[in] | maxpts | Maximum number of function values allowed |
[in] | abseps | Absolute error tolerance |
[in] | releps | Relative error tolerance |
[out] | error | Estimated absolute error with 90% confidence level |
[out] | value | Estimated value for the integral |
[out] | inform | Returned code |
Id gstlrn::mvndst_infin | ( | double | low, |
double | sup | ||
) |
Set the flags for the bound of numerical integration
[in] | low | Lower integration bound |
[in] | sup | Upper integration bound |
Id gstlrn::nearestNeighbor | ( | Db * | dbin, |
Db * | dbout, | ||
bool | flag_est, | ||
bool | flag_std, | ||
Model * | model, | ||
const NamingConvention & | namconv | ||
) |
|
static |
void gstlrn::normalizeResults | ( | Id | nbsimu, |
double & | valest | ||
) |
void gstlrn::normalizeResults | ( | Id | nbsimu, |
double & | valest, | ||
double & | valstd | ||
) |
|
static |
operate_function gstlrn::operate_Identify | ( | Id | oper | ) |
Identify the pointer to a function with following functionality: y = f(x)
oper | Gives the type of operation to be performed 1: returns the value itslef (no change) -1: returns its inverse 2: returns the squared value -2: returns the inverse of the squared value 3: returns its square root -3: returns the inverse of the square root |
double gstlrn::operate_Identity | ( | double | x | ) |
double gstlrn::operate_Inverse | ( | double | x | ) |
double gstlrn::operate_InverseSqrt | ( | double | x | ) |
double gstlrn::operate_InverseSquare | ( | double | x | ) |
double gstlrn::operate_Sqrt | ( | double | x | ) |
double gstlrn::operate_Square | ( | double | x | ) |
std::ostream & gstlrn::operator<< | ( | std::ostream & | os, |
const VectorT< T > & | vec | ||
) |
std::ostream & gstlrn::operator<< | ( | std::ostream & | os, |
const VectorT< VectorNumT< T > > & | vec | ||
) |
SpChol::MatrixType gstlrn::partial_inverse | ( | const SpChol & | llt, |
const SpMat & | pattern | ||
) |
Id gstlrn::partition_node_indices | ( | const MatrixT< double > & | data, |
Id * | node_indices, | ||
Id | split_dim, | ||
Id | n_points, | ||
Id | split_index | ||
) |
Converts from point coordinates to index of the bench to which it belongs
[in] | db | descriptor of the grid parameters |
[in] | coor | array of coordinates of the point |
[in] | flag_outside | value returned for the point outside the grid
|
[out] | indb | index of the bench |
Converts from point coordinates to nearest grid node indices
[in] | db | descriptor of the grid parameters |
[in] | coor | array of coordinates of the point |
[in] | flag_outside | value returned for the point outside the grid
|
[out] | indg | indices of the closest grid node |
Returns the rank of the closest isolated point
[in] | db | descriptor of the Db |
[in] | coor | array of coordinates of the point |
Id gstlrn::pointToBlock | ( | Db * | dbpoint, |
DbGrid * | dbgrid, | ||
Id | option, | ||
Id | flag_size, | ||
Id | iatt_time, | ||
Id | iatt_size, | ||
Id | iatt_angle, | ||
Id | iatt_scaleu, | ||
Id | iatt_scalev, | ||
Id | iatt_scalew | ||
) |
Plunge a set of isolated points within a discretization grid in order to compute the voronoi of the points and derive:
[in] | dbpoint | Descriptor of the point parameters |
[in] | dbgrid | Descriptor of the grid parameters |
[in] | option | Connectivity option (0 for cross and 1 for block) |
[in] | flag_size | When 1, the border pixels report the border thickness When 0, the border pixels are painted in 1 |
[in] | iatt_time | Attribute of 'dbpoint'for Time shift (optional) |
[in] | iatt_size | Attribute of 'dbpoint' giving size (optional) |
[in] | iatt_angle | Optional variable for anisotropy angle (around Z) |
[in] | iatt_scaleu | Optional variable for anisotropy scale factor (U) |
[in] | iatt_scalev | Optional variable for anisotropy scale factor (V) |
[in] | iatt_scalew | Optional variable for anisotropy scale factor (W) |
Id gstlrn::potential_cov | ( | Model * | model, |
bool | verbose, | ||
Id | type1, | ||
const 1 & | x10, | ||
const 1 & | x1p, | ||
const 1 & | tx1, | ||
Id | type2, | ||
const 1 & | x20, | ||
const 1 & | x2p, | ||
const 1 & | tx2, | ||
1 & | covtab | ||
) |
Id gstlrn::potential_kriging | ( | Db * | db, |
Db * | dbgrd, | ||
Db * | dbtgt, | ||
DbGrid * | dbout, | ||
Model * | model, | ||
ANeigh * | neigh, | ||
double | nugget_grd = 0. , |
||
double | nugget_tgt = 0. , |
||
bool | flag_pot = true , |
||
bool | flag_grad = false , |
||
bool | flag_trans = false , |
||
bool | flag_save_data = false , |
||
Id | opt_part = 0 , |
||
bool | verbose = false |
||
) |
Id gstlrn::potential_simulate | ( | Db * | dbiso, |
Db * | dbgrd, | ||
Db * | dbtgt, | ||
DbGrid * | dbout, | ||
Model * | model, | ||
ANeigh * | neigh, | ||
double | nugget_grd = 0. , |
||
double | nugget_tgt = 0. , |
||
double | dist_tempere = TEST , |
||
bool | flag_trans = false , |
||
Id | seed = 135674 , |
||
Id | nbsimu = 1 , |
||
Id | nbtuba = 100 , |
||
bool | verbose = false |
||
) |
Id gstlrn::potential_xvalid | ( | Db * | dbiso, |
Db * | dbgrd, | ||
Db * | dbtgt, | ||
Model * | model, | ||
ANeigh * | neigh, | ||
double | nugget_grd = 0. , |
||
double | nugget_tgt = 0. , |
||
bool | flag_dist_conv = false , |
||
bool | verbose = false |
||
) |
|
static |
void gstlrn::print_current_line | ( | void | ) |
Print the current line read from an ASCII file
void gstlrn::print_imatrix | ( | const char * | title, |
Id | flag_limit, | ||
Id | bycol, | ||
Id | nx, | ||
Id | ny, | ||
const double * | sel, | ||
const Id * | tab | ||
) |
Tabulated printout of a matrix (integer version)
[in] | title | Title (Optional) |
[in] | flag_limit | option for the limits
|
[in] | bycol | 1 if values in 'tab' are sorted by column, 0 otherwise |
[in] | nx | number of columns in the matrix |
[in] | ny | number of rows in the matrix |
[in] | sel | array of selection or NULL |
[in] | tab | array containing the matrix |
Print a vector of integer values in a matrix form
[in] | title | Title (Optional) |
[in] | flag_limit | 1 if NTCOL is used; 0 otherwise |
[in] | ntab | Number of elements in the array |
[in] | itab | Array to be printed |
void gstlrn::print_keypair | ( | Id | flag_short | ) |
Print the list of keypairs
[in] | flag_short | 1 for a short output |
void gstlrn::print_matrix | ( | const char * | title, |
Id | flag_limit, | ||
Id | bycol, | ||
Id | nx, | ||
Id | ny, | ||
const double * | sel, | ||
const double * | tab | ||
) |
Tabulated printout of a matrix
[in] | title | Title (Optional) |
[in] | flag_limit | option for the limits
|
[in] | bycol | 1 if values in 'tab' are sorted by column, 0 otherwise |
[in] | nx | number of columns in the matrix |
[in] | ny | number of rows in the matrix |
[in] | sel | array of selection or NULL |
[in] | tab | array containing the matrix |
void gstlrn::print_range | ( | const char * | title, |
Id | ntab, | ||
const double * | tab, | ||
const double * | sel | ||
) |
Print the range of values in an array
[in] | title | optional title (NULL if not defined) |
[in] | ntab | number of values |
[in] | tab | array of values |
[in] | sel | (optional) selection |
Tabulated printout of a upper triangular matrix
[in] | title | Title (Optional) |
[in] | mode | 1 if the matrix is stored linewise 2 if the matrix is stored columnwise |
[in] | neq | size of the matrix |
[in] | tl | array containing the upper triangular matrix |
Print a vector of real values in a matrix form
[in] | title | Title (Optional) |
[in] | flag_limit | 1 if NTCOL is used; 0 otherwise |
[in] | ntab | Number of elements in the array |
[in] | tab | Array to be printed |
void gstlrn::printLocatorList | ( | ) |
MatrixSparse * gstlrn::prodNormDiagVec | ( | const MatrixSparse * | a, |
const 1 & | vec, | ||
Id | oper_choice = 1 |
||
) |
Product 'Diag(vec)' %*% 'A' %*% 'Diag(vec)'
MatrixSquare * gstlrn::prodNormMat | ( | const MatrixDense & | a, |
bool | transpose = false |
||
) |
Product 't(A)' %*% 'A' or 'A' %*% 't(A)'
MatrixSparse * gstlrn::prodNormMat | ( | const MatrixSparse * | a, |
bool | transpose = false |
||
) |
Product 't(A)' %*% 'A' or 'A' %*% 't(A)' stored in 'this'
MatrixSquare * gstlrn::prodNormMatMat | ( | const MatrixDense * | a, |
const MatrixDense * | m, | ||
bool | transpose = false |
||
) |
Product 't(A)' %*% 'M' %*% 'A' or 'A' %*% 'M' %*% 't(A)'
MatrixSparse * gstlrn::prodNormMatMat | ( | const MatrixSparse * | a, |
const MatrixSparse * | m, | ||
bool | transpose = false |
||
) |
Product 't(A)' %*% 'M' %*% 'A' or 'A' %*% 'M' %*% 't(A)'
MatrixSquare * gstlrn::prodNormMatVec | ( | const MatrixDense & | a, |
const 1 & | vec, | ||
bool | transpose = false |
||
) |
Product 't(A)' %*% 'vec' %*% 'A' or 'A' %*% 'vec' %*% 't(A)'
MatrixSparse * gstlrn::prodNormMatVec | ( | const MatrixSparse * | a, |
const 1 & | vec, | ||
bool | transpose = false |
||
) |
Product 't(A)' %*% 'vec' %*% 'A' or 'A' %*% 'vec' %*% 't(A)' stored in 'this'
void gstlrn::propdef_reset | ( | PropDef * | propdef | ) |
Set memory proportion so as to provoke the update at first usage
[in] | propdef | Pointer to Propdef structure |
PropDef * gstlrn::proportion_manage | ( | Id | mode, |
Id | flag_facies, | ||
Id | flag_stat, | ||
Id | ngrf1, | ||
Id | ngrf2, | ||
Id | nfac1, | ||
Id | nfac2, | ||
Db * | db, | ||
const Db * | dbprop, | ||
const 1 & | propcst, | ||
PropDef * | proploc | ||
) |
Allocate or deallocate a proportion array
[in] | mode | 1 for allocation; -1 for deallocation |
[in] | flag_facies | 1 if Gibbs is used for facies |
[in] | flag_stat | 1 if the proportions are stationary |
[in] | ngrf1 | Number of GRFs for the first PGS |
[in] | ngrf2 | Number of GRFs for the second PGS |
[in] | nfac1 | Number of facies for the first PGS |
[in] | nfac2 | Number of facies for the second PGS |
[in] | db | Db structure containing the data |
[in] | dbprop | Db structure containing the proportions (only used in the non-stationary case) |
[in] | propcst | Constant set of proportions (used if flag_stat) |
[in] | proploc | PropDef structure (used for mode<0) |
void gstlrn::proportion_print | ( | PropDef * | propdef | ) |
Print the (non-stationary) proportions
[in] | propdef | PropDef structure |
void gstlrn::proportion_rule_process | ( | PropDef * | propdef, |
const EProcessOper & | mode | ||
) |
Set the method to compute Proportions
[in] | propdef | PropDef structure |
[in] | mode | Type of operation (EProcessOper) |
double gstlrn::range2scale | ( | const ECov & | type, |
double | range, | ||
double | param = 1. |
||
) |
void gstlrn::record_close | ( | void | ) |
|
static |
void gstlrn::redefine_error | ( | void(*)(const char *) | warn_func | ) |
Redefine the IO routine for printing error message
[in] | warn_func | Warning function |
void gstlrn::redefine_exit | ( | void(*)(void) | exit_func | ) |
Redefine the exiting routine
[in] | exit_func | Exiting function |
void gstlrn::redefine_message | ( | void(*)(const char *) | write_func | ) |
Redefine the IO routine for printing message
[in] | write_func | Writing function |
void gstlrn::redefine_read | ( | void(*)(const char *, char *) | read_func | ) |
Redefine the IO routine for Reading
[in] | read_func | Reading function |
Regression gstlrn::regression | ( | Db * | db1, |
const String & | nameResp, | ||
const VectorString & | nameAux, | ||
Id | mode, | ||
bool | flagCst, | ||
Db * | db2, | ||
const Model * | model | ||
) |
Evaluate the regression
[in,out] | db1 | Db descriptor (for target variable) |
[in] | nameResp | Name of the target variable |
[in] | nameAux | Vector of names of the explanatory variables |
[in] | mode | Type of calculation
|
[in] | flagCst | The constant is added as explanatory variable |
[in] | db2 | Db descriptor (for auxiliary variables) |
[in] | model | Model (only used for Drift functions if mode==2) |
gstlrn::regressionDeming | ( | const 1 & | x, |
const 1 & | y, | ||
double | delta | ||
) |
Calculate the coefficients of the Deming regression (with 2 variables)
x | Vector for the first variable |
y | Vector for the second variable |
delta | ratio of error variances (s_y^2 / s_x^2) |
double gstlrn::roundZero | ( | double | value, |
double | eps | ||
) |
Round off the value if close enough to zero. This ensures that the printout of a very small value does not come out with a non-significant negative sign This trick should only serve to make printouts similar on different platforms.
value | Input value |
eps | Tolerance to check that the value is considered as small |
Id gstlrn::rule_thresh_define | ( | PropDef * | propdef, |
Db * | db, | ||
const Rule * | rule, | ||
Id | facies, | ||
Id | iech, | ||
Id | isimu, | ||
Id | nbsimu, | ||
Id | flag_check, | ||
double * | t1min, | ||
double * | t1max, | ||
double * | t2min, | ||
double * | t2max | ||
) |
Set the (non-stationary) proportions and define thresholds
[in] | propdef | PropDef structure |
[in] | db | Db input structure |
[in] | rule | Rule structure |
[in] | facies | Facies of interest (or ITEST) starting from 1 |
[in] | iech | Rank of the data in the input Db |
[in] | isimu | Rank of the simulation (EProcessOper::CONDITIONAL) |
[in] | nbsimu | Number of simulations |
[in] | flag_check | 1 if the consistency check with the actual proportion of the current facies must be done |
[out] | t1min | Minimum threshold for Y1 |
[out] | t1max | Maximum threshold for Y1 |
[out] | t2min | Minimum threshold for Y2 |
[out] | t2max | Maximum threshold for Y2 |
Id gstlrn::rule_thresh_define_shadow | ( | PropDef * | propdef, |
Db * | db, | ||
const RuleShadow * | rule, | ||
Id | facies, | ||
Id | iech, | ||
Id | isimu, | ||
Id | nbsimu, | ||
double * | t1min, | ||
double * | t1max, | ||
double * | t2min, | ||
double * | t2max, | ||
double * | sh_dsup, | ||
double * | sh_down | ||
) |
Set the (non-stationary) proportions and define thresholds (for shadow only)
[in] | propdef | PropDef structure |
[in] | db | Db input structure |
[in] | rule | Rule structure |
[in] | facies | Facies of interest (or GV_ITEST) |
[in] | iech | Rank of the data in the input Db |
[in] | isimu | Rank of the simulation (EProcessOper::CONDITIONAL) |
[in] | nbsimu | Number of simulations (EProcessOper::CONDITIONAL) |
[out] | t1min | Minimum threshold for Y1 |
[out] | t1max | Maximum threshold for Y1 |
[out] | t2min | Minimum threshold for Y2 |
[out] | t2max | Maximum threshold for Y2 |
[out] | sh_dsup | Local or global upwards shift (shadow) |
[out] | sh_down | Local or global downwards shift (shadow) |
Returns an integer sampled uniformly wihtin the interval [mini, maxi]
mini | Lower bound (included) |
maxi | Upper bound (included) |
Id gstlrn::sampling_f | ( | Db * | db, |
Model * | model, | ||
double | beta, | ||
Id | method1, | ||
Id | nsize1_max, | ||
1 & | ranks1, | ||
Id | method2, | ||
Id | nsize2_max, | ||
1 & | ranks2, | ||
Id | verbose | ||
) |
Optimize the sampling design
[in] | db | Db structure |
[in] | model | Model structure |
[in] | beta | Thresholding value |
[in] | method1 | Criterion for choosing exact pivots 1 : Local evaluation 2 : Global evaluation |
[in] | nsize1_max | Maximum number of exact pivots |
[in] | ranks1 | Ranks of exact pivots |
[in] | method2 | Criterion for choosing ACP pivots 1 : Local evaluation 2 : Global evaluation |
[in] | nsize2_max | Maximum number of ACP pivots |
[in] | ranks2 | Ranks of ACP pivots |
[in] | verbose | 1 for a verbose output |
double gstlrn::scale2range | ( | const ECov & | type, |
double | scale, | ||
double | param = 1. |
||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
SegYArg gstlrn::segy_array | ( | const char * | filesegy, |
DbGrid * | surf2D, | ||
const String & | top_name, | ||
const String & | bot_name, | ||
const String & | top_aux, | ||
const String & | bot_aux, | ||
double | thickmin, | ||
Id | option, | ||
Id | nz_ss, | ||
Id | verbOption, | ||
Id | iline_min, | ||
Id | iline_max, | ||
Id | xline_min, | ||
Id | xline_max, | ||
double | modif_high, | ||
double | modif_low, | ||
double | modif_scale, | ||
Id | codefmt | ||
) |
Read the contents of a SEGY file
[in] | filesegy | Name of the SEGY file |
[in] | surf2D | Db containing the top, Bottom and Reference surfaces This file is optional |
[in] | top_name | Name of variable containing the Top Surface (or "") |
[in] | bot_name | Name of variable containing the Bottom Surface (or "") |
[in] | top_aux | Name of auxiliary variable containing a Top (or "") |
[in] | bot_aux | Name of auxiliary variable containing a Top (or "") |
[in] | thickmin | Minimum thickness (or 0) |
[in] | option | Flattening option: 0 no flattening; 1 flattening from top; -1 flattening from bottom -2 squeeze and stretch option 2 averaging from 3-D to 2-D |
[in] | nz_ss | Number of layers for different options (see details) |
[in] | verbOption | Verbose option |
[in] | iline_min | Minimum Inline number included (if defined) |
[in] | iline_max | Maximum Inline number included (if defined) |
[in] | xline_min | Minimum Xline number included (if defined) |
[in] | xline_max | Maximum Xline number included (if defined) |
[in] | modif_high | Upper truncation (when defined) |
[in] | modif_low | Lower truncation (when defined) |
[in] | modif_scale | Scaling value (when defined) |
[in] | codefmt | Reading format |
In the case of Squeeze and Stretch (S&S), the number of layers
is meaningless. It is fixed by the user.
Grid gstlrn::segy_summary | ( | const char * | filesegy, |
DbGrid * | surf2D, | ||
const String & | name_top, | ||
const String & | name_bot, | ||
double | thickmin, | ||
Id | option, | ||
Id | nz_ss, | ||
Id | verbOption, | ||
Id | iline_min, | ||
Id | iline_max, | ||
Id | xline_min, | ||
Id | xline_max, | ||
double | modif_high, | ||
double | modif_low, | ||
double | modif_scale, | ||
Id | codefmt | ||
) |
Read the contents of a SEGY file and returns the structure SegyRead which captures the main characteristics of the SEGY grid
[in] | filesegy | Name of the SEGY file |
[in] | surf2D | Db containing the top, Bottom and Reference surfaces This file is optional |
[in] | name_top | Rank of variable containing the Top Surface (or 0) |
[in] | name_bot | Rank of variable containing the Bottom Surface (or 0) |
[in] | thickmin | Minimum thickness (or 0) |
[in] | option | Flattening option: 0 no flattening; 1 flattening from top; -1 flattening from bottom -2 squeeze and stretch option 2 averaging from 3-D to 2-D |
[in] | nz_ss | Number of layers for different options (see details) |
[in] | verbOption | Verbose option |
[in] | iline_min | Minimum Inline number included (if defined) |
[in] | iline_max | Maximum Inline number included (if defined) |
[in] | xline_min | Minimum Xline number included (if defined) |
[in] | xline_max | Maximum Xline number included (if defined) |
[in] | modif_high | Upper truncation (when defined) |
[in] | modif_low | Lower truncation (when defined) |
[in] | modif_scale | Scaling value (when defined) |
[in] | codefmt | Reading format |
: In the case of Squeeze and Stretch (S&S), the number of layers
: is meaningless. It is fixed by the user, unless defined
: by the output grid (if flag_store == 1)
Id gstlrn::seismic_convolve | ( | DbGrid * | db, |
Id | flag_operate, | ||
Id | flag_contrast, | ||
Id | type, | ||
Id | ntw, | ||
Id | option, | ||
Id | tindex, | ||
double | fpeak, | ||
double | period, | ||
double | amplitude, | ||
double | distort, | ||
double | val_before, | ||
double | val_middle, | ||
double | val_after, | ||
1 & | wavelet | ||
) |
Convolve with a given wavelet
[in] | db | Db structure |
[in] | flag_operate | 1 to perform the convolution; 0 otherwise |
[in] | flag_contrast | 1 to perform contrast; 0 otherwise |
[in] | type | Type of the wavelet (ENUM_WAVELETS) |
[in] | ntw | half-length of the wavelet excluding center (samples) |
[in] | option | option used to perform the convolution
|
[in] | tindex | time index to locate the spike (Spike) |
[in] | fpeak | peak frequency of the Ricker wavelet |
[in] | period | wavelet period (s) (Ricker) |
[in] | amplitude | wavelet amplitude (Ricker) |
[in] | distort | wavelet distortion factor (Ricker) |
[in] | val_before | Replacement value for undefined element before first defined sample |
[in] | val_middle | Replacement value for undefined element between defined samples |
[in] | val_after | Replacement value for undefined element after last defined sample |
[in] | wavelet | Wavelet defined as input (Dimension: 2*ntw+1) |
Id gstlrn::seismic_estimate_XZ | ( | DbGrid * | db, |
Model * | model, | ||
Id | nbench, | ||
Id | nv2max, | ||
Id | flag_ks, | ||
Id | flag_std, | ||
Id | flag_sort, | ||
Id | flag_stat | ||
) |
Perform a bivariate estimation on a grid
[in,out] | db | Grid Db structure |
[in] | model | Model structure |
[in] | nbench | Vertical Radius of the neighborhood (center excluded) |
[in] | nv2max | Maximum number of traces of second variable on each side of the target trace |
[in] | flag_ks | 1 for a Simple Kriging; otherwise Ordinary Kriging |
[in] | flag_std | 1 for the calculation of the St. Dev. |
[in] | flag_sort | 1 if the traces to be treated are sorted by increasing distance to trace where first variable is defined |
[in] | flag_stat | 1 for producing final statistics |
Do unary arithmetic operation on traces
[in] | db | Db structure |
[in] | oper | Operator flag (ENUM_SEISMICS) |
Id gstlrn::seismic_simulate_XZ | ( | DbGrid * | db, |
Model * | model, | ||
Id | nbench, | ||
Id | nv2max, | ||
Id | nbsimu, | ||
Id | seed, | ||
Id | flag_ks, | ||
Id | flag_sort, | ||
Id | flag_stat | ||
) |
Perform a bivariate cosimulation on a grid
[in,out] | db | Grid Db structure |
[in] | model | Model structure |
[in] | nbench | Vertical Radius of the neighborhood (center excluded) |
[in] | nv2max | Maximum number of traces of second variable on each side of the target trace |
[in] | nbsimu | Number of simulations |
[in] | seed | Seed for the random number generator |
[in] | flag_ks | 1 for a Simple Kriging; otherwise Ordinary Kriging |
[in] | flag_sort | 1 if the traces to be treated are sorted by increasing distance to trace where first variable is defined |
[in] | flag_stat | 1 for producing final statistics |
Id gstlrn::seismic_t2z_grid | ( | Id | verbose, |
DbGrid * | db_t, | ||
Id | iatt_v, | ||
Id * | nx, | ||
double * | x0, | ||
double * | dx | ||
) |
Define the Depth Grid characteristics from the Time Grid
[in] | verbose | Verbose flag |
[in] | db_t | Time Grid structure |
[in] | iatt_v | Attribute address of the Velocity (in Time grid) |
[out] | nx | Number of grid nodes along each direction |
[out] | x0 | Origin of the grid along each direction |
[out] | dx | Mesh of the grid along each direction |
Resample from depth to time
[in] | db_z | Depth Grid structure |
[in] | iatt_v | Address of the Velocity variable (in Depth grid) |
[out] | db_t | Time Grid structure |
Id gstlrn::seismic_z2t_grid | ( | Id | verbose, |
DbGrid * | db_z, | ||
Id | iatt_v, | ||
Id * | nx, | ||
double * | x0, | ||
double * | dx | ||
) |
VectorString gstlrn::separateKeywords | ( | const String & | code | ) |
Separate keywords in the input string The keywords are identified when switching between alpha, digit and other
code | String to be split |
void gstlrn::set_DBIN | ( | Db * | dbin | ) |
****************************************************************************/ *!
****************************************************************************/ *!
void gstlrn::set_DBOUT | ( | Db * | dbout | ) |
void gstlrn::set_grid_value | ( | DbGrid * | dbgrid, |
Id | iptr, | ||
1 & | indg, | ||
Id | ix, | ||
Id | iy, | ||
Id | iz, | ||
double | value | ||
) |
Set the value in the a 3-D (maximum) grid
void gstlrn::set_keypair | ( | const char * | keyword, |
Id | origin, | ||
Id | nrow, | ||
Id | ncol, | ||
const double * | values | ||
) |
Deposit a keypair (double values)
[in] | keyword | Keyword |
[in] | origin | 1 from C; 2 from R |
[in] | nrow | Number of rows |
[in] | ncol | Number of columns |
[in] | values | Array of values (Dimension: nrow * ncol) |
Deposit a keypair (integer values)
[in] | keyword | Keyword |
[in] | origin | 1 from C; 2 from R |
[in] | nrow | Number of rows |
[in] | ncol | Number of columns |
[in] | values | Array of values (Dimension: nrow * ncol) |
void gstlrn::set_rule_mode | ( | Id | rule_mode | ) |
Set the Rule Mode
[in] | rule_mode | 1 for Gaussian; 0 for absence of conversion |
void gstlrn::set_test_discrete | ( | bool | flag_discret | ) |
void gstlrn::setDefaultSpace | ( | const ASpaceSharedPtr & | space | ) |
Set the unique default global space from another one.
Defining the default space from another one.
space |
void gstlrn::setFlagMatrixCheck | ( | bool | flag | ) |
void gstlrn::setMultiThread | ( | I32 | nthreads | ) |
Id gstlrn::simbayes | ( | Db * | dbin, |
Db * | dbout, | ||
Model * | model, | ||
ANeigh * | neigh, | ||
Id | nbsimu, | ||
Id | seed, | ||
const 1 & | dmean, | ||
const MatrixSymmetric & | dcov, | ||
Id | nbtuba, | ||
bool | flag_check, | ||
const NamingConvention & | namconv | ||
) |
Perform the conditional or non-conditional simulation with Bayesian Drift
[in] | dbin | Input Db structure (optional) |
[in] | dbout | Output Db structure |
[in] | model | Model structure |
[in] | neigh | ANeigh structure (optional) |
[in] | nbsimu | Number of simulations |
[in] | seed | Seed for random number generator |
[in] | dmean | Array giving the prior means for the drift terms |
[in] | dcov | Array containing the prior covariance matrix for the drift terms |
[in] | nbtuba | Number of turning bands |
[in] | flag_check | 1 to check the proximity in Gaussian scale |
[in] | namconv | Naming convention |
Id gstlrn::simbipgs | ( | Db * | dbin, |
Db * | dbout, | ||
RuleProp * | ruleprop, | ||
Model * | model11, | ||
Model * | model12, | ||
Model * | model21, | ||
Model * | model22, | ||
ANeigh * | neigh, | ||
Id | nbsimu, | ||
Id | seed, | ||
Id | flag_gaus, | ||
Id | flag_prop, | ||
Id | flag_check, | ||
Id | flag_show, | ||
Id | nbtuba, | ||
Id | gibbs_nburn, | ||
Id | gibbs_niter, | ||
double | percent, | ||
const NamingConvention & | namconv | ||
) |
Perform the conditional or non-conditional Bi Pluri-gaussian simulations
[in] | dbin | Input Db structure (optional) |
[in] | dbout | Output Db structure |
[in] | ruleprop | Ruleprop definition |
[in] | model11 | First Model structure for First Lithotype Rule |
[in] | model12 | Second Model structure for First Lithotype Rule |
[in] | model21 | First Model structure for Second Lithotype Rule |
[in] | model22 | Second Model structure for Second Lithotype Rule |
[in] | neigh | ANeigh structure |
[in] | nbsimu | Number of simulations |
[in] | seed | Seed for random number generator |
[in] | flag_gaus | 1 gaussian results; otherwise facies |
[in] | flag_prop | 1 for facies proportion |
[in] | flag_check | 1 if the facies at data must be checked against the closest simulated grid node |
[in] | flag_show | 1 if the grid node which coincides with the data should be represented with the data facies (only if flag_cond && !flag_gaus) |
[in] | nbtuba | Number of turning bands |
[in] | gibbs_nburn | Number of bootstrap iterations |
[in] | gibbs_niter | Maximum number of iterations |
[in] | percent | Amount of nugget effect added to too continuous model (expressed in percentage of the total variance) |
[in] | namconv | Naming convention |
Id gstlrn::simbool | ( | Db * | dbin, |
DbGrid * | dbout, | ||
ModelBoolean * | tokens, | ||
const SimuBooleanParam & | boolparam, | ||
Id | seed, | ||
bool | flag_simu, | ||
bool | flag_rank, | ||
bool | verbose, | ||
const NamingConvention & | namconv | ||
) |
Performs the boolean simulation
[in] | dbin | Db structure containing the data (optional) |
[in] | dbout | DbGrid structure containing the simulated grid |
[in] | tokens | Tokens structure |
[in] | boolparam | SimuBooleanParam structure |
[in] | seed | Seed for the random number generator |
[in] | flag_simu | Store the boolean simulation |
[in] | flag_rank | Store the object rank |
[in] | verbose | 1 for a verbose output |
[in] | namconv | Naming convention |
Id gstlrn::simcond | ( | Db * | dbin, |
Db * | dbout, | ||
Model * | model, | ||
Id | seed, | ||
Id | nbsimu, | ||
Id | nbtuba, | ||
Id | gibbs_nburn, | ||
Id | gibbs_niter, | ||
Id | flag_check, | ||
Id | flag_ce, | ||
Id | flag_cstd, | ||
Id | verbose | ||
) |
Perform the conditional simulations under inequality constraints
[in] | dbin | Input Db structure (optional) |
[in] | dbout | Output Db structure |
[in] | model | Model structure |
[in] | seed | Seed for random number generator |
[in] | nbsimu | Number of simulations |
[in] | nbtuba | Number of turning bands |
[in] | gibbs_nburn | Initial number of iterations for bootstrapping |
[in] | gibbs_niter | Maximum number of iterations |
[in] | flag_check | 1 to check the proximity in Gaussian scale |
[in] | flag_ce | 1 if the conditional expectation should be returned instead of simulations |
[in] | flag_cstd | 1 if the conditional standard deviation should be returned instead of simulations |
[in] | verbose | Verbose flag |
Id gstlrn::simfft | ( | DbGrid * | db, |
ModelGeneric * | model, | ||
SimuFFTParam & | param, | ||
Id | nbsimu, | ||
Id | seed, | ||
Id | verbose, | ||
const NamingConvention & | namconv | ||
) |
Perform the non-conditional simulation by FFT method on a grid
[in] | db | Db structure |
[in] | model | ModelGeneric structure |
[in] | param | SimuFFTParam structure |
[in] | nbsimu | Number of simulations |
[in] | seed | Value of the seed |
[in] | verbose | Verbose flag |
[in] | namconv | Naming Convention |
Id gstlrn::simmaxstable | ( | Db * | dbout, |
Model * | model, | ||
double | ratio, | ||
Id | seed, | ||
Id | nbtuba, | ||
Id | flag_simu, | ||
Id | flag_rank, | ||
Id | verbose | ||
) |
Perform the non-conditional simulation of the Max-Stable Model
[in] | dbout | Output Db structure |
[in] | model | Model structure |
[in] | ratio | Ratio modifying the range at each iteration |
[in] | seed | Seed for random number generator |
[in] | nbtuba | Number of turning bands |
[in] | flag_simu | 1 if the simulation must be stored |
[in] | flag_rank | 1 if the iteration rank must be stored |
[in] | verbose | Verbose flag |
Id gstlrn::simpgs | ( | Db * | dbin, |
Db * | dbout, | ||
RuleProp * | ruleprop, | ||
Model * | model1, | ||
Model * | model2, | ||
ANeigh * | neigh, | ||
Id | nbsimu, | ||
Id | seed, | ||
Id | flag_gaus, | ||
Id | flag_prop, | ||
Id | flag_check, | ||
Id | flag_show, | ||
Id | nbtuba, | ||
Id | gibbs_nburn, | ||
Id | gibbs_niter, | ||
double | percent, | ||
const NamingConvention & | namconv | ||
) |
Perform the conditional or non-conditional Pluri-gaussian simulations
[in] | dbin | Input Db structure (optional) |
[in] | dbout | Output Db structure |
[in] | ruleprop | RuleProp structure |
[in] | model1 | First Model structure |
[in] | model2 | Second Model structure (optional) |
[in] | neigh | ANeigh structure |
[in] | nbsimu | Number of simulations |
[in] | seed | Seed for random number generator |
[in] | flag_gaus | 1 if results must be gaussian; otherwise facies |
[in] | flag_prop | 1 for facies proportion |
[in] | flag_check | 1 if the facies at data must be checked against the closest simulated grid node |
[in] | flag_show | 1 if the grid node which coincides with the data should be represented with the data facies (only if flag_cond && !flag_gaus) |
[in] | nbtuba | Number of turning bands |
[in] | gibbs_nburn | Number of bootstrap iterations |
[in] | gibbs_niter | Maximum number of iterations |
[in] | percent | Amount of nugget effect added to too much continous model (expressed in percentage of the total variance) |
[in] | namconv | Naming convention |
Id gstlrn::simPGSSPDE | ( | Db * | dbin, |
Db * | dbout, | ||
Model * | model, | ||
const RuleProp & | ruleprop, | ||
Id | nbsimu, | ||
Id | useCholesky, | ||
const VectorMeshes * | meshesK, | ||
const ProjMultiMatrix * | projInK, | ||
const VectorMeshes * | meshesS, | ||
const ProjMultiMatrix * | projInS, | ||
const ProjMultiMatrix * | projOutK, | ||
const ProjMultiMatrix * | projOutS, | ||
const SPDEParam & | params, | ||
bool | verbose, | ||
const NamingConvention & | namconv | ||
) |
Perform the conditional SIMULATIONs using PGS technique in the SPDE framework
dbin | Input Db (variable to be estimated). Only for conditional simulations |
dbout | Output Db where the estimation must be performed |
model | Model definition |
ruleprop | RuleProp structure describing the Rule and the Proportions |
nbsimu | Number of simulations |
useCholesky | Define the choice regarding Cholesky (see _defineCholesky) |
meshesK | Meshes used for Kriging (optional) |
projInK | Matrix of projection used for Kriging (optional) |
meshesS | Meshes used for Simulations (optional) |
projInS | Matrix of projection used for Simulations (optional) |
projOutK | Matrix of projection on dbout used for Kriging (optional) |
projOutS | Matrix of projection on dbout used for Simulations (optional) |
params | Set of SPDE parameters |
verbose | Verbose flag |
namconv | see NamingConvention |
Id gstlrn::simRI | ( | Db * | dbout, |
Model * | model, | ||
Id | ncut, | ||
double * | zcut, | ||
double * | wcut, | ||
Id | seed, | ||
Id | nbtuba, | ||
Id | verbose | ||
) |
Perform the non-conditional simulation of the Orthogonal Residual Model
Id gstlrn::simsph | ( | DbGrid * | db, |
Model * | model, | ||
const SimuSphericalParam & | sphepar, | ||
Id | seed, | ||
bool | verbose, | ||
const NamingConvention & | namconv | ||
) |
Simulates the random function on the sphere
[in] | db | Data base containing the coordinates of target points These coordinates must be expressed in long/lat |
[in] | model | Model (defined in Euclidean space) to be used |
[in] | sphepar | SimuSphericalParam structure |
[in] | seed | Seed for random number generation |
[in] | verbose | Verbose flag |
[in] | namconv | Naming convention |
gstlrn::simsph_mesh | ( | MeshSpherical * | mesh, |
Model * | model, | ||
const SimuSphericalParam & | sphepar, | ||
Id | seed, | ||
Id | verbose | ||
) |
Simulates the random function on the sphere
[in] | mesh | MeshSpherical object |
[in] | model | Model (defined in Euclidean space) to be used |
[in] | sphepar | SimuSphericalParam structure |
[in] | seed | Seed for random number generation |
[in] | verbose | Verbose flag |
Id gstlrn::simtub | ( | Db * | dbin, |
Db * | dbout, | ||
Model * | model, | ||
ANeigh * | neigh, | ||
Id | nbsimu, | ||
Id | seed, | ||
Id | nbtuba, | ||
bool | flag_dgm, | ||
bool | flag_check, | ||
const NamingConvention & | namconv | ||
) |
Perform the conditional or non-conditional simulation
[in] | dbin | Input Db structure (optional) |
[in] | dbout | Output Db structure |
[in] | model | Model structure |
[in] | neigh | ANeigh structure (optional) |
[in] | nbsimu | Number of simulations |
[in] | seed | Seed for random number generator |
[in] | nbtuba | Number of turning bands |
[in] | flag_dgm | 1 for Direct Block Simulation |
[in] | flag_check | 1 to check the proximity in Gaussian scale |
[in] | namconv | Naming convention |
Id gstlrn::simtub_constraints | ( | Db * | dbin, |
Db * | dbout, | ||
Model * | model, | ||
ANeigh * | neigh, | ||
Id | seed, | ||
Id | nbtuba, | ||
Id | nbsimu_min, | ||
Id | nbsimu_quant, | ||
Id | niter_max, | ||
1 & | cols, | ||
Id(*)(Id flag_grid, Id nDim, Id nech, Id *nx, double *dx, double *x0, double nonval, double percent, 1 &tab) | func_valid | ||
) |
Perform a set of valid conditional or non-conditional simulations
[in] | dbin | Input Db structure (optional) |
[in] | dbout | Output Db structure |
[in] | model | Model structure |
[in] | neigh | ANeigh structure (optional) |
[in] | seed | Seed for random number generator |
[in] | nbtuba | Number of turning bands |
[in] | nbsimu_min | Minimum number of simulations |
[in] | nbsimu_quant | Additional quantum of simulations |
[in] | niter_max | Maximum number of iterations |
[in] | cols | Vector of column indices |
[in] | func_valid | Testing function |
Scaling function for the Modification categorical case
[in] | db | Db structure |
[in] | verbose | 1 for the verbose flag |
[in] | nbsimu | Number of simulations |
Transformation function for the Modification categorical case
[in] | db | Db structure |
[in] | verbose | 1 for the verbose flag |
[in] | isimu | Rank of the current simulation |
[in] | nbsimu | Number of simulations |
Updating function for the Modification categorical case
[in] | db | Db structure |
[in] | verbose | 1 for the verbose flag |
[in] | isimu | Rank of the current simulation |
[in] | nbsimu | Number of simulations (stored) |
Scaling function for the Modification continuous case
[in] | db | Db structure |
[in] | verbose | 1 for the verbose flag |
[in] | nbsimu | Number of simulations |
Updating function for the Modification continuous case
[in] | db | Db structure |
[in] | verbose | 1 for the verbose flag |
[in] | isimu | Rank of the current simulation |
[in] | nbsimu | Number of simulations (stored) |
Id gstlrn::simulateSPDE | ( | Db * | dbin, |
Db * | dbout, | ||
Model * | model, | ||
Id | nbsimu, | ||
Id | useCholesky, | ||
const VectorMeshes * | meshesK, | ||
const ProjMultiMatrix * | projInK, | ||
const VectorMeshes * | meshesS, | ||
const ProjMultiMatrix * | projInS, | ||
const ProjMultiMatrix * | projOutK, | ||
const ProjMultiMatrix * | projOutS, | ||
const SPDEParam & | params, | ||
bool | verbose, | ||
const NamingConvention & | namconv | ||
) |
Perform the conditional SIMULATIONs in the SPDE framework
dbin | Input Db (variable to be estimated). Only for conditional simulations |
dbout | Output Db where the estimation must be performed |
model | Model definition |
nbsimu | Number of simulations |
useCholesky | Define the choice regarding Cholesky (see _defineCholesky) |
meshesK | Meshes used for Kriging (optional) |
projInK | Matrix of projection used for Kriging (optional) |
meshesS | Meshes used for Simulations (optional) |
projInS | Matrix of projection used for Simulations (optional) |
projOutK | Matrix of projection on dbout used for Kriging (optional) |
projOutS | Matrix of projection on dbout used for Simulations (optional) |
params | Set of SPDE parameters |
verbose | Verbose flag |
namconv | see NamingConvention |
DbGrid * gstlrn::simulation_refine | ( | DbGrid * | dbin, |
Model * | model, | ||
const SimuRefineParam & | param, | ||
Id | seed, | ||
const NamingConvention & | namconv | ||
) |
Refine the simulation
[in] | dbin | Input grid Db structure |
[in] | model | Model structure |
[in] | param | SimuRefineParam structure |
[in] | seed | Seed for the random number generator |
[in] | namconv | Naming convention |
Id gstlrn::simuPost | ( | Db * | dbin, |
DbGrid * | dbout, | ||
const VectorString & | names, | ||
bool | flag_match, | ||
const EPostUpscale & | upscale, | ||
const std::vector< EPostStat > & | stats, | ||
bool | verbose, | ||
const 1 & | check_targets, | ||
Id | check_level, | ||
const NamingConvention & | namconv | ||
) |
dbin | Input data base |
dbout | Output data base (must be a Grid) |
names | Vector of simulation names |
flag_match | True if the ranks of simulations must match; otherwise: product |
upscale | Option within EPostUpscale |
stats | Vector of options within EPostStat |
verbose | Verbose flag |
check_targets | Rank (1-based) of the target element to be checked (0: None; -1: All) |
check_level | 0: Statistics; 1: Sample Selection; 2: Iteration definition |
namconv | Naming convention |
Description of the Flow Chart:
Id gstlrn::simuPostDemo | ( | Db * | dbin, |
DbGrid * | dbout, | ||
const VectorString & | names, | ||
bool | flag_match, | ||
const EPostUpscale & | upscale, | ||
const std::vector< EPostStat > & | stats, | ||
bool | verbose, | ||
const 1 & | check_targets, | ||
Id | check_level, | ||
const NamingConvention & | namconv | ||
) |
This is a particular use of Simulation Post-Processing functions.
Its specificity is an embedded transformation function which transforms the multivariate simulation vector (combining the one outcome of each variable, and for a given sample) This transformation (which is provided as an example here):
For a detailed list of arguments, see simuPost
Id gstlrn::simuPostPropByLayer | ( | Db * | dbin, |
DbGrid * | dbout, | ||
const VectorString & | names, | ||
bool | flag_match, | ||
bool | flag_topToBase, | ||
const EPostUpscale & | upscale, | ||
const std::vector< EPostStat > & | stats, | ||
bool | verbose, | ||
const 1 & | check_targets, | ||
Id | check_level, | ||
const NamingConvention & | namconv | ||
) |
This is a particular use of Simulation Post-Processing functions. Its specificity comes from its transformation function.
It is assumed that each input variable corresponds to the thickness of ordered layers. This function receives a vector of multivariate information (for each combination of simulation outcome and for each sample of the input 'db').
If N designates the number of elements of the input vector, the transformation returns a vector of N+1 elements. This vector corresponds to the percentage of each layer within the target block
For a detailed list of arguments, see simuPost
Id gstlrn::simuSpectral | ( | Db * | dbin, |
Db * | dbout, | ||
Model * | model, | ||
Id | nbsimu, | ||
Id | seed, | ||
Id | ns, | ||
Id | nd, | ||
bool | verbose, | ||
const NamingConvention & | namconv | ||
) |
Perform a series of simulations (on Rn or on the Spehere) using Spectral Method
dbin | Input Db where the conditioning data are read |
dbout | Output Db where the results are stored |
model | Model (should only contain covariances that can cope with spectral method) |
ns | Number of spectral components |
nbsimu | Number of simulations processed simultaneously |
seed | Seed used for the Random number generator |
verbose | Verbose flag |
nd | Number of discretization steps (used for the Spectrum on Sphere) |
namconv | Naming Convention |
void gstlrn::skipBOM | ( | std::ifstream & | ins | ) |
This file contains all the OLD-STYLE declarations causing warnings on Windows They should gradually be replaced by modern statements However, they are kept there to keep track on these statements
|
static |
|
static |
|
static |
Id gstlrn::solve_P2 | ( | double | a, |
double | b, | ||
double | c, | ||
1 & | x | ||
) |
Find the roots of a polynomial of order 2: ax^2 + bx + c = 0
[in] | a,b,c | Coefficients of the polynomial |
[out] | x | Array of real solutions (Dimension: 2) |
Id gstlrn::solve_P3 | ( | double | a, |
double | b, | ||
double | c, | ||
double | d, | ||
1 & | x | ||
) |
Find the roots of a polynomial of order 3: a*x^3 + b*x^2 + c*x + d = 0
[in] | a,b,c,d | Coefficients of the polynomial |
[out] | x | Array of real solutions (Dimension: 3) |
Id gstlrn::sparseinv | ( | Id | n, |
Id * | Lp, | ||
Id * | Li, | ||
double * | Lx, | ||
double * | d, | ||
Id * | Up, | ||
Id * | Uj, | ||
double * | Ux, | ||
Id * | Zp, | ||
Id * | Zi, | ||
double * | Zx, | ||
double * | z, | ||
Id * | Zdiagp, | ||
Id * | Lmunch | ||
) |
MatrixSquare * gstlrn::sphering | ( | const AMatrix * | X | ) |
Sphering procedure
X | Input Data vector |
Id gstlrn::spill_point | ( | DbGrid * | dbgrid, |
Id | ind_depth, | ||
Id | ind_data, | ||
Id | option, | ||
bool | flag_up, | ||
Id | verbose_step, | ||
double | hmax, | ||
double * | h, | ||
const double * | th, | ||
Id * | ix0, | ||
Id * | iy0 | ||
) |
Evaluates the spill point
[in] | dbgrid | Grid Db structure |
[in] | ind_depth | Rank of the variable containing the depth |
[in] | ind_data | Rank of the variable containing the data |
[in] | option | 0 for 4-connectivity; 1 for 8-connectivity |
[in] | flag_up | TRUE when working in elevation; 0 in depth |
[in] | verbose_step | Step for verbose flag |
[in] | hmax | maximum reservoir thickness (FFFF not used) |
[out] | h | elevation of the spill point |
[out] | th | maximum reservoir thickness |
[out] | ix0 | location of the spill point grid node along X |
[out] | iy0 | location of the spill point grid node along Y |
Spill_Res gstlrn::spillPoint | ( | DbGrid * | dbgrid, |
const String & | name_depth, | ||
const String & | name_data, | ||
Id | option, | ||
bool | flag_up, | ||
Id | verbose_step, | ||
double | hmax | ||
) |
Evaluates the spill point
[in] | dbgrid | Grid Db structure |
[in] | name_depth | Name of the variable containing the depth |
[in] | name_data | Name of the variable containing the data |
[in] | option | 0 for 4-connectivity; 1 for 8-connectivity |
[in] | flag_up | TRUE when working in elevation; FALSE in depth |
[in] | verbose_step | Step for the verbose flag |
[in] | hmax | maximum reservoir thickness (FFFF not used) |
|
static |
|
static |
|
static |
Project the auxiliary surfaces on the system defined by the unit and store the result in the structure 'refstats'
surfaces | Pointer to the Db containing the surfaces |
rank | Rank of the trace within 'db' |
nz | Number of meshes in the layer |
option | Stretching option |
z0 | Elevation origin |
delta | Vertical mesh |
czbot | Bottom bound |
cztop | Top bound |
iaux_bot | Attribute index of the Auxiliary Bottom variable (or -1) |
iaux_top | Attribute index of the Auxiliary Top variable (or -1) |
refstats | RefStats structure |
|
static |
|
static |
Blanks the center of the image
[in,out] | image | SPIMG structure to be initialized |
Discretize a block
[in] | mode | 0 if the block extension is read from grid 1 if the block extension is read from variable |
[in] | flag_rand | 0 if the second discretization is regular 1 if the second point must be randomized |
[in] | iech | rank of the variable (used when mode=1) |
Allocate the Target discretization
[in] | ndim | Space dimension |
[in] | ndiscs | Discretization parameters (or NULL) |
|
static |
Establish the correlation for C1(h), C12(h), C21(h), C2(h)
[in] | corpgs | Local_CorPgs structure |
[in] | params_in | Array of parameters |
[out] | correl | Correlation matrix (Dimension = 4*4) |
|
static |
A function for computing bivariate normal probabilities
[in] | lower | array of lower integration limits |
[in] | upper | array of upper integration limits |
[in] | infin | array of integration limits flag (0,1,2) |
[in] | correl | correlation coefficient |
|
static |
A function for computing bivariate normal probabilities. Yihong Ge Department of Computer Science and Electrical Engineering Washington State University Pullman, WA 99164-2752 and Alan Genz Department of Mathematics Washington State University Pullman, WA 99164-3113 Email : alang.nosp@m.enz@.nosp@m.wsu.e.nosp@m.du
[in] | sh | integration limit |
[in] | sk | integration limit |
[in] | r | REAL, correlation coefficient |
|
static |
Global calculation
[in] | local_pgs | Local_Pgs structure |
[in] | flag_deriv | 1 if the derivatives must be calculated |
[in] | flag_reset | 1 to update the probability calculations |
[in] | params | Array of parameters |
[out] | Grad | Vector of cumulated gradients (Dimension= 4) |
[out] | Hess | Matrix of cumulated Hessian (Dimension= 4*4) |
[out] | JJ | Matrix of cumulated JJ (Dimension= 4*4) |
|
static |
Evaluate Gradient and Hermitian matrices
[in] | param | Current values of the parameters |
[in] | lower | Array of lower values |
[in] | upper | Array of upper values |
[in] | scale | Array of scaling values |
[in] | acont | Array of constraints |
[in] | tabwgt | Array of weights at control points |
[out] | residuals | Array of residuals |
[out] | Jr | Array of gradients |
[out] | grad | Gradient matrix |
[out] | gauss | Gauss matrix |
[out] | hgnc | Resulting hgnc array |
[out] | param1 | Working array (Dimension: NPAR) |
[out] | param2 | Working array (Dimension: NPAR) |
[out] | tabmod1 | Working array (Dimension: NDAT) |
[out] | tabmod2 | Working array (Dimension: NDAT) |
|
static |
Establish the covariance matrix between two Dbs
[in] | title | Title of the optional printout |
[in] | db1 | First Db structure |
[in] | test_def1 | 1 if the first variable (ELoc::Z) must be checked |
[in] | db2 | Second Db structure |
[in] | test_def2 | 1 if the second variable (ELoc::Z) must be checked |
[in] | model | Model structure |
|
static |
Calculate the covariance matrix
[in] | local_pgs | Local_Pgs structure |
[out] | flag_ind | 1 if the two GRF are independent |
[out] | iconf | Array of ranks of the discretized covariance |
[out] | cov | Matrix of covariance |
|
static |
Establish the distance matrix between two Dbs
[in] | title | Title of the optional printout |
[in] | db1 | First Db structure |
[in] | test_def1 | 1 if the first variable (ELoc::Z) must be checked |
[in] | db2 | Second Db structure (sources) |
[in] | test_def2 | 1 if the second variable (ELoc::Z) must be checked |
[in] | power | Power of the Distance decay |
|
static |
Establish the drift matrix for a given Db
[in] | title | Title of the optionla printout |
[in] | db1 | First Db structure |
[in] | test_def1 | 1 if the first variable (ELoc::Z) must be checked |
[in] | model | Model structure |
|
static |
Global calculation in the non-stationary case
[in] | local_pgs | Local_Pgs structure |
[in] | flag_deriv | 1 if the derivatives must be calculated |
[in] | flag_reset | 1 to update the probability calculations |
[in] | correl | Correlation matrix updated |
[out] | Grad | Vector of cumulated gradients (Dimension= 4) |
[out] | Hess | Matrix of cumulated Hessian (Dimension= 4*4) |
[out] | JJ | Matrix of cumulated JJ (Dimension= 4*4) |
|
static |
Operate the product of the Distance by the Source covariance matrix
[in] | title | Title of the optionla printout |
[in] | n1 | Number of Data |
[in] | ns | Number of Sources |
[in] | covss | Covariance Matrix between Sources (Dim: ns*ns) |
[in] | distgen | Distance matrix |
|
static |
Global calculation in the stationary case
[in] | local_pgs | Local_Pgs structure |
[in] | flag_deriv | 1 if the derivatives must be calculated |
[in] | flag_reset | 1 to update the probability calculations |
[in] | correl | Correlation matrix updated |
[out] | Grad | Vector of cumulated gradients (Dimension= 4) |
[out] | Hess | Matrix of cumulated Hessian (Dimension= 4*4) |
[out] | JJ | Matrix of cumulated JJ (Dimension= 4*4) |
|
static |
Calculate the experimental covariance of the residual variable defined on the grid
[in] | db | input Db structure |
[in] | model | Model describing the horizontal structure |
[in] | cov_ref | Array of discretized covariance for target variable |
[in] | cov_radius | Radius of the covariance array |
[in] | flag_sym | 1 for symmetrized covariance |
[in] | cov_ss | Array of dimensions of the Covariance array |
[in] | cov_nn | Array of radius of the Covariance array |
[out] | cov_res | Array containing the covariance of the residual variable |
|
static |
Calculate the experimental covariance of the total variable defined on the grid
[in] | db | input Db structure |
[in] | ix0 | index of the grid index along X |
[in] | iy0 | index of the grid index along Y |
[in] | flag_sym | 1 for symmetrized covariance |
[in] | cov_ss | Array of dimensions of the Covariance array |
[in] | cov_nn | Array of radius of the Covariance array |
[out] | num_tot | Array containing the numb er of pairs |
[out] | cov_tot | Array containing the covariance of the total variable |
|
static |
Calculate the thresholds in the stationary case
[in] | local_pgs | Local_Pgs structure |
|
static |
|
static |
Check that the algorithm is valid
[in] | ind_util | List of retained constraint indices |
[in] | hgnc | Working vector |
[in] | acont | Matrix of additional constraints |
|
static |
Check/Show the data against facies at the closest grid node
[in] | dbin | Input Db structure |
[in] | dbout | Output Db grid structure |
[in] | flag_check | 1 check the consistency between data and grid |
[in] | flag_show | 1 show the data on grid |
[in] | ipgs | Rank of the PGS |
[in] | nechin | Initial number of data |
[in] | nfacies | Number of facies |
[in] | nbsimu | Number of simulations |
Check if the target layer rank is consistent
[in] | string | Name of the calling procedure |
[in] | lmlayers | LMlayers structure |
[in] | ilayer0 | Rank of the target layer (starting from 1) |
|
static |
Check if the Discrete Calculations make sens or not
[in] | mode | Lithotype mode (ENUM_RULES) |
[in] | flag_rho | 1 if rho has to be calculated, 0 otherwise |
|
static |
Calculate the covariance between data and target
[in] | lmlayers | LMlayers structure |
[in] | model | Model |
[in] | ilayer | Layer of interest (data point). Starting from 1 |
[in] | prop1 | Working array at data point (Dimension: nlayers) |
[in] | jlayer | Layer of interest (target point). Starting from 1 |
[in] | dd | Distance vector (or NULL for zero-distance) |
[out] | covtab | Working array (Dimension = nlayers * nlayers) |
|
static |
Calculate the covariance between data and data
[in] | lmlayers | Pointer to the LMlayers structure to be freed |
[in] | model | Model |
[in] | ilayer | Layer of interest (first point). Starting from 1 |
[in] | prop1 | Working array at first point (Dimension: nlayers) |
[in] | jlayer | Layer of interest (second point). Starting from 1 |
[in] | prop2 | Working array at second point (Dimension: nlayers) |
[in] | dd | Distance vector (or NULL for zero-distance) |
[out] | covtab | Working array (Dimension = nlayers * nlayers) |
|
static |
Check if a pair must be kept according to code criterion
[in] | db1 | First Db structure |
[in] | db2 | Second Db structure |
[in] | iech | Rank of the first sample |
[in] | jech | Rank of the second sample |
[in] | opt_code | code selection option
|
[in] | tolcode | Code tolerance |
|
static |
Perform the per-calculation for estimation with collocated option
[in] | lmlayers | LMlayers structure |
[in] | iechout | Rank of the target |
[in] | coor | Coordinates of the target |
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | model | Model |
[in] | seltab | Number of sample definition (0, 1 or 2) |
[in] | a | L.H.S. (square) inverted matrix |
[in] | zval | Data vector (extended) |
[out] | prop1 | Working array (Dimension: nlayers) |
[out] | prop2 | Working array (Dimension: nlayers) |
[out] | covtab | Working array (Dimension = nlayers * nlayers) |
[out] | b2 | Working vector (Dimension = neq) |
[out] | baux | Working vector (Dimension = neq) |
[out] | ratio | Ratio value |
|
static |
Return all the combinations of k within n (local recursive routine)
[in] | v | Array of indices to be sorted |
[in] | start | Rank of the starting index |
[in] | n | Total number of objects (>= 1) |
[in] | k | Starting sorting index |
[in] | maxk | Selected number of objects (>= 1) |
[in,out] | ncomb | Current number of combinations |
[in,out] | comb | Current array of combinations |
Complete the information in the Squeeze and Stretch feature
[in] | ntab | Dimension of the vector |
[in,out] | tab | Vector |
|
static |
Establish the total vector C1(h), C12(h), C21(h), C2(h)
[in] | corpgs | Local_CorPgs structure |
[in] | params_in | Parameters (Dimension corpgs.npar) |
|
static |
Initialize the constraints
[in] | ind_util | List of retained constraint indices |
[in] | ai | AI matrix |
|
static |
Converts the final image into the following codes: SURFACE_INSIDE, SURFACE_OUTSIDE, SURFACE_BELOW or SURFACE_UNKNOWN
[in] | hspill | spill elevation |
Convert the results in the Depth scale
[in] | lmlayers | LMlayers structure |
[in] | dbout | Output Db structure |
[in] | flag_std | 1 if the estimation error must be calculated |
|
static |
Extract A from a,b,c
[in] | cosa | Cosine of first angle |
[in] | sinb | Sine of second angle |
[in] | cosb | Cosine of second angle |
[in] | sinc | Sine of third angle |
[in] | cosc | Cosine of third angle |
Loads the center of the image from an input array
[in] | mode | Type of information
|
[in] | iatt | Rank of the attribute |
[in] | defval | Default value |
[in,out] | image | SPIMG structure to be initialized |
|
static |
Duplicate the information from the input variogram to the output variogram This operation considers (Sw, Hh, Gg) and replicates this information for all directions. Per direction, the information of the first simple input variogram is replicated to all simple and cross-variograms outputs
[in] | vario1 | Input Variogram |
[out] | vario2 | Output Variogram |
[in] | flagSw | True if Sw must be replicated |
[in] | flagHh | True if Hh must be replicated |
[in] | flagGg | True if Gg must be replicated |
Management of internal array (double)
[in] | nli | Number of lines |
[in] | nco | Number of columns |
Calculate the discretized covariance
[in] | dist | Integer distance |
[in] | cov | Array of discretized covariances |
[in] | cov_radius | Radius of the covariance array |
[in] | flag_sym | 1 for symmetrized covariance |
|
static |
Calculate the array of covariances for zero distance
[in] | lmlayers | Pointer to the LMlayers structure to be freed |
[in] | model | Model |
[in] | prop1 | Working array at first point (Dimension: nlayers) |
[out] | covtab | Working array (Dimension = nlayers * nlayers) |
[out] | c00 | Returned array (Dimension = nlayers) |
|
static |
Subroutine to sort integration limits and determine Cholesky factor
|
static |
|
static |
|
static |
|
static |
Allocate the Data discretization
[in] | ndim | Space dimension |
|
static |
Perform the Declustering task as the sum of the weight for Kriging the Cells of a grid
Display the statistics of the target variable before or after the Declustering
[in] | mode | 0 before the declustering; 1 after |
[in] | method | Method for declustering |
[in] | db | input Db structure |
[in] | iptr | Rank of the weighting variable |
Truncate the negative weights and scale the remaining ones
[in] | db | Db structure |
[in] | iptr | Rank of the Weight variable |
|
static |
|
static |
Define the thresholds of the GRF(s)
[in] | local_pgs | Local_Pgs structure |
[in] | iech1 | Rank of the first sample |
[in] | iech2 | Rank of the second sample |
[in] | ifac1 | Rank of the first facies |
[in] | ifac2 | Rank of the second facies |
[out] | low | Array of lower thresholds (Dimension: 4) |
[out] | up | Array of upper thresholds (Dimension: 4) |
[out] | ploc | Array of proportions (Dimension: 2) |
REMARKS: Warning: in the case of TEST_DISCRET, the returned arguments REMARKS: 'low' and 'up' return the ranks in the discretized covariance
|
static |
Calculate the number of constraints
[in] | mode | Type of constraints
|
[in] | bords_red | Reduced array containing the bounds |
[in] | ai_red | Reduced AI matrix |
[in] | hgnc | Resulting hgnc array |
[out] | consts | Array of constraints |
[out] | flag | Array of indices with zero valid constraint |
[out] | temp | Working array |
|
static |
Define the correlation option
[in] | option | Correlation option
|
[in] | flag_rho | 1 if rho has to be calculated, 0 otherwise |
[in] | rho | Correlation between GRFs |
[in,out] | local_pgs | Local_Pgs structure |
Define the trace
[in] | flag_rho | 1 if rho has to be calculated, 0 otherwise |
[in] | flag_correl | 1 for the correlated case; 0 otherwise |
[in,out] | local_pgs | Local_Pgs structure |
|
static |
Compute the derivatives (first and second) of the smallest eigenvalue
[in] | corpgs | Local_CorPgs structure |
[in] | eigval | Current eigen value |
[out] | ev | Output array |
[out] | d1 | First order derivative |
[out] | d2 | Second order derivative |
|
static |
Calculate the Gauss matrix
[in] | Jr | Array of gradients |
[out] | gauss | Gaussian matrix |
Discard a data if:
[in] | local_pgs | Local_Pgs structure |
[in] | iech | Rank of the sample |
|
static |
Divide by 2 in integer (upper rounded value)
[in] | nxyz | Dimensions of the subgrid |
[in] | orient | Rank of the target direction |
|
static |
Automatic Multidimensional Integration Subroutine AUTHOR: Alan Genz Department of Mathematics Washington State University Pulman, WA 99164-3113 Email: AlanG.nosp@m.enz@.nosp@m.wsu.e.nosp@m.du Last Change: 5/15/98 KRBVRC computes an approximation to the integral 1 1 1 I I ... I F(X) dx(NDIM)...dx(2)dx(1) 0 0 0 DKBVRC uses randomized Korobov rules for the first 20 variables. The primary references are "Randomization of Number Theoretic Methods for Multiple Integration"
[in] | ndim | Number of variables, must exceed 1, but not exceed 40 Integer minimum number of function evaluations allowed. |
[in,out] | minvls | must not exceed MAXVLS. If MINVLS < 0 then the routine assumes a previous call has been made with the same integrand and continues that calculation. Actual number of function evaluations used. |
[in] | maxvls | Integer maximum number of function evaluations allowed. |
[in] | functn | EXTERNALLY declared user defined function to be integrated. It must have parameters (NDIM,Z), where Z is a real array of dimension NDIM. |
[in] | abseps | Required absolute accuracy. Estimated absolute accuracy of FINEST. |
[in] | releps | Required relative accuracy. |
[out] | abserr | Absolute returned accuracy |
[out] | finest | Estimated value of integral. |
[out] | inform | = 0 for normal status, when ABSERR <= MAX(ABSEPS, RELEPS*ABS(FINEST)) and INTVLS <= MAXCLS. = 1 If MAXVLS was too small to obtain the required accuracy. In this case a value FINEST is returned with estimated absolute accuracy ABSERR. |
|
static |
This subroutine generates a new quasi-random Richtmeyer vector. A reference is "Methods of Numerical Integration", P.J. Davis and P. Rabinowitz, Academic Press, 1984, pp. 482-483.
[in] | s | the number of dimensions |
[out] | quasi | a new quasi-random S-vector |
|
static |
st_dksmrc
|
static |
st_dkswap
|
static |
Calculate the drift terms
[in] | lmlayers | Pointer to the LMlayers structure to be freed |
[in] | coor | Array of coordinates |
[in] | propval | Value for the proportion (used if flag_cumul=TRUE) |
[in] | drext | Value of the external drift |
[in,out] | ipos_loc | Address for the first drift term. On output, address for the next term after the drift |
[out] | b | Array for storing the drift |
|
static |
Calculate the posterior mean and variances in Bayesian case
|
static |
Fill the array of drift values at data points
|
static |
Calculate auxiliary arrays when drift is preset
[in] | np | Number of data |
[in] | nbfl | Number of drift functions |
[in] | covpp | Inverse Covariance between Data-Data |
[in] | drftab | Drift matrix at Data |
[out] | ymat | Array: t(F) %*% C^-1 |
[out] | zmat | Array: (t(F) %*% C^-1 %*% F)^-1 |
|
static |
Update the weight vector
[in] | np | Number of data |
[in] | nbfl | Number of drift functions |
[in] | covgp | Covariance matrix between Data and Target |
[in] | driftg | Drift matrix at Target |
[in] | ymat | Auxiliary array |
[in] | zmat | Auxiliary array |
[in] | maux | Auxiliary array (Dimension: nbfl) |
[out] | lambda | Vector of weights |
[out] | mu | Vector of Lagrange parameters |
|
static |
Prints the current output flag array
[in] | flagMain | TRUE if it is called from a main level |
[in] | title | Title for the dump (main level) |
[in] | pt_out | Designation of the target node in 'out' (if provided) |
[in] | image | Image containing the information to be displayed |
|
static |
Score of the Minimization under constraints
[in] | hgnadm | Admissible vector |
[in] | grad_red | Reduced Gradient matrix |
[in] | gauss_red | Reduced Gauss matrix |
|
static |
Minimization under constraints
[in] | nactive | Number of active constraints |
[in] | ind_util | List of retained constraint indices |
[in] | flag_active | Array of indices with zero valid constraint |
[in] | bords_red | Reduced array containing the bounds |
[in] | ai_red | Reduced AI matrix |
[in] | grad_red | Reduced Gradient matrix |
[in] | gauss_red | Reduced Gauss matrix |
[out] | lambda_neg | Index of the first negative lambda value |
[out] | hgnc | Resulting Hgnc array |
[out] | a | Minimization L.H.S. matrix |
[out] | b | Minimization R.H.S. matrix |
[out] | temp | Working array |
|
static |
Perform the estimation at the grid nodes
[in] | lmlayers | LMlayers structure |
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | model | Model |
[in] | seltab | Number of sample definition (0, 1 or 2) |
[in] | flag_bayes | 1 if the Bayesian hypothesis is used on drift coeffs |
[in] | flag_std | 1 if the estimation error must be calculated |
[in] | a | L.H.S. (square) inverted matrix |
[in] | zval | Data vector (extended) |
[in] | dual | Dual vector |
[out] | prop1 | Working array (Dimension: nlayers) |
[out] | prop2 | Working array (Dimension: nlayers) |
[out] | covtab | Working array (Dimension = nlayers * nlayers) |
[out] | b | Working vector (Dimension = neq) |
[out] | b2 | Working vector (Dimension = neq) |
[out] | baux | Working vector (Dimension = neq) |
[out] | wgt | Working array (Dimension = neq) |
[out] | c00 | Working array (Dimension = nlayers) |
[out] | a0 | Constant term |
[out] | cc | Output value |
[out] | ss | Output value |
[out] | gs | Output value |
[out] | post_mean | Array of posterior mean |
|
static |
Perform the estimation at the grid nodes in the bayesian case
[in] | lmlayers | LMlayers structure |
[in] | flag_std | 1 if the estimation error must be calculated |
[in] | c00 | Variance at target |
[in] | acov | L.H.S. (square) inverted matrix |
[in] | zval | Data vector |
[in] | b | Working vector (Dimension = neq) |
[in] | wgt | Working array (Dimension = neq) |
[out] | post_mean | Array of posterior mean |
[out] | a0 | Constant term |
[out] | cc | Output value |
[out] | ss | Output value |
[out] | gs | Output value |
[out] | estim | Estimated value |
[out] | stdev | Standard deviation of estimation error |
|
static |
|
static |
Establish the Kriging flag
[in] | ngh | Current ST_Seismic_Neigh structure |
[in] | nfeq | Number of drift condition per variable |
[out] | flag | Array containing the Kriging flag |
[out] | nred | Reduced number of equations |
|
static |
Establish the Kriging L.H.S.
[in] | ngh | Current ST_Seismic_Neigh structure |
[in] | model | Model structure |
[in] | nfeq | Number of drift condition per variable |
[in] | nred | Reduced number of equations |
[in] | flag | Array giving the flag |
[out] | lhs | Array containing the Kriging L.H.S. |
|
static |
Copy the current neighborhood into the old one
[in] | ngh_cur | Current ST_Seismic_Neigh structure |
[out] | ngh_old | Old ST_Seismic_Neigh structure |
|
static |
Establish the neighborhood
[in] | db | Grid Db structure |
[in] | flag_exc | 1 if the target sample must be excluded |
[in] | iatt_z1 | Address of the first data attribute |
[in] | iatt_z2 | Address of the second data attribute |
[in] | ix0 | Rank of the target trace |
[in] | iz0 | Rank of the target sample within the target trace |
[in] | nbench | Vertical Radius of the neighborhood (center excluded) |
[in] | nv2max | Maximum number of traces of second variable on each side of the target trace |
[in] | presence | Array giving the number of valid samples per trace |
[out] | ngh | Current ST_Seismic_Neigh structure |
|
static |
Initialize the ST_Seismic_Neigh structure
[in] | ngh | ST_Seismic_Neigh structure to be freed (if mode<0) |
|
static |
Manage the ST_Seismic_Neigh structure
[in] | mode | Type of management
|
[in] | nvois | Maximum number of samples in the neighborhood |
[in] | ngh | ST_Seismic_Neigh structure to be freed (if mode<0) |
|
static |
Print the Kriging Information
[in] | ngh | Current ST_Seismic_Neigh structure |
[in] | ix0 | Rank of the target trace |
[in] | iz0 | Rank of the target sample within the target trace |
|
static |
Check if the neighborhood has changed
[in] | ngh_old | Previous ST_Seismic_Neigh structure |
[in] | ngh_cur | Current ST_Seismic_Neigh structure |
|
static |
Perform the estimation at the grid nodes in regular case
[in] | lmlayers | LMlayers structure |
[in] | flag_std | 1 if the estimation error must be calculated |
[in] | c00 | Variance for target |
[in] | a | L.H.S. (square) inverted matrix |
[in] | b | Working vector (Dimension = neq) |
[in] | dual | Dual vector |
[in] | wgt | Working array (Dimension = neq) |
[out] | estim | Estimated value |
[out] | stdev | Standard deviation of estimation error |
|
static |
Perform the Kriging
[in] | db | Grid Db structure |
[in] | ngh | Current ST_Seismic_Neigh structure |
[in] | flag_std | 1 for the calculation of the St. Dev. |
[in] | nred | Reduced number of equations |
[in] | flag | Array giving the flag |
[in] | wgt | Array containing the Kriging weights |
[in] | rhs | Array containing the R.H.S. member |
[in] | var0 | Array containing the C00 terms |
[in] | iatt_est | Array of pointers to the kriged result |
[in] | iatt_std | Array of pointers to the variance of estimation |
|
static |
Establish the Kriging R.H.S.
[in] | ngh | Current ST_Seismic_Neigh structure |
[in] | model | Model structure |
[in] | nfeq | Number of drift condition per variable |
[in] | nred | Reduced number of equations |
[in] | flag | Array giving the flag |
[out] | rhs | Array containing the Kriging R.H.S. |
|
static |
|
static |
Establish the Kriging Weights
[in] | ngh | Current ST_Seismic_Neigh structure |
[in] | nred | Reduced number of Kriging equations |
[in] | flag | Array giving the flag |
[in] | lhs | Array of Kriging L.H.S. |
[in] | rhs | Array of Kriging R.H.S. |
[out] | wgt | Array containing the Kriging Weights |
|
static |
Evaluate the sill matrix for a given lag
[in] | lmlayers | LMlayers structure |
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | vorder | Vario_Order structure |
[in] | nlayers | Number of layers |
[in] | ifirst | Index of the first pair (included) |
[in] | ilast | Index of the last pair (excluded) |
[in] | zval | Array containing the sample values |
[out] | nval | Number of relevant pairs |
[out] | distsum | Average distance |
[out] | stat | Working array (Dimension: nlayers * nlayers) |
[out] | phia | Working array for proportions (Dimension: nlayers) |
[out] | phib | Working array for proportions (Dimension: nlayers) |
[out] | atab | Working array (Dimension: nhalf * nhalf) |
[out] | btab | Working array (Dimension: nhalf) |
|
static |
Exit from the gstlearn library (not killing the encapsulation if any)
|
static |
Expand the joins at each cell in its vicinity, the radius is given per pixel in the array 'tab1'
[in] | flag_size | when 0, the norder pixels are painted with 1 when 1, the border pixels report the border thckness |
[in] | dbgrid | Descriptor of the grid parameters |
[in] | tab1 | Array containing expansion radius |
[in] | indg0 | Array used for encoding/decoding |
[in] | indg | Array used for encoding/decoding |
[in] | tab2 | Returned array |
Extracts an output array from the the center of the image
[in] | image | SPIMG structure |
[out] | iatt | Rank of the output attribute |
|
static |
Load the subgrid from the Input Db
[in] | verbose | Verbose flag |
[in] | flag_ffff | 1 replace masked values by 0 0 replace masked values by FFFF |
[in] | iech0 | Rank of the output grid cell |
[in] | nech0 | Number of cells of the output grid |
[in] | ntot | Dimension of arrays 'numtab1' and 'valtab1' |
[in] | dbgrid | Db for the input grid |
[in] | ind0 | Origin of the Output Db within the Input Db |
[in] | nxyz | Mesh of the Output Db (expressed in Input Db) |
[in] | ixyz | Indices of the starting node of the Output Db |
[out] | numtab1 | Array containing the sample count |
[out] | valtab1 | Array containing the sample value |
|
static |
Extract the information of the Trace
[in] | local_pgs | Local_Pgs structure |
Give the rank of a proportion for a given GRF and PGS
[in] | propdef | PropDef structure |
[in] | ifac | Rank of the facies |
[in] | ipgs | Rank of the GS |
|
static |
Add ncont linear constraints (AX=B) to the linear system (of size npar) used for quadratic optimization
[in] | acont | Matrix A |
[out] | grad | left hand-side of the system |
[out] | gauss | matrix of the system |
Find the cell linked to the probability
[in] | ntot | Number of possibilities |
[in] | tab | Array containing the sample value |
[in] | proba | Local probability |
Find the interval (among vector X) to which the sample (x) belongs
[in] | x | Target coordinate |
[in] | ndef | Number of defined samples |
[in] | X | Vector of coordinate of valued samples |
|
static |
|
static |
Find the location of the cell (within the possible cells) which is the closest to the target cell provided as argument
[in] | ntot | Number of possibilities |
[in] | tab | Array containing the sample value |
[in] | cell | Cell location |
|
static |
Display the current status for FOXLEG trace
|
static |
Display the title for FOXLEG trace
|
static |
Local searching function
[in] | correl | Correlation parameter |
[in] | user_data | User Data |
|
static |
Local searching function
[in] | correl | Correlation parameter |
[in] | user_data | User Data |
|
static |
Calculate the average
void gstlrn::st_get_closest_sample | ( | DbGrid * | dbgrid, |
Id | ig, | ||
Db * | dbpoint, | ||
Id | ip, | ||
Id | flag_aniso, | ||
Id | iatt_time, | ||
Id | iatt_angle, | ||
Id | iatt_scaleu, | ||
Id | iatt_scalev, | ||
Id | iatt_scalew, | ||
Id * | ipmin, | ||
double * | ddmin, | ||
1 & | dvect | ||
) |
Update minimum distance and rank of the corresponding sample
[in] | dbgrid | Descriptor of the grid parameters |
[in] | ig | Rank of the sample in the Grid file |
[in] | dbpoint | Descriptor of the point parameters |
[in] | ip | Rank of the sample in the Point file |
[in] | flag_aniso | 1 if anisotropic distance must be calculated |
[in] | iatt_time | Optional variable for Time shift |
[in] | iatt_angle | Optional variable for anisotropy angle (around Z) |
[in] | iatt_scaleu | Optional variable for anisotropy scale factor (U) |
[in] | iatt_scalev | Optional variable for anisotropy scale factor (V) |
[in] | iatt_scalew | Optional variable for anisotropy scale factor (W) |
[in,out] | ipmin | Rank of the Point sample |
[in,out] | ddmin | Minimum distance |
[out] | dvect | Working vector |
|
static |
Returns the coordinates of a point, given its pointer in 'out'
[in] | pt_out | Address in the image |
[in] | image | IMAGE structure |
[in] | flag_center | When TRUE, coordinates are epressed in central image |
[out] | ix | Location of the spill point grid node along X |
[out] | iy | Location of the spill point grid node along Y |
Count the number of pairs with the target facies
[in] | local_pgs | Local_Pgs structure |
[in] | ifac1 | First target facies (starting from 1) |
[in] | ifac2 | Second target facies (starting from 1) |
|
static |
Define the cutoffs along a vertical for a given trace
[in] | surfaces | Db containing the top, Bottom and Reference surfaces This file is optional |
[in] | rank | Rank of the trace within 'surfaces' |
[in] | iatt_top | Rank of attribute containing the Top Surface (or 0) |
[in] | iatt_bot | Arnk of the attribute containing the Bottom Surface (or 0) |
[in] | thickmin | Minimum thickness (if defined) |
[out] | cztop | Coordinate for the Top along Z (or TEST) |
[out] | czbot | Coordinate for the Bottom along Z (or TEST) |
|
static |
Derive the diffusion factor from the serie of squared distance as a function of time
Evaluate the distance matrix
[in] | data | Array of values |
[in] | nvar | Number of samples |
[in] | nech | Number of variables |
[out] | distmatrix | Matrix of distances |
|
static |
Return the external drift value at an input location for a target layer
Returns the coordinate of the data (at rank if rank >= 0) or of the target (at IECH_OUT if rank < 0)
[in] | loc_rank | Rank of the sample |
[in] | idim | Rank of the coordinate |
****************************************************************************/ *!
Returns the value of the variable (at rank if rank >= 0) or of the target (at IECH_OUT if rank < 0)
[in] | rank | Rank of the sample |
[in] | ivar | Rank of the variable |
|
static |
Internal function to find the keypair stack address or to create a new one if not already existing
[in] | keyword | Keyword |
|
static |
Returns the limits of the area of interest
[in] | db | input Db structure |
[in] | top | Elevation of the Top variable |
[in] | bot | Elevation of the bottom variable |
[out] | ideb | Index of the starting sample |
[out] | ifin | Index of the ending sample |
|
static |
Definition of the neighborhood
[in] | ideb | Index of the starting sample |
[in] | ifin | Index of the ending sample |
[in] | neigh_radius | Radius of the Neighborhood |
[out] | status | Neighborhood error status |
[out] | nbefore | Number of samples in neighborhood before target |
[out] | nafter | Number of samples in neighborhood after target |
Returns the maximum number of points per neighborhood
[in] | neigh | ANeigh structure |
Returns the number of drift functions
[in] | irf_rank | Rank of the Intrinsic Random Function (0 or 1) |
[in] | flag_ext | 1 if external drift must be used; 0 otherwise |
|
static |
Determine the mean and variance of drift coefficients
|
static |
Calculate the probability
|
static |
|
static |
Fill the proportion vector at a data location, up to the target layer
|
static |
Fill the proportion vector at a output location, up to the target layer
void gstlrn::st_get_trace_params | ( | traceHead * | Theader, |
Id * | iline, | ||
Id * | xline, | ||
double * | delta, | ||
double * | xtrace, | ||
double * | ytrace | ||
) |
Get Trace characteristics
|
static |
Calculate the variogram or covariance contribution
[in] | local_pgs | Local_Pgs structure |
[in] | flag_ind | 1 if the GRFs are independent |
[in] | iech1 | Rank of the first sample |
[in] | iech2 | Rank of the second sample |
[in] | ifac1 | Rank of the first facies |
[in] | ifac2 | Rank of the second facies |
[in] | iconf | Array of ranks of the discretized covariance |
[in] | cov | Covariance matrix |
Returns the value of the measurement error (at rank if rank >= 0) or of the target (at IECH_OUT if rank < 0)
[in] | rank | Rank of the sample |
[in] | ivar | Rank of the variable |
|
static |
Find the center of a cluster
Check if the sample belongs to the time slice
[in] | date | Date attached to a sample |
[in] | ntime | Number of time intervals |
[in] | time0 | Origin of the first time interval |
[in] | dtime | Time interval |
|
static |
Calculate the gradient
[in] | param | Current values of the parameters |
[in] | lower | Array of lower values |
[in] | upper | Array of upper values |
[in] | scale | Array of scaling values |
[in] | tabwgt | Array of weights |
[out] | Jr | Array of gradients |
[out] | param1 | Working array (Dimension: NPAR) |
[out] | param2 | Working array (Dimension: NPAR) |
[out] | tabmod1 | Working array (Dimension: NDAT) |
[out] | tabmod2 | Working array (Dimension: NDAT) |
|
static |
Fill an incomplete 1-D grid by linear interpolation from a set of valued samples
[in] | dbgrid | Db grid structure |
[in] | ivar | Rank of the variable to be filled |
[in] | ndef | Number of defined samples |
[in] | X | Vector of coordinate of valued samples |
[in] | Y | Vector of values of valued samples |
|
static |
Fill an incomplete 1-D grid by spline interpolation from a set of valued samples
[in] | dbgrid | Db grid structure |
[in] | ivar | Rank of the variable to be filled |
[in] | ndef | Number of defined samples |
[in] | X | Vector of coordinate of valued samples |
[in] | Y | Vector of values of valued samples |
|
static |
Calculate the extrapolation
[in] | ipos | Absolute grid index of the input grid node |
[in] | mode | Type of interpolation
|
[in] | nech | Number of samples in the neighborhood |
[in] | tabind | Index of the neighboring sample |
[in] | tabval | Value of the neighboring sample |
|
static |
Find the neighborhood of the current cell
[in] | ipos | Absolute grid index of the input grid node |
[in] | ndim | Space dimension |
[in] | radius | Radius of the neighborhood |
[out] | nech_loc | Number of samples in the neighborhood |
[out] | tabind | Index of the neighboring sample |
[out] | tabval | Value of the neighboring sample |
Converts from grid indices into sample index
[in] | ndim | Space dimension |
[in] | nxyz | Dimensions of the subgrid |
[in] | indg | Grid indices |
|
static |
Add an element to the Heap Sort Pile
[in] | p | pointer to the element to be added |
|
static |
Return the first element of the Heap Sort Pile and delete it
|
static |
Evaluates the highest elevation within the reservoir
|
static |
|
static |
|
static |
Procedure to allocates a NEW image The bitmap of the new image is set to zero
[in] | value | conventional value for initialization |
Procedure to free an already existig image
[in] | image | pointer to the image to be freed |
Calculate the indexes of each parameter
[in] | i | Index |
[in] | j | Index |
|
static |
Establish the covariance vector at target
[in] | dbsrc | Db structure containing Sources |
[in] | dbout | Db structure for target |
[in] | flag_source | If the result is the source, rather than diffusion |
[in] | model_dat | Model structure for the data |
[in] | distgs | Distance matrix between Target and Sources |
[in] | prodgs | Product of DistGS by CovSS |
|
static |
Establish the R.H.S. for Inhomogeneous Kriging
[in] | dbdat | Db structure containing Data |
[in] | dbsrc | Db structure containing Sources |
[in] | dbout | Db structure containing Targets |
[in] | flag_source | If the result is the source, rather than diffusion |
[in] | model_dat | Model structure for the data |
[in] | distps | Distance matrix between Data and Sources |
[in] | prodps | Product of DistPS by CovSS |
[in] | prodgs | Product of DistGS by CovSS |
|
static |
Generate a random rotation axis
[out] | ct | Cosine of the random rotation angle |
[out] | st | Sine of the random rotation angle |
[out] | a | Random direction vector |
|
static |
Initialize the parameters
[out] | corpgs | Local_CorPgs Structure |
|
static |
Interpolation of a uniformly-sampled complex function y(x) via a table of 8-coefficient interpolators
[in] | ntable | number of tabulated interpolation operators; ntable>=2 |
[in] | table | array of tabulated 8-point interpolation operators |
[in] | nxin | number of x values at which y(x) is input |
[in] | dxin | x sampling interval for input y(x) |
[in] | fxin | x value of first sample input |
[in] | yin | array of input y(x) values: yin[0] = y(fxin), etc. |
[in] | yinl | value used to extrapolate yin values to left of yin[0] |
[in] | yinr | value used to extrapolate yin values to right of yin[nxin-1] |
[in] | nxout | number of x values a which y(x) is output |
[in] | xout | array of x values at which y(x) is output |
[out] | yout | array of output y(x) values: yout[0] = y(xout[0]), etc. |
|
static |
Check if the first grid is a subgrid of the second one
Check if the field must be kept
[in] | flag_gaus | 1 gaussian results; otherwise facies |
[in] | flag_prop | 1 for facies proportion |
[in] | file | DATA or RESULT |
[in] | type | 0 for gaussian; 1 for facies; 2 for proportion |
Internal function to allocate the storage of a keypair
[in] | keypair | Keypair structure |
[in] | nrow | Number of rows |
[in] | ncol | Number of columns |
|
static |
Internal function to copy or check the attributes (append)
[in] | keypair | Keypair structure |
[in] | mode | 0 for creation and 1 for appending |
[in] | origin | 1 from C; 2 from R |
[in] | ncol | Number of columns |
Id gstlrn::st_krige_data | ( | Db * | db, |
Model * | model, | ||
double | beta, | ||
1 & | ranks1, | ||
1 & | ranks2, | ||
1 & | rother, | ||
Id | flag_abs, | ||
double * | data_est, | ||
double * | data_var | ||
) |
Perform the estimation at the data points
[in] | db | Db structure |
[in] | model | Model structure |
[in] | beta | Thresholding value |
[in] | ranks1 | Ranks of exact pivots |
[in] | ranks2 | Ranks of ACP pivots |
[in] | rother | Ranks of the idle samples |
[in] | flag_abs | 1 Modify 'daata_est' to store the estimation error |
[out] | data_est | Array of estimation at samples |
[out] | data_var | Array of estimation variance at samples |
Management of internal arrays used by kriging procedure
[in] | mode | 1 for allocation; -1 for deallocation |
[in] | nvar | Number of variables to be calculated |
[in] | model | Model structure |
[in] | neigh | ANeigh structure |
Management of internal arrays used by kriging procedure
[in] | mode | 1 for allocation; -1 for deallocation |
[in] | nech | Number of samples in the Input Db (only used for the neighborhood search, if any) |
[in] | nmax | Maximum number of samples per neighborhood |
[in] | nvar | Number of variables (to be calculated) |
[in] | nfeq | Number of drift equations |
|
static |
Print the kriging weights
[in] | status | Kriging error status |
[in] | nvar | Number of variables (output) |
[in] | nvar_m | Number of variables in the Model |
[in] | nfeq | Number of drift equations |
[in] | nbgh_ranks | Vector of selected samples |
[in] | nred | Reduced number of equations |
[in] | icase | Rank of the PGS or GRF |
[in] | flag | Flag array |
[in] | wgt | Array of Kriging weights |
|
static |
Check if vector is out of range by comparing each component to the maximum value defined per direction
[in] | ndim | Space dimension |
[in] | dvect | Vector |
[in] | distType | Type of distance for calculating maximum distance 1 for L1 and 2 for L2 distance |
[in] | dmax | Array of maximum distances (optional) |
|
static |
Calculates the Kriging L.H.S.
[in] | lmlayers | LMlayers structure |
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | model | Model |
[in] | seltab | Number of sample definition (0, 1 or 2) |
[out] | prop1 | Working array (Dimension: nlayers) |
[out] | prop2 | Working array (Dimension: nlayers) |
[out] | covtab | Working array (Dimension = nlayers * nlayers) |
[out] | a | L.H.S. (square) matrix |
[out] | acov | L.H.S. (square) covariance matrix |
|
static |
Establish the L.H.S. of the Kriging system in the case of the discretized covariances
[in] | covdd | Array of discretized covariance (data-data) |
[in] | cov_radius | Radius of the covariance array |
[in] | flag_sym | 1 for symmetrized covariance |
[in] | nfeq | 0 or 1 drift function(s) |
[in] | nbefore | Number of samples in neighborhood before target |
[in] | nafter | Number of samples in neighborhood after target |
[in] | neq | Number of kriging equations |
|
static |
Establish the kriging L.H.S. using discretized covariances
[in] | nech | Number of samples in the Neighborhood |
[in] | nfeq | Number of drift functions |
[in] | nei_ss | Array of dimensions of the Neighborhood |
[in] | nei_nn | Array of radius of the Neighborhood |
[in] | cov_ss | Array of dimensions of the Covariance array |
[in] | cov_nn | Array of radius of the Covariance array |
[in] | nei_cur | Array containing the current neighborhood |
[in] | cov_tot | Array containing the total variable covariance |
[in] | nugget | Amount of additional Nugget Effect |
|
static |
Calculates the L.H.S. for one data
[in] | lmlayers | LMlayers structure |
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | model | Model |
[in] | seltab | Number of sample definition (0, 1 or 2) |
[in] | iech0 | Rank of the target sample (used for ext. drift) |
[in] | ilayer0 | Rank of the layer of interest (Starting from 1) |
[in] | coor | Coordinates of the data |
[in] | prop0 | Working array at first point (Dimension: nlayers) |
[out] | prop2 | Working array (Dimension: nlayers) |
[out] | covtab | Working array (Dimension = nlayers * nlayers) |
[out] | b | R.H.S. vector (Dimension = neq) |
|
static |
Interpolate linearly the vector of parameters
[in] | mscur | Current minimization value |
[in] | param | Current values of the parameters |
[in] | acont | Array of constraints |
[in] | tabexp | Array of values at control points |
[in] | tabwgt | Array of weights at control points |
[in] | bords | Array containing the bounds |
[in] | grad | Gradient matrix |
[out] | msaux | New minimization value |
[out] | paramaux | New vector of parameters |
[out] | residuals | Array of residuals |
[out] | tabmod1 | Working array (Dimension: NDAT) |
|
static |
Load the vertices in a segment and check if the segment is masked
[in] | dbgrid | Db structure |
[in] | ipos | Position of newly created mesh information |
[in] | ix1 | Grid index along X for the vertex #1 |
[in] | ix2 | Grid index along X for the vertex #2 |
[out] | mesh | Array of triangle ranks (dimension = 3) |
[out] | order | Array of relative ranks |
|
static |
Load the vertices in a tetrahedron and check if the tetrahedron is masked
[in] | dbgrid | Db structure |
[in] | mesh | Array of triangle ranks (dimension = 4) |
[in] | order | Array of relative ranks |
[in] | ipos | Position of newly created mesh information |
[in] | ix1 | Grid index along X for the vertex #1 |
[in] | iy1 | Grid index along Y for the vertex #1 |
[in] | iz1 | Grid index along Z for the vertex #1 |
[in] | ix2 | Grid index along X for the vertex #2 |
[in] | iy2 | Grid index along Y for the vertex #2 |
[in] | iz2 | Grid index along Z for the vertex #2 |
[in] | ix3 | Grid index along X for the vertex #3 |
[in] | iy3 | Grid index along Y for the vertex #3 |
[in] | iz3 | Grid index along Z for the vertex #3 |
[in] | ix4 | Grid index along X for the vertex #4 |
[in] | iy4 | Grid index along Y for the vertex #4 |
[in] | iz4 | Grid index along Z for the vertex #4 |
|
static |
Processing a Trace
|
static |
Load the vertices in a triangle and check if the triangle is masked
[in] | dbgrid | Db structure |
[in] | ipos | Position of newly created mesh information |
[in] | ix1 | Grid index along X for the vertex #1 |
[in] | iy1 | Grid index along Y for the vertex #1 |
[in] | ix2 | Grid index along X for the vertex #2 |
[in] | iy2 | Grid index along Y for the vertex #2 |
[in] | ix3 | Grid index along X for the vertex #3 |
[in] | iy3 | Grid index along Y for the vertex #3 |
[out] | mesh | Array of triangle ranks (dimension = 3) |
[out] | order | Array of relative ranks |
|
static |
Locate a set of points on a grid
[in] | np | Number of samples |
[in] | coords | Array of coordinates (dimension: ndim, np) |
[in] | db_grid | descriptor of the grid parameters |
[out] | tab | Output array (Dimension: Number of discretized points) |
|
static |
Locate a set of points on a grid
[in] | db_point | descriptor of the point parameters |
[in] | db_grid | descriptor of the grid parameters |
[out] | coor | Working array |
[out] | tab | Output array (Dimension: Number of point samples) |
|
static |
Returns the absolute grid node absolute index which is the closest to a given sample of a Db In the case of same input and output file, simply return 'iech'
|
static |
Make all lags active
[out] | vario | Vario structure |
|
static |
Make some lags inactive
[out] | vario | Vario structure |
|
static |
Manage the Local_CorPgs structure
[in,out] | local_corpgs | Local_CorPgs structure |
|
static |
Manage the Local_Pgs structure
[in] | mode | 0 initialization; 1 allocation; -1 deallocation |
[in,out] | local_pgs | Local_Pgs structure |
[in] | db | Db structure |
[in] | rule | Lithotype Rule definition |
[in] | vario | Vario structure |
[in] | varioind | Indicator Vario structure |
[in] | model | Model structure |
[in] | propdef | PropDef structure |
[in] | flag_stat | 1 for stationary; 0 otherwise |
[in] | flag_facies | 1 when processed on facies; 0 otherwise |
[in] | flag_dist | 1 if distances are stored; 0 otherwise |
[in] | ngrf | Number of GRFs |
[in] | nfacies | Number of facies |
[in] | calcul_type | Type of the calculation (covariance, variogram, ...) |
|
static |
Manage the Local_TracePgs structure
[in,out] | local_tracepgs | Local_TracePgs structure |
Look for an already registered keypair
[in] | keyword | Keyword |
[in] | flag_exact | 1 if Exact keyword matching is required |
|
static |
Combine the simulations of the max-stable process
[in] | dbout | Output Db structure |
[in] | scale | Scaling factor for the new simulation |
[in] | iter0 | Rank of the current iteration |
[in] | iptrg | Pointer to the newly simulated outcome |
[in] | iptrv | Pointer to the max-stable outcome |
[in] | iptrr | Pointer to the max-stable rank outcome |
[in,out] | last | Rank of Iteration where the last grid node is covered |
|
static |
Mask the grid nodes whose value is already too large
[in] | dbout | Output Db structure |
[in] | seuil | Threshold |
[in] | scale | Scaling factor for the new simulation |
[in] | iptrv | Pointer to the max-stable outcome |
[in] | iptrs | Pointer to the current selection |
|
static |
Perform the arithmetic mean
[in] | idim | Direction of calculation |
[in] | nxyz1 | Dimensions of the initial subgrid |
[in] | nxyz2 | Dimensions of the final subgrid |
[out] | numtab1 | Array containing the sample count |
[out] | numtab2 | Array containing the sample count |
[out] | valtab1 | Array containing the sample value |
[out] | valtab2 | Array containing the sample value |
|
static |
Perform the harmonic mean
[in] | idim | Direction of calculation |
[in] | nxyz1 | Dimensions of the initial subgrid |
[in] | nxyz2 | Dimensions of the final subgrid |
[out] | numtab1 | Array containing the input sample count |
[out] | numtab2 | Array containing the output sample count |
[out] | valtab1 | Array containing the input sample value |
[out] | valtab2 | Array containing the output sample value |
|
static |
Migrate the seed to one of the available neighboring cells
[in] | ndim | Space dimension |
[in] | n_nbgh | Number of neighboring cells |
[in] | nxyz | Dimensions of the subgrid |
[in] | nbgh | Array giving the neighboring cell location |
[in] | valwrk | Working array (Dimension: n_nbgh) |
[in] | valtab0 | Array containing the sample value |
[in] | locwrk | Working array for shifted seed positions |
[in,out] | loccur | Current seed position |
|
static |
Minimization under constraints
[in] | ind_util | List of retained constraint indices |
[in] | bords_red | Reduced array containing the bounds |
[in] | ai_red | Reduced AI matrix |
[in] | grad_red | Reduced Gradient matrix |
[in] | gauss_red | Reduced Gauss matrix |
[out] | consts | Array of constraints |
[out] | hgnc | Working vector |
[out] | hgnadm | Working array |
[out] | flag_active | Array of indices with zero valid constraint |
[out] | flag_actaux | Array of indices with negative valid constraint |
[out] | a | Minimization L.H.S. matrix |
[out] | b1 | Minimization R.H.S. matrix |
[out] | b2 | Minimization R.H.S. matrix |
[out] | b3 | Minimization R.H.S. matrix |
[out] | temp | Working array |
[out] | acont | Constraint array |
|
static |
Calculate the minimum of the criterion and update hgnadm
[in] | flag | Array of indices with negative valid constraint |
[in] | bords_red | Reduced array containing the bounds |
[in] | top | Calculated top of the fraction |
[in] | bot | Calculated bottom of the fraction |
[in] | hgnc | Hgnc array |
[out] | hgnadm | Admissible Hgn array |
|
static |
Compute least-squares optimal sinc interpolation coefficients.
[in] | d | fractional distance to interpolation point; 0.0<=d<=1.0 |
[in] | lsinc | length of sinc approximation; lsinc%2==0 and lsinc<=20 |
[out] | sinc | array[lsinc] containing interpolation coefficients |
|
static |
|
static |
Perform the multi-linear interpolation from a regular grid Db
[in] | dbgrid | descriptor of the grid parameters |
[in] | iatt | rank of the target variable in dbgrid |
[in] | distType | Type of distance for calculating maximum distance 1 for L1 and 2 for L2 distance |
[in] | dmax | Array of maximum distances (optional) |
[in] | coor | Coordinates of the target point |
|
static |
st_mvndfn
|
static |
Integrand subroutine
|
static |
st_mvndnt
|
static |
Multivariate Normal Probability (local function)
|
static |
Normal distribution probabilities accurate to 1.e-15. Z = no. of standard deviations from the mean. Based upon algorithm 5666 for the error function, from: Hart, J.F. et al, 'Computer Approximations', Wiley 1968
|
static |
Check if two neighborhood patterns are similar
|
static |
Find the neighborhood of a pixel
Get the rank of the next sample just above the target To speed up the process, this operation is performed starting from the rank assigned to the previous sample (this assumes that samples are treated by increasing coordinate)
ip0_init | Rank of the previous sample |
rank | Array of sample ordering |
xtab | Array of sample coordinates |
xtarget | Target coordinate |
|
static |
|
static |
Calculate the Norm of the HGN vector
[in] | hgn | Working vector |
[in] | scale | Scaling values |
|
static |
|
static |
Optimize the lag
[in] | local_pgs | Local_Pgs structure |
[in] | tolsort | Tolerance value |
[in] | new_val | Flag indicating if parameters must be initialized |
Expand the vector of parameters into C1, C12, C21 and C2 according to the constraints
[in] | local_pgs | Local_Pgs structure |
[in] | igrf | Rank of the first variable |
[in] | jgrf | Rank of the second variable |
[in] | idir | positive (1) or negative (-1) distance |
|
static |
Produces the normal deviate Z corresponding to a given lower tail area of P. The hash sums below are the sums of the mantissas of the coefficients. They are included for use in checking transcription.
|
static |
Calculate the number of new inactive constraints
[in] | npar | Current number of parameters |
[in] | bords | Array containing the bounds |
[in] | ai | AI matrix |
[in] | hgnc | Resulting hgnc array |
[out] | flag | Working array |
[out] | temp | Working array |
|
static |
|
static |
Internal print from the library
[in] | string | Message to be printed |
|
static |
Internal function for printing the Binary File Header
[in] | Bheader | Pointer to the Binary File header |
|
static |
|
static |
Print the characteristics of the resulting grid
[in] | def_grid | Pointer to the Grid structure |
Print the position (debug option)
[in] | ndim | Space dimension |
[in] | iseed | Rank of the trajectory (from 0) |
[in] | iter | Rank of the iteration (from 0) |
[in] | tab | Array containing the coordinates of the position |
|
static |
Printout
Internal function for printing the Trace Header
[in] | Theader | Pointer to the Trace Header contents |
[in] | numTrace | Rank of the trace |
|
static |
Print the number of samples per cluster
[in] | nclusters | Number if clusters |
[in] | nech | Number of samples |
[in] | clusterid | Array of cluster number for each sample |
Print the list of cluster per sample
[in] | nclusters | Number if clusters |
[in] | nech | Number of samples |
[in] | clusterid | Array of cluster number for each sample |
Check if the proportion has changed since the previous usage and store the current proportions for future comparison
[in] | propdef | PropDef structure |
|
static |
Set the (non-stationary) proportions
[in] | propdef | PropDef structure |
[in] | db | Db input structure |
[in] | iech | Rank of the data in the input Db |
[in] | isimu | Rank of the simulation (EProcessOper::CONDITIONAL) |
[in] | nbsimu | Number of simulations |
[out] | jech | Rank of the auxiliary data in the input Db |
Locate the current proportions
[in] | propdef | PropDef structure |
[in] | ifac_ref | Conditional (first variable) facies (Only used for EProcessOper::CONDITIONAL) |
Transform the proportions (from CST to WRK)
[in] | propdef | PropDef structure |
|
static |
Calculate the quantile for a given array
[in] | dbout | Output Db structure |
[in] | proba | Probability |
[out] | sort | Sorting array |
Initial random assignment of samples to clusters
[in] | nclusters | Number if clusters |
[in] | nech | Number of samples |
[out] | clusterid | Array of cluster number for each sample |
|
static |
Allocate a vector of sample ranks excluding already selected pivots
[in] | nech | Number of samples |
[in] | ranks1 | Ranks of exact pivots |
[in] | ranks2 | Ranks of ACP pivots |
|
static |
Swaps rows and columns P and Q in situ, with P <= Q
|
static |
Read a string from the Standard Input
[in] | prompt | String to be prompted to ask the question |
[in] | buffer | Array where the Input string is stored |
|
static |
Check if a sample must be kept or not
|
static |
|
static |
Internal function for reading the File header
[in] | file | Pointer to the File stream |
[in] | verbOption | Verbose option |
[out] | NPerTrace | Number of samples per trace |
[out] | delta | Distance between two consecutive vertical samples |
|
static |
Update the dimensions and calculate the current number of cells
|
static |
Initialize statistics
|
static |
Update statistics
|
static |
Reject trace due to trace boundary specifications
|
static |
Manage the relative position array
[in] | neq | Number of kriging equations |
|
static |
|
static |
|
static |
Calculate the residuals between the model and the experimental
Print the results
[in] | flag_xvalid | when cross-validation option is switched ON 1: Z*-Z and (Z*-Z)/S* 2: Z* and S* > 0 for ONE Point out < 0 for excluding information with same code |
[in] | nvar | Number of variables |
[in] | status | Kriging error status |
|
static |
Reset the Local_TracePgs structure
[in,out] | local_pgs | Local_TracePgs structure |
|
static |
Local searching function for rho
[in] | rho | rho parameter |
[in] | user_data | User Data |
|
static |
Calculates the Kriging R.H.S.
[in] | lmlayers | LMlayers structure |
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | model | Model |
[in] | coor | Coordinates of the target sample |
[in] | seltab | Number of sample definition (0, 1 or 2) |
[in] | iechout | Rank of the target sample |
[in] | ilayer0 | Rank of the layer of interest (Starting from 1) |
[out] | prop0 | Working array (Dimension: nlayers) |
[out] | prop2 | Working array (Dimension: nlayers) |
[out] | covtab | Working array (Dimension = nlayers * nlayers) |
[out] | b | R.H.S. vector (Dimension = neq) |
|
static |
Establish the R.H.S. of the Kriging system in the case of the discretized covariances
[in] | covd0 | Array of discretized covariance (data-data) |
[in] | cov_radius | Radius of the covariance array |
[in] | flag_sym | 1 for symmetrized covariance |
[in] | nfeq | 0 or 1 drift function(s) |
[in] | nbefore | Number of samples in neighborhood before target |
[in] | nafter | Number of samples in neighborhood after target |
[in] | neq | Number of equations |
|
static |
Establish the kriging R.H.S. using discretized covariances
[in] | nech | Number of samples in the neighborhood |
[in] | nfeq | Number of drift functions |
[in] | nei_ss | Array of dimensions of the Neighborhood |
[in] | nei_nn | Array of radius of the Neighborhood |
[in] | cov_ss | Array of dimensions of the Covariance array |
[in] | cov_nn | Array of radius of the Covariance array |
[in] | nei_cur | Array containing the current neighborhood |
[in] | cov_res | Array containing the residual variable covariance |
|
static |
PRUPOSE: Internal function
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Add the sample to the neighborhood
[in] | db | Grid Db structure |
[in] | iatt_z1 | Address of the first data attribute |
[in] | iatt_z2 | Address of the second data attribute |
[in] | flag_test | Flag to check if the sample must be added
|
[in] | ix | Rank of the trace |
[in] | iz | Rank of the target sample within the target trace |
[in,out] | ngh | ST_Seismic_Neigh structure |
|
static |
Remove the sample which coincides with the target site from the neighborhood
[in,out] | ngh | ST_Seismic_Neigh structure |
|
static |
Converts from sample index into grid indices
[in] | ndim | Space dimension |
[in] | ntot | Total number of cells in subgrid |
[in] | nxyz | Dimensions of the subgrid |
[in] | iech | Rank of the sample |
[out] | indg | Grid indices |
|
static |
Establishing the kriging system with exact and ACP points
[in] | db | Db structure |
[in] | model | Model structure |
[in] | beta | Thresholding value |
[in] | ranks1 | Ranks of samples (exact) |
[in] | ranks2 | Ranks of samples (ACP) |
[in] | rother | Ranks of the idle samples (modified by routine) |
[out] | ntot_arg | Number of pivots |
[out] | nutil_arg | Number of active samples |
[out] | rutil | Rank of the active samples |
[out] | tutil | Returned array for the U array |
[out] | invsig | Returned array for Inverse Sigma |
Internal function to scale the coordinate by the scaling factor
[in] | coor | Integer value containing the input coordinate |
[in] | scale | Integer value giving the scale factor |
|
static |
Loads the values of a Db column in the output array Completes undefined values
[in] | nz | Number of elements in the column |
[in] | shift | The shift of the trace before convolution |
[in] | val_before | Replacement value for undefined element before first defined sample |
[in] | val_middle | Replacement value for undefined element between defined samples |
[in] | val_after | Replacement value for undefined element after last defined sample |
[in] | tab0 | Input array (Dimension: nz) |
[out] | tab1 | Output array (Dimension: nz) |
|
static |
Converts an impedance into a contrast
[in] | nz | Number of elements in the column |
[out] | tab | Output array (Dimension: nz) |
|
static |
Compute the convolution of two input vector arrays
[in] | nx | length of x array |
[in] | ix0 | sample index of first x |
[in] | x | array[nx] to be convolved with y |
[in] | ny | length of y array |
[in] | iy0 | sample index of first y |
[in] | y | array[ny] with which x is to be convolved |
[in] | nz | length of z array |
[in] | iz0 | sample index of first z |
[out] | z | array[nz] containing x convolved with y |
|
static |
Debugging printout for the seismic time-to-depth conversion
[in] | rankz | Rank for Depth (0 for Input; 1 for Output) |
[in] | nz | number of depth samples |
[in] | z0 | first depth value |
[in] | dz | depth sampling interval |
[in] | rankt | Rank for Time (0 for Input; 1 for Output) |
[in] | nt | number of time samples |
[in] | t0 | first time value |
[in] | dt | time sampling interval |
[in] | vmin | Minimum velocity value |
[in] | vmax | Maximum velocity value |
|
static |
Do unary arithmetic operation on traces
[in] | db | Db structure |
[in] | oper | Operator flag (ENUM_SEISMICS) |
[in] | natt | Number of seismic attributes |
[in] | nt | Number of samples on input trace |
[in] | iatt_in | Address of the first input attribute |
[in] | iatt_out | Address of the first output attribute |
[in] | dt | time sampling interval |
|
static |
Resample from time to depth
[in] | db_t | Time Db |
[in] | iatt_t | Address of the first variable of the Time Db |
[in] | nt | Number of meshes of the Time Db |
[in] | t0 | First Time |
[in] | t1 | Last Time |
[in] | dt | Mesh of the Time Db |
[in] | db_z | Depth Db |
[in] | iatt_z | Address of the first variable of the Depth Db |
[in] | nz | Number of meshes of the Depth Db |
[in] | z0 | First Depth |
[in] | z1 | Last Depth |
[in] | dz | Mesh of the Depth Db |
[in] | db_v | Velocity Db |
[in] | iatt_v | Address of the velocity variable in Depth Db |
[in] | natt | Number of seismic attributes |
[out] | tz | Working array (dimension: nt) |
[out] | zt | Working array (dimension: nz) |
[out] | at | Working array (dimension: nt) |
[out] | az | Working array (dimension: nz) |
|
static |
Defining some wavelets for modeling of seimic data
[in] | verbose | 1 for a verbose output; 0 otherwise |
[in] | type | Type of the wavelet (ENUM_WAVELETS) |
[in] | ntw | half-length of the wavelet excluding center (samples) |
[in] | tindex | time index to locate the spike (Spike) |
[in] | dt | time step |
[in] | fpeak | peak frequency of the Ricker wavelet |
[in] | period | wavelet period (s) (Ricker) |
[in] | amplitude | wavelet amplitude (Ricker) |
[in] | distort | wavelet distortion factor (Ricker) |
|
static |
Resample from depth to time
[in] | db_z | Depth Db |
[in] | iatt_z | Address of the first variable of the Depth Db |
[in] | nz | Number of meshes of the Depth Db |
[in] | z0 | First Depth |
[in] | dz | Mesh of the Depth Db |
[in] | db_t | Time Db |
[in] | iatt_t | Address of the first variable of the Time Db |
[in] | nt | Number of meshes of the Time Db |
[in] | t0 | First Time |
[in] | t1 | Last Time |
[in] | dt | Mesh of the Time Db |
[in] | db_v | Velocity Db |
[in] | iatt_v | Address of the velocity variable in Depth Db |
[in] | natt | Number of seismic attributes |
[out] | tz | Working array (dimension: nt) |
[out] | zt | Working array (dimension: nz) |
[out] | at | Working array (dimension: nt) |
[out] | az | Working array (dimension: nz) |
|
static |
Define the bounds for Gaussian integrals and store them in relevant variables
|
static |
Compute the modif matrix
[out] | corpgs | Local_CorPgs structure |
|
static |
Set the model-type (opt_correl)
[in] | opt | The model-type to set |
[out] | corpgs | Local_CorPgs structure |
|
static |
Modify rho where it is needed
[in] | rho | Rho value |
[out] | local_pgs | Local_Pgs structure |
|
static |
|
static |
Perform the Simulation
[in] | db | Grid Db structure |
[in] | ix0 | Rank of the target trace |
[in] | iz0 | Rank of the target sample within the target trace |
[in] | ngh | Current ST_Seismic_Neigh structure |
[in] | nbsimu | Number of simulations |
[in] | nred | Reduced number of equations |
[in] | flag | Array giving the flag |
[in] | wgt | Array containing the Kriging weights |
[in] | rhs | Array containing the R.H.S. member |
[in] | c00 | Array containing the C00 terms |
[in] | iatt_sim | Array of pointers to the simulated results |
|
static |
Initialize the global values
|
static |
Solve the direct minimization problem
[in] | npar | Current number of parameters |
[in] | grad | Gradient matrix |
[in] | gauss | Gauss matrix |
[in] | hgnc | Resulting hgnc array |
[in] | flaginvsign | if 1, the result is multiplied by -1 |
|
static |
Calculate the euclidean distance between current and initial seed locations
[in] | orient | Diffusion orientation (0 or the space rank dimension) |
[in] | ndim | Space dimension |
[in] | locini | Initial seed positions |
[in] | loccur | Current seed positions |
|
static |
Store an additional reference point
|
static |
Calculate the Drift and subtract it from the Data
[in] | lmlayers | LMlayers structure |
[in] | verbose | 1 for a verbose option |
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | seltab | Number of sample definition (0, 1 or 2) |
[out] | zval | The data vector (Dimension: neq) |
Suppresses the added samples
[in] | db | Db structure |
[in] | nech | initial number of samples |
|
static |
Eliminate the useless constraints
[in] | bords | Array containing the bounds |
[in] | ai | AI matrix |
[in] | grad | Gradient matrix |
[in] | gauss | Gaussian matrix |
[in] | hgnc | hgnc array |
[out] | ind_util | List of retained constraint indices |
[out] | bords_red | Reduced Bounds array |
[out] | ai_red | Reduced AI matrix |
[out] | grad_red | Reduced Gradient matrix |
[out] | gauss_red | Reduced Gauss matrix |
[out] | flag1 | Working array |
[out] | flag2 | Working array |
[out] | temp | Working array |
|
static |
Identify Bottom and Top surfaces (if present)
[in] | verbOption | Verbose Option |
[in] | surfaces | Db containing the top, Bottom and Reference surfaces This file is optional |
[in] | name_bot | Name of variable containing the Bottom Surface (or empty) |
[in] | flag_bot | Flag for defining a Bottom surface |
[in] | name_top | Name of variable containing the Top Surface (or empty) |
[in] | flag_top | Flag for defining a Top surface |
[in] | aux_top | Name of the Auxiliary Top variable (optional) |
[in] | aux_bot | Name of the Auxiliary Bottom variable (optional) |
[out] | iatt_top | Attribute index for the Top surface (or -1) |
[out] | iatt_bot | Attribute index for the Bottom surface (or -1) |
[out] | iaux_top | Attribute index for the Top Auxiliary variable (or -1) |
[out] | iaux_bot | Attribute index for the Bottom Auxiliary variable (or -1) |
|
static |
|
static |
Routines for reading / decoding information stored in SEGY file
|
static |
|
static |
|
static |
|
static |
Checks if a current element can be processed according to its neighborhood status
[in] | pt_out | pointer to the current element |
[in] | pt_vois | pointer to the neighboring element |
|
static |
Perform the ultimate task for the regular grid
|
static |
Update the constraints when no move has been performed
[in] | bords | Array containing the bounds |
[in] | ind_util | List of retained constraint indices |
[out] | bords_red | Reduced Bounds array |
|
static |
Update the following matrices according to constraints on model
[in] | corpgs | Local_CorPgs structure |
[in,out] | Grad | Vector of gradients (Dimension = npar) |
[in,out] | Hess | Matrix of Hessian (Dimension = npar * npar) |
|
static |
Update the following matrices according to constraints on model
[in] | corpgs | Local_CorPgs structure |
[in,out] | Grad | Vector of gradients (Dimension = npar) |
[in,out] | Hess | Matrix of Hessian (Dimension = npar * npar) |
[in,out] | JJ | Matrix of t(JJ) * JJ (Dimension = npar * npar) |
|
static |
Update the quantities needed for calculating the linear regression amongst a set of 2-D points
[in] | x | X value |
[in] | y | Y value |
[in,out] | count | Number of samples |
[in,out] | sum_x | Sum of the X variable |
[in,out] | sum_y | Sum of the Y variable |
[in,out] | sum_xx | Sum of the X*X variable |
[in,out] | sum_xy | Sum of the X*Y variable |
|
static |
Establish the theoretical variance of the simple and cross-variograms of the indicators in the non-stationary case
[in] | local_pgs | Local_Pgs structure |
|
static |
Establish the theoretical variance of the simple and cross-variograms of the indicators in the stationary case
[in] | local_pgs | Local_Pgs structure |
|
static |
Calculate the average squared distance as a function of the iteration
[in] | orient | Diffusion orientation (0 or the space rank dimension) |
[in] | ndim | Space dimension |
[in] | ntot | Total number of cells in the subgrid |
[in] | nseed | Number of seeds |
[in] | niter | Number of iterations |
[in] | n_nbgh | Number of neighboring cells |
[in] | flag_save | If the array must be saved for keypair |
[in] | probtot | Total probability of joins |
[in] | nxyz | Dimensions of the subgrid |
[in] | nbgh | Array giving the neighboring cell location |
[in] | tabini | Array of initial seed positions Dimension: nseed * ndim |
[in] | tabcur | Array of current seed positions Dimension: nseed * ndim |
[in] | tabwrk | Array of shifted seed positions Dimension: ndim |
[in] | valwrk | Working array Dimension: n_nbgh |
[in] | valtab0 | Array containing the sample value |
[in] | verbose | Verbose option |
[out] | cvdist2 | Array of squared distances by iteration |
[out] | trsave | Array of trajectories (saved only if defined) |
|
static |
Upscale the variable defined on a subgrid into one value
[in] | orient | Upscaling orientation (0 to 2) |
[in] | nxyz | Dimensions of the subgrid |
[in] | flag_save | If the array must be saved for keypair |
[out] | numtab0 | Array containing the sample count |
[out] | numtab1 | Array containing the sample count |
[out] | numtab2 | Array containing the sample count |
[out] | valtab0 | Array containing the sample value |
[out] | valtab1 | Array containing the sample value |
[out] | valtab2 | Array containing the sample value |
[out] | res1 | First result (Harmonic first) |
[out] | res2 | First result (Arithmetic first) |
|
static |
Evaluate the variogram of the underlying GRFs (assuming the two GRFs of the PGS model are correlated)
[in] | local_pgs | Local_Pgs structure |
[in] | idir | Rank of the direction |
|
static |
Performing the variogram calculations (stationary case)
[in] | vario | Vario structure for the GRFs to be filled |
[in] | local_pgs | Local_Pgs structure |
[in] | ngrf | Number of GRFs |
|
static |
Evaluate the variogram of one underlying GRF
[in] | local_pgs | Local_Pgs structure |
[in] | idir | Rank of the direction |
|
static |
Dump the contents of the covariance maps
[in] | file | FILE structure where the dmp must be produced |
[in] | ix0 | Rank of the trace along X (-1 for the reference) |
[in] | iy0 | Rank of the trace along Y (-1 for the reference) |
[in] | cov_ss | Array of dimensions of the Covariance array |
[in] | cov_nn | Array of radius of the Covariance array |
[out] | num_tot | Array containing the numb er of pairs |
[out] | cov_tot | Array containing the covariance of the total variable |
|
static |
Performing the variogram calculations in the non-stationary case
[in] | local_pgs | Local_Pgs structure |
|
static |
Performing the variogram calculations in the stationary case
[in] | local_pgs | Local_Pgs structure |
|
static |
Check that the arguments are correct
[in] | flag_db | 1 if the input Db must be provided -1 if it is optional 0 if the Db is not tested |
[in] | flag_rule | 1 if the Rule must be defined |
[in] | flag_varioind | 1 if the Indicator Variogram must be defined |
[in] | db | Db structure |
[in] | dbprop | Db Grid used for proportions (non-stationary) |
[in] | vario | Vario structure for the GRFs to be filled |
[in] | varioind | Vario structure for Indicator |
[in] | rule | Lithotype Rule definition |
|
static |
Manage local variables for variopgs calculation (Non-stationary case)
[in] | mode | Type of usage 1 for allocation 0 for valuation (rule dependent) -1 for deallocation |
[in] | ngrf | Number of grfs |
[in] | nfacies | Number of facies |
[in] | flag_one | 1 for considering only the Facies at data point 0 for considering all facies |
[in] | flag_prop | 1 for allocating variable for proportions |
[in] | db | Db structure |
[in] | propdef | PropDef structure |
[in] | rule | Lithotype Rule definition |
|
static |
Calculate the variogram for each lag per direction
[in] | lmlayers | LMlayers structure |
[in] | verbose | 1 for a verbose option |
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | vorder | Vario_Order structure |
[in] | zval | Data vector |
[in] | idir | Rank of the Direction |
[out] | vario | Vario structure |
|
static |
Determine the Geometry of all pairs
[in] | local_pgs | Local_Pgs structure |
[in] | vario | Vario structure |
[in] | idir | Rank of the direction |
|
static |
Correct the experimental variogram for GRFs
[in] | local_pgs | Local_Pgs structure |
[in] | vario | Vario structure |
[in] | idir | Rank of the direction |
|
static |
Compress the Geometry of all pairs
[in] | local_pgs | Local_Pgs structure |
|
static |
Patch the central value (dist=0) of the covariances
[in] | local_pgs | Local_Pgs structure |
[in] | vario | Vario structure for the GRFs to be filled |
[in] | idir | Rank of the direction |
[in] | rho | Correlation coefficient |
|
static |
Calculate the gaussian variograms
[in] | db | Db structure |
[in] | dbprop | Db Grid used for proportions (non-stationary) |
[in] | vario | Vario structure for the GRFs to be filled |
[in] | rule | Lithotype Rule definition |
[in] | propcst | Array of proportions for the facies |
[in] | flag_rho | 1 if the correlation coefficient must be regressed |
[in] | opt_correl | 0 full model; 1 symmetrical; 2 residuals |
|
static |
Calculate the gaussian variograms in the stationary case
Scale the variogram calculations
[in] | vario | Vario structure |
[in] | idir | Rank of the Direction |
|
static |
Performing the variogram calculations
[in] | vario | Vario structure for the GRFs to be filled |
[in] | rule | Lithotype Rule definition |
[in] | local_pgs | Local_Pgs structure |
[in] | ngrf | Number of GRFs |
[in] | opt_correl | 0 full model; 1 symetrical; 2 residuals |
[out] | flag_geometry | 1 if Geometry must be established per direction 0 if Geometry is already calculated before calling this function |
|
static |
Calculate the extrema of the velocity array vv[]
[in] | nech | Number of samples in the array vv[] |
[in] | vv | Array of interest |
[out] | v0 | Initial velocity value |
[out] | v1 | Last velocity value |
[out] | vmin | Minimum value |
[out] | vmax | Maximum value |
|
static |
Check that calculations are correct
[in] | refpt | Array of RefPt structure pointers |
[in] | refstats | Structure for Statistics |
[in] | nbrefpt | Number of reference points |
[in] | x0 | Origin of the grid along X |
[in] | y0 | Origin of the grid along Y |
[in] | dx | Mesh of the grid along X |
[in] | dy | Mesh of the grid along Y |
[in] | sint | Sine of the rotation angle |
[in] | cost | Cosine of the rotation angle |
|
static |
Interpolation of a uniformly-sampled real function y(x) via a table of 8-coefficient sinc approximations
[out] | table | array of weights |
|
static |
Print the kriging weights
[in] | ngh | ST_Seismic_Neigh structure |
[in] | nvar | Number of variables |
[in] | nech | Number of active points |
[in] | nred | Reduced number of equations |
[in] | flag | Flag array |
[in] | wgt | Array of Kriging weights |
|
static |
Get the vertical limits in indices Check if the target elevation 'cote' belongs to the layer If True, returns the starting and ending index
z0 | Origin of the Elevations |
delta | Elevation increment |
cztop | Top bound |
czbot | Bottom bound |
cote | Target elevation |
option | Stretching option |
nz | Number of meshes of the layer |
iz1_ret | Returned starting index |
iz2_ret | Returned ending index |
cote_ret | Returelevation (expressed in the layer system (possibly stretched) |
|
static |
Compute regularly-sampled monotonically increasing function x(y) from regularly-sampled monotonically increasing function y(x) by inverse linear interpolation
[in] | nx | number of samples of y(x) |
[in] | dx | x sampling interval; dx>0.0 is required |
[in] | x0 | first x |
[in] | y | array[nx] of y(x) values; y[0] < ... < y[nx-1] required |
[in] | ny | number of samples of x(y) |
[in] | dy | y sampling interval; dy>0.0 is required |
[in] | y0 | first y |
[in] | xylo | x value assigned to x(y) when y is less than smallest y(x) |
[in] | xyhi | x value assigned to x(y) when y is greater than largest y(x) |
[out] | x | array[ny] of x(y) values |
VectorString gstlrn::statOptionToName | ( | const std::vector< EStatOption > & | opers | ) |
Id gstlrn::stats_residuals | ( | Id | verbose, |
Id | nech, | ||
const double * | tab, | ||
Id | ncut, | ||
double * | zcut, | ||
Id * | nsorted, | ||
double * | mean, | ||
double * | residuals, | ||
double * | T, | ||
double * | Q | ||
) |
Create residuals
[in] | verbose | Verbose flag |
[in] | nech | Number of samples |
[in] | tab | Array of sample values (Dimension: nech) |
[in] | ncut | Number of cutoffs |
[in] | zcut | Array of cutoff values (Dimension: ncut) |
[out] | nsorted | Number of sorted samples |
[out] | mean | Average of the active data |
[out] | residuals | Array of residuals (Dimension: ncut * nech) |
[out] | T | Array of for tonnage |
[out] | Q | Array of for metal quantity |
|
static |
Solve a symmetric Toeplitz linear system of equations Rf=g for f
[in] | n | dimension of system |
[in] | r | array[n] of top row of Toeplitz matrix |
[in] | g | array[n] of right-hand-side column vector |
[out] | f | array[n] of solution (left-hand-side) column vector |
[out] | a | array[n] of solution to Ra=v (Claerbout, FGDP, p. 57) |
void gstlrn::string_strip_blanks | ( | char * | string, |
Id | flag_lead | ||
) |
Strip the blanks from a string
[in,out] | string | String to be cleaned |
[in] | flag_lead | 1 to strip only the leading blanks |
void gstlrn::string_strip_quotes | ( | char * | string | ) |
Strip the leading and trailing quotes from a string
[in,out] | string | String to be cleaned |
Id gstlrn::substitution | ( | DbGrid * | dbgrid, |
SimuSubstitutionParam & | subparam, | ||
Id | seed = 43242 , |
||
Id | verbose = false , |
||
const NamingConvention & | namconv = NamingConvention("SimSub") |
||
) |
|
static |
|
static |
|
static |
void gstlrn::tab_print_rc | ( | const char * | title, |
Id | mode, | ||
Id | value, | ||
Id | ncol, | ||
const EJustify & | justify | ||
) |
Tabulated printout of a row or column value
[in] | title | optional title (NULL if not defined) |
[in] | mode | CASE_ROW or CASE_COL |
[in] | value | Value to be written |
[in] | ncol | number of columns for the printout |
[in] | justify | justification flag (EJustify::LEFT, EJustify::CENTER or EJustify::RIGHT) |
void gstlrn::tab_print_rowname | ( | const char * | string, |
Id | taille | ||
) |
Tabulated printout of a string (character size provided)
[in] | string | String to be written |
[in] | taille | Number of characters |
void gstlrn::tab_printd | ( | const char * | title, |
double | value, | ||
Id | ncol, | ||
const EJustify & | justify | ||
) |
Tabulated printout of a double value
[in] | title | optional title (NULL if not defined) |
[in] | value | Value to be written |
[in] | ncol | number of columns for the printout |
[in] | justify | justification flag (EJustify::LEFT, EJustify::CENTER or EJustify::RIGHT) |
void gstlrn::tab_printg | ( | const char * | title, |
double | value, | ||
Id | ncol, | ||
const EJustify & | justify | ||
) |
Tabulated printout of a real value
[in] | title | optional title (NULL if not defined) |
[in] | value | Value to be written |
[in] | ncol | number of columns for the printout |
[in] | justify | justification flag (EJustify::LEFT, EJustify::CENTER or EJustify::RIGHT) |
Tabulated printout of an integer value
[in] | title | optional title (NULL if not defined) |
[in] | value | Value to be written |
[in] | ncol | number of columns for the printout |
[in] | justify | justification flag (EJustify::LEFT, EJustify::CENTER or EJustify::RIGHT) |
void gstlrn::tab_prints | ( | const char * | title, |
const char * | string, | ||
Id | ncol, | ||
const EJustify & | justify | ||
) |
Tabulated printout of a string
[in] | title | optional title (NULL if not defined) |
[in] | string | String to be written |
[in] | ncol | number of columns for the printout |
[in] | justify | justification flag (EJustify::LEFT, EJustify::CENTER or EJustify::RIGHT) |
Id gstlrn::tessellation_poisson | ( | DbGrid * | dbgrid, |
Model * | model, | ||
const SimuPartitionParam & | parparam, | ||
Id | seed = 432432 , |
||
Id | verbose = false , |
||
const NamingConvention & | namconv = NamingConvention( "Poisson") |
||
) |
Id gstlrn::tessellation_voronoi | ( | DbGrid * | dbgrid, |
Model * | model, | ||
const SimuPartitionParam & | parparam, | ||
Id | seed = 43243 , |
||
Id | verbose = false , |
||
const NamingConvention & | namconv = NamingConvention( "Voronoi") |
||
) |
Id gstlrn::test_neigh | ( | Db * | dbin, |
Db * | dbout, | ||
ModelGeneric * | model, | ||
ANeigh * | neigh, | ||
const NamingConvention & | namconv | ||
) |
Check the Neighborhood
[in] | dbin | input Db structure |
[in] | dbout | output Db structure |
[in] | model | ModelGeneric structure (optional) |
[in] | neigh | ANeigh structure |
[in] | namconv | Naming Convention |
void gstlrn::throw_exp | ( | const std::string & | msg = "" , |
const std::string & | file = "" , |
||
Id | line = 0 |
||
) |
Id gstlrn::time_3db | ( | double * | HS, |
double * | T, | ||
Id | NX, | ||
Id | NY, | ||
Id | NZ, | ||
Id | BX, | ||
Id | BY, | ||
Id | BZ, | ||
double | XS, | ||
double | YS, | ||
double | ZS, | ||
double | HS_EPS_INIT, | ||
Id | MSG | ||
) |
double gstlrn::toDouble | ( | const String & | v, |
char | dec = '.' |
||
) |
String gstlrn::toDouble | ( | double | value, |
const EJustify & | justify = EJustify::fromKey("RIGHT") |
||
) |
Decode an integer from a string. Returns ITEST if impossible
v | String to be decoded |
String gstlrn::toInterval | ( | double | zmin, |
double | zmax | ||
) |
String gstlrn::toLower | ( | const std::string_view | string | ) |
void gstlrn::toLower | ( | String & | string | ) |
String gstlrn::toMatrix | ( | const String & | title, |
const AMatrix & | mat, | ||
bool | flagOverride, | ||
bool | flagSkipZero | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Print the contents of a VectorDouble in a Matrix Form
title | Title of the printout |
mat | Contents of a AMatrix |
flagOverride | true to override printout limitations |
flagSkipZero | when true, skip the zero values (represented by a '.' as for sparse matrix) always true for sparse matrix |
String gstlrn::toMatrix | ( | const String & | title, |
const VectorString & | colnames, | ||
const VectorString & | rownames, | ||
bool | bycol, | ||
Id | nrows, | ||
Id | ncols, | ||
const 1 & | tab, | ||
bool | flagOverride = false , |
||
bool | flagSkipZero = false |
||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Print the contents of a VectorDouble in a Matrix Form
title | Title of the printout |
colnames | Names of the columns (optional) |
rownames | Names of the rows (optional) |
bycol | true if values as sorted by column; false otherwise |
nrows | Number of rows |
ncols | Number of columns |
tab | VectorInt containing the values |
flagOverride | true to override printout limitations |
flagSkipZero | when true, skip the zero values (represented by a '.' as for sparse matrix) |
String gstlrn::toMatrix | ( | const String & | title, |
const VectorString & | colnames, | ||
const VectorString & | rownames, | ||
bool | bycol, | ||
Id | nrows, | ||
Id | ncols, | ||
const double * | tab, | ||
bool | flagOverride, | ||
bool | flagSkipZero | ||
) |
title | Title of the printout |
colnames | Names of the columns (optional) |
rownames | Names of the rows (optional) |
bycol | true if values as sorted by column; false otherwise |
nrows | Number of rows |
ncols | Number of columns |
tab | VectorDouble containing the values |
flagOverride | true to override printout limitations |
flagSkipZero | when true, skip the zero values (represented by a '.' as for sparse matrix) |
String gstlrn::toStr | ( | const String & | string, |
const EJustify & | justify = EJustify::fromKey("RIGHT") , |
||
Id | localSize = 0 |
||
) |
String gstlrn::toString | ( | double | value | ) |
Print a message and underlines it with various formats
level | Level of the title |
format | Output format |
... | Additional arguments |
String gstlrn::toUpper | ( | const std::string_view | string | ) |
void gstlrn::toUpper | ( | String & | string | ) |
String gstlrn::toVector | ( | const String & | title, |
const VectorString & | tab, | ||
bool | flagOverride = true |
||
) |
Printout a vector in a formatted manner
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
title | Title of the printout (or empty string) |
tab | Vector (string values) to be printed |
flagOverride | true to override printout limitations |
Printout a vector in a formatted manner
title | Title of the printout (or empty string) |
tab | Vector (real values) to be printed |
flagOverride | true to override printout limitations |
VectorString gstlrn::toVectorDouble | ( | const 1 & | values, |
const EJustify & | justify = EJustify::fromKey("RIGHT") |
||
) |
Local function to read the Data Base
[in] | db | Db structure |
[in] | iatt_in | Address of the first input attribute |
[in] | iatt | Rank of the internal attribute |
[in] | itrace | Rank of the trace |
[in] | it | Rank of the sample on the trace |
Local function to write into the Data Base
[in] | db | Db structure |
[in] | iatt_out | Address of the first input attribute |
[in] | iatt | Rank of the internal attribute |
[in] | itr | Rank of the trace |
[in] | it | Rank of the sample on the trace |
[in] | value | Value to be stored |
|
static |
Add a new row to the trace
[in] | local_pgs | Local_Pgs structure |
|
static |
Update the Trace array
[in] | local_pgs | Local_Pgs structure |
[in] | value0 | First value in a Trace row |
[in] | value1 | Second value in a Trace row |
[in] | origin | Origin for values in record (after 2 heading values) |
[in] | number | Number of values assigned |
[in] | values | Array of values assigned |
gstlrn::trendSPDE | ( | Db * | dbin, |
Model * | model, | ||
Id | useCholesky, | ||
const VectorMeshes * | meshesK, | ||
const ProjMultiMatrix * | projInK, | ||
const SPDEParam & | params, | ||
bool | verbose | ||
) |
Derive the global trend in the SPDE framework
dbin | Input Db (must contain the variable to be estimated) |
model | Model definition |
useCholesky | Define the choice regarding Cholesky (see _defineCholesky) |
meshesK | Meshes description (optional) |
projInK | Matrix of projection (optional) |
params | Set of SPDE parameters |
verbose | Verbose flag |
double gstlrn::truncateDecimals | ( | double | value, |
Id | ndec | ||
) |
Rounding a double to a given number of decimals (from: https://stackoverflow.com/questions/304011/truncate-a-decimal-value-in-c/304013#304013)
value | Value to be rounded up |
ndec | Number of significant decimals |
double gstlrn::truncateDigits | ( | double | value, |
Id | ndigits | ||
) |
Rounding a double to a given number of decimals
value | Value to be rounded up |
ndigits | Number of significant digits |
Id gstlrn::UniformConditioning | ( | Db * | db, |
AAnam * | anam, | ||
Selectivity * | selectivity, | ||
const String & | name_est, | ||
const String & | name_varz, | ||
const NamingConvention & | namconv | ||
) |
Calculate the Uniform Conditioning
[in] | db | Db structure containing the factors (Z-locators) |
[in] | anam | Point anamorphosis |
[in] | selectivity | Selectivity structure |
[in] | name_est | Name of the Kriging estimate |
[in] | name_varz | Name of the Variance of Kriging estimate |
[in] | namconv | Naming Convention |
Id gstlrn::ut_chebychev_count | ( | double(*)(double, double, const 1 &) | func, |
Cheb_Elem * | cheb_elem, | ||
double | x, | ||
const 1 & | blin | ||
) |
Evaluate the number of coefficients necessary to evaluate a function (at a sample location) at a given approximation
void gstlrn::ut_classify | ( | Id | nech, |
const double * | tab, | ||
double * | sel, | ||
Id | nclass, | ||
double | start, | ||
double | pas, | ||
Id * | nmask, | ||
Id * | ntest, | ||
Id * | nout, | ||
Id * | classe | ||
) |
Classify the samples into integer sieves
[in] | nech | Number of samples |
[in] | tab | Array of values |
[in] | sel | Array containing the Selection or NULL |
[in] | nclass | Number of sieve classes |
[in] | start | Starting sieve value |
[in] | pas | Width of the sieve |
[out] | nmask | Number of masked values |
[out] | ntest | Number of undefined values |
[out] | nout | Number of values outside the classes |
[out] | classe | Array for number of samples per sieve |
Compute combinations(n,k)
[in] | n | Total number of objects (>= 1) |
[in] | k | Selected number of objects (>= 1) |
Return all the combinations of k within n
[in] | n | Total number of objects (>1) |
[in] | maxk | Selected number of objects (1<=maxk<n) |
[out] | ncomb | Number of combinations |
double gstlrn::ut_deg2rad | ( | double | angle | ) |
Translates from degree to radian
[in] | angle | Angle in degrees |
double gstlrn::ut_distance | ( | Id | ndim, |
const double * | tab1, | ||
const double * | tab2 | ||
) |
void gstlrn::ut_distance_allocated | ( | Id | ndim, |
double ** | tab1, | ||
double ** | tab2 | ||
) |
double gstlrn::ut_factorial | ( | Id | k | ) |
Calculates the factorial coefficient
[in] | k | Value |
Returns the Spherical Legendre normalized function. According to boost Library documentation, this returns
Y_n^m(theta, phi) = sqrt{{(2n+1)(n-m)!} / {4pi(n+m)!}} P_n^m(cos(theta))e{imphi}
with phi=0 and m = |k0|
If flagNorm is switched ON, the previous result is multiplied by:
sqrt(2 * pi)
[in] | n | Degree |
[in] | k0 | Order (ABS(k0) <= n) |
[in] | theta | Theta angle in radian |
[in] | flagNorm | for normalized and 0 otherwise |
Generate regular Icosahedron discretization
[in] | n | Number of discretization steps |
[in] | flag_rot | Perform a random rotation |
[out] | ntri_arg | Number of points |
[out] | coord | Array of point coordinates (Dimension: 3*ntri) |
double gstlrn::ut_legendre | ( | Id | n, |
double | v, | ||
bool | flagNorm | ||
) |
Returns the Legendre Function described as follows:
legendre_p(n,v) = 1/{2^n n!) d^n/dx^n [x^2-1)^n with |x|<=1
If flagNorm is switched ON, the Boost library cannot be used anymore. We have to rely on the ode provided by X; Freulon.
[in] | n | Degree of the Legendre Polynomial to be computed (n >= 0) |
[in] | v | Value for which the polynomial is evaluated (-1 <= v <= 1) |
[in] | flagNorm | True for normalized and 0 otherwise |
MatrixDense gstlrn::ut_legendreAssociatedMat | ( | Id | l, |
const 1 & | v, | ||
bool | flagNorm | ||
) |
Returns the Associated Legendre Function described as follows:
In the case flagNorm=true
Using the relations: P_0^0 (x) = 1 P_{l+1}^{l+1} (x) = - sqrt((2l+3)/(2l+2)) * (1-x^2)^{1/2} * P_{l}^{l}(x) P_{l+1}^{m} (x) = sqrt((2l+3)(2l+1)/((l-m+1)(l+m+1))) * x * P_{l}^{m}(x) - sqrt((2l+3)/(2l-1)*(l+m)/(l+m+1)*(l-m)/(l-m+1)) P_{l-1}^m(x) Changing l to l-1, P_{l}^{l} (x) = - a0 * (1-x^2)^{1/2} * P_{l-1}^{l-1}(x) with a0 = sqrt((2l+1)/(2l)) P_{l}^{m} (x) = a * x * P_{l-1}^{m}(x) - b P_{l-2}^m(x) with a = sqrt((2l+1)(2l-1)/(l-m)/(l+m)) and b = sqrt((2l+1)/(2l-3)*(l+m-1)/(l+m)*(l-m-1)/(l-m))
In the case flagNorm=false
Using the relations: P_0^0 (x) = 1 P_{l+1}^{l+1} (x) = - sqrt((2l+3)/(2l+2)) * (1-x^2)^{1/2} * P_{l}^{l}(x) P_{l+1}^{m} (x) = sqrt((2l+3)(2l+1)/((l-m+1)(l+m+1))) * x * P_{l}^{m}(x) - sqrt((2l+3)/(2l-1)*(l+m)/(l+m+1)*(l-m)/(l-m+1)) P_{l-1}^m(x) Changing l to l-1, P_{l}^{l} (x) = - a0 * (1-x^2)^{1/2} * P_{l-1}^{l-1}(x) with a0 = sqrt((2l+1)/(2l)) P_{l}^{m} (x) = a * x * P_{l-1}^{m}(x) - b P_{l-2}^m(x) with a = sqrt((2l+1)(2l-1)/(l-m)/(l+m)) and b = sqrt((2l+1)/(2l-3)*(l+m-1)/(l+m)*(l-m-1)/(l-m))
[in] | l | Degree of the Legendre Polynomial to be computed (n >= 0) |
[in] | v | Value for which the polynomial is evaluated (-1 <= v <= 1) |
[in] | flagNorm | Normalized when True |
MatrixDense gstlrn::ut_legendreMatNorm | ( | Id | n, |
const 1 & | v | ||
) |
gstlrn::ut_legendreVec | ( | Id | n, |
const 1 & | vecin, | ||
bool | flagNorm | ||
) |
void gstlrn::ut_log_factorial | ( | Id | nbpoly, |
double * | factor | ||
) |
Calculates the nbpoly log-factorial coefficients
[in] | nbpoly | Number of terms |
[out] | factor | logarithm of factorials |
double gstlrn::ut_median | ( | 1 & | tab, |
Id | ntab | ||
) |
Calculate the median from a table of values
[in] | tab | Array of values |
[in] | ntab | Number of samples |
MatrixSquare gstlrn::ut_pascal | ( | Id | ndim | ) |
Create the matrix containing the Pascal Triangle coefficients
[in] | ndim | Size of the matrix |
double gstlrn::ut_rad2deg | ( | double | angle | ) |
Translates from radian to degree
[in] | angle | Angle in radian |
Shuffle an array (by line)
[in] | nrow | Number of rows |
[in] | ncol | Number of columns |
[in,out] | tab | Array to be suffled |
Sorts the (double) array value() and the array ind() in the ascending order of value
[in] | safe | 1 if the value array if preserved 0 if the value array is also sorted |
[in] | nech | number of samples |
[out] | ind | output Id array |
[out] | value | input and output array |
Returns the Spherical harmonic
[in] | n | Degree of HS (n >= 0) |
[in] | k | Order of the HS (-n <= k <= n) |
[in] | theta | Colatitude angle in radian (0 <= theta <= pi |
[in] | phi | Longitude angle in radian (0 <= phi <= 2* pi) |
Return all the ways to split ncolor into two non-empty subsets
[in] | ncolor | Number of colors |
[in] | flag_half | 1 if only half of possibilities must be envisaged |
[in] | verbose | 1 for a verbose option |
[out] | nposs | Number of possibilities |
StatResults gstlrn::ut_statistics | ( | Id | nech, |
const double * | tab, | ||
const double * | sel, | ||
const double * | wgt | ||
) |
Returns the statistics of an array in a StatResults structure
void gstlrn::ut_stats_mima_print | ( | const char * | title, |
Id | nech, | ||
double * | tab, | ||
double * | sel | ||
) |
Generate a Van Der Corput list of points in R^3
[in] | n | Number of points |
[in] | flag_sym | Duplicate the samples by symmetry |
[in] | flag_rot | Perform a random rotation |
[out] | ntri_arg | Number of points |
[out] | coord | Array of point coordinates (Dimension: 3*ntri) |
double gstlrn::util_rotation_gradXYToAngle | ( | double | dzoverdx, |
double | dzoverdy | ||
) |
Calculate the angle to translate the gradients of a tilted plane (defined by the partial derivatives along X and Y) into the axis of the rotation angle
dzoverdx | Partial derivative along X |
dzoverdy | Partial derivative along Y |
DISABLE_WARNING_POP MatrixDense * gstlrn::vanDerCorput | ( | Id | n, |
Id | nd | ||
) |
Function to compute the vector Van der Corput sequence or the Halton sequence
n | The number of values to be computed |
nd | The dimension of output sequence |
Id gstlrn::vario_order_add | ( | Vario_Order * | vorder, |
Id | iech, | ||
Id | jech, | ||
void * | aux_iech, | ||
void * | aux_jech, | ||
Id | ilag, | ||
Id | idir, | ||
double | dist | ||
) |
Add a record to the Variogram Order structure
[in] | vorder | Vario_Order structure |
[in] | iech | Rank of the first sample |
[in] | jech | Rank of the second sample |
[in] | aux_iech | Auxiliary array for sample 'iech' (or NULL) |
[in] | aux_jech | Auxiliary array for sample 'jech' (or NULL) |
[in] | ilag | Rank of the lag |
[in] | idir | Rank of the direction (or 0) |
[in] | dist | Calculated distance (only stored if flag_dist == 1) |
Vario_Order * gstlrn::vario_order_final | ( | Vario_Order * | vorder, |
Id * | npair | ||
) |
Resize the array and sort it
[in] | vorder | Vario_Order structure |
[in] | npair | Final number of pairs |
void gstlrn::vario_order_get_auxiliary | ( | Vario_Order * | vorder, |
Id | ipair, | ||
char * | aux_iech, | ||
char * | aux_jech | ||
) |
Returns the two auxiliary arrays for a given (ordered) pair
[in] | vorder | Vario_Order structure |
[in] | ipair | Rank of the sorted pair |
[out] | aux_iech | Array to auxiliary information for sample 'iech' |
[out] | aux_jech | Array to auxiliary information for sample 'jech' |
void gstlrn::vario_order_get_bounds | ( | Vario_Order * | vorder, |
Id | idir, | ||
Id | ilag, | ||
Id * | ifirst, | ||
Id * | ilast | ||
) |
Returns the first and last indices matching a target lag
[in] | vorder | Vario_Order structure |
[in] | idir | Rank of the target direction |
[in] | ilag | Rank of the target lag |
[out] | ifirst | Rank of the first sample of the lag (included) |
[out] | ilast | Rank of the last sample of the lag (excluded) |
void gstlrn::vario_order_get_indices | ( | Vario_Order * | vorder, |
Id | ipair, | ||
Id * | iech, | ||
Id * | jech, | ||
double * | dist | ||
) |
Returns the two samples for a given (ordered) pair
[in] | vorder | Vario_Order structure |
[in] | ipair | Rank of the sorted pair |
[out] | iech | Rank of the first sample |
[out] | jech | Rank of the second sample |
[out] | dist | Calculated distance or TEST (if flag_dist == 0) |
Vario_Order * gstlrn::vario_order_manage | ( | Id | mode, |
Id | flag_dist, | ||
Id | size_aux, | ||
Vario_Order * | vorder | ||
) |
Manage the Variogram Order structure
[in] | mode | Usage:
|
[in] | flag_dist | 1 if distances are stored; 0 otherwise |
[in] | size_aux | Size (in bytes) of the auxiliary array |
[in] | vorder | Vario_Order structure |
void gstlrn::vario_order_print | ( | Vario_Order * | vorder, |
Id | idir_target, | ||
Id | ipas_target, | ||
Id | verbose | ||
) |
Print the Vario_Order structure
[in] | vorder | Vario_Order structure |
[in] | idir_target | Rank of the target direction (starting from 0) or -1 |
[in] | ipas_target | Rank of the target lag (starting from 0) or -1 |
[in] | verbose | 1 for a complete printout |
Vario * gstlrn::variogram_pgs | ( | Db * | db, |
const VarioParam * | varioparam, | ||
const RuleProp * | ruleprop, | ||
Id | flag_rho, | ||
Id | opt_correl | ||
) |
Calculate the Gaussian variograms
[in] | db | Db structure |
[in] | varioparam | VarioParam structure for the GRFs |
[in] | ruleprop | RuleProp structure |
[in] | flag_rho | 1 if the correlation coefficient must be regressed |
[in] | opt_correl | 0 full model; 1 symmetrical; 2 residuals |
thread_local gstlrn::viech2 | ( | 1 | ) |
Id gstlrn::vmap_auto_fit | ( | const DbGrid * | dbmap, |
Model * | model, | ||
bool | verbose = false , |
||
const Option_AutoFit & | mauto_arg = Option_AutoFit() , |
||
const Constraints & | cons_arg = Constraints() , |
||
const Option_VarioFit & | optvar_arg = Option_VarioFit() |
||
) |
void gstlrn::write_curvilinear_mesh | ( | const char * | filename, |
Id | ub, | ||
Id * | dims, | ||
float * | pts, | ||
Id | nvars, | ||
Id * | vardim, | ||
Id * | centering, | ||
const char *const * | varnames, | ||
1 & | vars | ||
) |
|
static |
|
static |
|
static |
void gstlrn::write_point_mesh | ( | const char * | filename, |
Id | ub, | ||
Id | npts, | ||
float * | pts, | ||
Id | nvars, | ||
Id * | vardim, | ||
const char *const * | varnames, | ||
1 & | vars | ||
) |
void gstlrn::write_rectilinear_mesh | ( | const char * | filename, |
Id | ub, | ||
Id * | dims, | ||
float * | x, | ||
float * | y, | ||
float * | z, | ||
Id | nvars, | ||
Id * | vardim, | ||
Id * | centering, | ||
const char *const * | varnames, | ||
1 & | vars | ||
) |
void gstlrn::write_regular_mesh | ( | const char * | filename, |
Id | ub, | ||
Id * | dims, | ||
Id | nvars, | ||
Id * | vardim, | ||
Id * | centering, | ||
const char *const * | varnames, | ||
1 & | vars | ||
) |
|
static |
void gstlrn::write_unstructured_mesh | ( | const char * | filename, |
Id | ub, | ||
Id | npts, | ||
float * | pts, | ||
Id | ncells, | ||
Id * | celltypes, | ||
Id * | conn, | ||
Id | nvars, | ||
Id * | vardim, | ||
Id * | centering, | ||
const char *const * | varnames, | ||
1 & | vars | ||
) |
void gstlrn::write_variables | ( | Id | nvars, |
const Id * | vardim, | ||
const Id * | centering, | ||
const char *const * | varname, | ||
1 & | vars, | ||
Id | npts, | ||
Id | ncells | ||
) |
Id gstlrn::xvalid | ( | Db * | db, |
ModelGeneric * | model, | ||
ANeigh * | neigh, | ||
bool | flag_kfold, | ||
Id | flag_xvalid_est, | ||
Id | flag_xvalid_std, | ||
Id | flag_xvalid_varz, | ||
const KrigOpt & | krigopt, | ||
const NamingConvention & | namconv | ||
) |
Standard Cross-Validation
db | Db structure |
model | ModelGeneric structure |
neigh | ANeigh structure |
flag_kfold | True if a code (K-FOLD) is used |
flag_xvalid_est | Option for storing the estimation: 1 for Z*-Z; -1 for Z*; 0 not stored |
flag_xvalid_std | Option for storing the standard deviation: 1:for (Z*-Z)/S; -1 for S; 0 not stored |
flag_xvalid_varz | Option for storing the variance of the estimator: 1 to store and 0 not stored |
krigopt | KrigOpt structure |
namconv | Naming Convention |
double gstlrn::_background |
|
static |
gstlrn::_dilate |
PolyElem gstlrn::_emptyElem |
gstlrn::_emptyVec |
Create a Polygon by loading the contents of a Neutral File
NFFilename | Name of the Neutral File |
verbose | Verbose flag |
double gstlrn::_facies |
|
static |
|
static |
thread_local gstlrn::_iwork0 |
Id gstlrn::_maxiter |
double gstlrn::_tmax |
thread_local gstlrn::_work1 |
thread_local gstlrn::_work2 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
DISABLE_WARNING_NOT_EXPORTED_FROM_DLL DISABLE_WARNING_BASE_NOT_EXPORTED_FROM_DLL typedef std::span<const double> gstlrn::constvect |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Unique default global space.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Print the variable contents.
|
static |
|
static |
|
static |
|
static |
|
static |
Print the Db extension.
|
static |
|
static |
|
static |
|
static |
Print the locators.
|
static |
|
static |
Print the Db summary.
|
static |
|
static |
Print the variable statistics.
|
static |
|
static |
Print the Field names.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
thread_local gstlrn::ivars |
thread_local gstlrn::jvars |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
local headwave flags.
|
static |
|
static |
|
static |
|
static |
thread_local gstlrn::nbgh_init |
|
static |
|
static |
Id gstlrn::NDIM_LOCAL = 0 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
thread_local Id gstlrn::Random_congruent = 20000159 |
thread_local Id gstlrn::Random_factor = 105 |
thread_local std::mt19937 gstlrn::Random_gen |
thread_local bool gstlrn::Random_Old_Style = true |
thread_local Id gstlrn::Random_value = 43241421 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
typedef gstlrn::VectorNumT< double > |
typedef gstlrn::VectorNumT< float > |
typedef gstlrn::VectorNumT< Id > |
typedef gstlrn::VectorNumT< UChar > |
typedef gstlrn::VectorT< 1 > |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
gstlrn::X1_LOCAL |
gstlrn::X2_LOCAL |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |