1.1.0
CCC
 
CalcSimpleInterpolation.cpp File Reference
#include "geoslib_old_f.h"
#include "Basic/NamingConvention.hpp"
#include "Basic/OptDbg.hpp"
#include "Estimation/CalcSimpleInterpolation.hpp"
#include "Neigh/NeighMoving.hpp"
#include "Db/DbGrid.hpp"
#include "Db/Db.hpp"
#include "Drifts/DriftFactory.hpp"

Functions

int inverseDistance (Db *dbin, Db *dbout, double exponent, bool flag_expand, double dmax, bool flag_est, bool flag_std, Model *model, const NamingConvention &namconv)
 
GSTLEARN_EXPORT int movingAverage (Db *dbin, Db *dbout, ANeigh *neigh, bool flag_est, bool flag_std, Model *model, const NamingConvention &namconv)
 
GSTLEARN_EXPORT int movingMedian (Db *dbin, Db *dbout, ANeigh *neigh, bool flag_est, bool flag_std, Model *model, const NamingConvention &namconv)
 
GSTLEARN_EXPORT int nearestNeighbor (Db *dbin, Db *dbout, bool flag_est, bool flag_std, Model *model, const NamingConvention &namconv)
 
GSTLEARN_EXPORT int leastSquares (Db *dbin, Db *dbout, ANeigh *neigh, int order, const NamingConvention &namconv)
 

Function Documentation

int 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

Returns
Error return code
Parameters
[in]dbinInput Db structure
[in]dboutOutput Db structure
[in]exponentexponent of the inverse distance
[in]flag_expandTrue for expansion option (if dbin is Grid)
[in]dmaxMaximum search radius (if dbin is Points)
[in]flag_estTrue if the estimation must be calculated
[in]flag_stdTrue if the St. Dev. must be calculated
[in]modelModel structure (used for St. Dev.)
[in]namconvNaming convention
GSTLEARN_EXPORT int leastSquares ( Db dbin,
Db dbout,
ANeigh neigh,
int  order,
const NamingConvention namconv 
)

Polynomial estimation using Least Squares

Returns
Error return code
Parameters
[in]dbinInput Db structure
[in]dboutOutput Db structure
[in]neighANeigh structure
[in]orderOrder of the polynomial
[in]namconvNaming Convention
GSTLEARN_EXPORT int movingAverage ( Db dbin,
Db dbout,
ANeigh neigh,
bool  flag_est,
bool  flag_std,
Model model,
const NamingConvention namconv 
)

Moving Average estimation

Returns
Error return code
Parameters
[in]dbinInput Db structure
[in]dboutOutput Db structure
[in]neighANeigh structure
[in]flag_estTrue if the estimation must be calculated
[in]flag_stdTrue if the St. Dev. must be calculated
[in]modelModel structure (used for St. Dev.)
[in]namconvNaming convention
GSTLEARN_EXPORT int movingMedian ( Db dbin,
Db dbout,
ANeigh neigh,
bool  flag_est,
bool  flag_std,
Model model,
const NamingConvention namconv 
)

Moving Median estimation

Returns
Error return code
Parameters
[in]dbinInput Db structure
[in]dboutOutput Db structure
[in]neighANeigh structure
[in]flag_estTrue if the estimation must be calculated
[in]flag_stdTrue if the St. Dev. must be calculated
[in]modelModel structure (used for St. Dev.)
[in]namconvNaming convention
GSTLEARN_EXPORT int nearestNeighbor ( Db dbin,
Db dbout,
bool  flag_est,
bool  flag_std,
Model model,
const NamingConvention namconv 
)

Nearest Neighbor estimation

Returns
Error return code
Parameters
[in]dbinInput Db structure
[in]dboutOutput Db structure
[in]flag_estTrue if the estimation must be calculated
[in]flag_stdTrue if the St. Dev. must be calculated
[in]modelModel structure (used for St. Dev.)
[in]namconvNaming convention