#include <CalcSimpleInterpolation.hpp>
|
virtual bool | _check () override |
|
virtual bool | _preprocess () override |
|
virtual bool | _run () override |
|
virtual bool | _postprocess () override |
|
virtual void | _rollback () override |
|
virtual int | _getNVar () const override |
|
int | _nearest (Db *dbin, Db *dbout, ANeigh *neigh) |
|
int | _movave (Db *dbin, Db *dbout, ANeigh *neigh) |
|
int | _movmed (Db *dbin, Db *dbout, ANeigh *neigh) |
|
int | _lstsqr (Db *dbin, Db *dbout, ANeigh *neigh) |
|
int | _invdist (Db *dbin, Db *dbout) |
|
void | _pointInvdist (Db *dbin, Db *dbout) |
|
void | _gridInvdist (DbGrid *dbin, Db *dbout) |
|
double | _estimCalc (const Db *dbin, const VectorInt &nbgh, const VectorDouble &weights) const |
|
double | _stdevCalc (const Db *dbin, const Db *dbout, const VectorInt &nbgh, int iechout, const VectorDouble &weights) const |
|
void | _saveResults (const Db *dbin, Db *dbout, const VectorInt &nbgh, int iech, VectorDouble &weights) const |
|
|
virtual int | _getNDim () const override |
|
virtual int | _getNCova () const |
|
int | _centerDataToGrid (DbGrid *dbgrid) |
|
int | _addVariableDb (int whichDb, int status, const ELoc &locatorType, int locatorIndex=0, int number=1, double valinit=0.) |
|
void | _renameVariable (int whichDb, const VectorString &names, const ELoc &locatorType, int nvar, int iptr, const String &name, int count, bool flagSetLocator=true, int shift=0) |
|
void | _storeInVariableList (int whichDb, int status, const VectorInt &iuids) |
|
int | _expandInformation (int mode, const ELoc &locatorType) |
|
void | _cleanVariableDb (int status) |
|
Db * | _whichDb (int whichDb) |
|
String | _identifyVariable (int iuid) const |
|
◆ CalcSimpleInterpolation() [1/2]
CalcSimpleInterpolation::CalcSimpleInterpolation |
( |
| ) |
|
◆ CalcSimpleInterpolation() [2/2]
◆ ~CalcSimpleInterpolation()
CalcSimpleInterpolation::~CalcSimpleInterpolation |
( |
| ) |
|
|
virtual |
◆ _check()
bool CalcSimpleInterpolation::_check |
( |
| ) |
|
|
overrideprivatevirtual |
◆ _estimCalc()
double CalcSimpleInterpolation::_estimCalc |
( |
const Db * |
dbin, |
|
|
const VectorInt & |
nbgh, |
|
|
const VectorDouble & |
weights |
|
) |
| const |
|
private |
◆ _getNVar()
int CalcSimpleInterpolation::_getNVar |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ _gridInvdist()
void CalcSimpleInterpolation::_gridInvdist |
( |
DbGrid * |
dbin, |
|
|
Db * |
dbout |
|
) |
| |
|
private |
Inverse distance estimation when Input DB is a grid
- Parameters
-
[in] | dbin | Input Db |
[in] | dbout | Output Db |
◆ _invdist()
int CalcSimpleInterpolation::_invdist |
( |
Db * |
dbin, |
|
|
Db * |
dbout |
|
) |
| |
|
private |
Inverse distance estimation
- Returns
- Error return code
- Parameters
-
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
◆ _lstsqr()
int CalcSimpleInterpolation::_lstsqr |
( |
Db * |
dbin, |
|
|
Db * |
dbout, |
|
|
ANeigh * |
neigh |
|
) |
| |
|
private |
Polynomial estimation using Least Squares
- Returns
- Error return code
- Parameters
-
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | neigh | ANeigh structure |
◆ _movave()
int CalcSimpleInterpolation::_movave |
( |
Db * |
dbin, |
|
|
Db * |
dbout, |
|
|
ANeigh * |
neigh |
|
) |
| |
|
private |
Moving Average estimation
- Returns
- Error return code
- Parameters
-
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | neigh | ANeigh structure |
◆ _movmed()
int CalcSimpleInterpolation::_movmed |
( |
Db * |
dbin, |
|
|
Db * |
dbout, |
|
|
ANeigh * |
neigh |
|
) |
| |
|
private |
Moving Median estimation
- Returns
- Error return code
- Parameters
-
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | neigh | ANeigh structure |
◆ _nearest()
int CalcSimpleInterpolation::_nearest |
( |
Db * |
dbin, |
|
|
Db * |
dbout, |
|
|
ANeigh * |
neigh |
|
) |
| |
|
private |
Nearest Neighbour estimation
- Returns
- Error return code
- Parameters
-
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | neigh | ANeigh structure |
◆ _pointInvdist()
void CalcSimpleInterpolation::_pointInvdist |
( |
Db * |
dbin, |
|
|
Db * |
dbout |
|
) |
| |
|
private |
Inverse distance estimation when Input DB is a point file
- Parameters
-
[in] | dbin | Input Db |
[in] | dbout | Output Db |
◆ _postprocess()
bool CalcSimpleInterpolation::_postprocess |
( |
| ) |
|
|
overrideprivatevirtual |
◆ _preprocess()
bool CalcSimpleInterpolation::_preprocess |
( |
| ) |
|
|
overrideprivatevirtual |
◆ _rollback()
void CalcSimpleInterpolation::_rollback |
( |
| ) |
|
|
overrideprivatevirtual |
◆ _run()
bool CalcSimpleInterpolation::_run |
( |
| ) |
|
|
overrideprivatevirtual |
Standard Kriging
- Returns
- Error return code
Implements ACalculator.
◆ _saveResults()
void CalcSimpleInterpolation::_saveResults |
( |
const Db * |
dbin, |
|
|
Db * |
dbout, |
|
|
const VectorInt & |
nbgh, |
|
|
int |
iech, |
|
|
VectorDouble & |
weights |
|
) |
| const |
|
private |
◆ _stdevCalc()
double CalcSimpleInterpolation::_stdevCalc |
( |
const Db * |
dbin, |
|
|
const Db * |
dbout, |
|
|
const VectorInt & |
nbgh, |
|
|
int |
iechout, |
|
|
const VectorDouble & |
weights |
|
) |
| const |
|
private |
Calculate the (non-optimal) variance of estimation error
- Parameters
-
dbin | Db containing the data |
dbout | Db containing the target |
nbgh | List of ranks within 'dbin' |
iechout | Rank of the target |
weights | Vector of weights (same dimension as 'nbgh') |
- Returns
◆ operator=()
◆ setDmax()
void CalcSimpleInterpolation::setDmax |
( |
double |
dmax | ) |
|
|
inline |
◆ setExponent()
void CalcSimpleInterpolation::setExponent |
( |
double |
exponent | ) |
|
|
inline |
◆ setFlagEst()
void CalcSimpleInterpolation::setFlagEst |
( |
bool |
flagEst | ) |
|
|
inline |
◆ setFlagExpand()
void CalcSimpleInterpolation::setFlagExpand |
( |
bool |
flagExpand | ) |
|
|
inline |
◆ setFlagInvDist()
void CalcSimpleInterpolation::setFlagInvDist |
( |
bool |
flagInvDist | ) |
|
|
inline |
◆ setFlagLstSqr()
void CalcSimpleInterpolation::setFlagLstSqr |
( |
bool |
flagLstSqr | ) |
|
|
inline |
◆ setFlagMovAve()
void CalcSimpleInterpolation::setFlagMovAve |
( |
bool |
flagMovAve | ) |
|
|
inline |
◆ setFlagMovMed()
void CalcSimpleInterpolation::setFlagMovMed |
( |
bool |
flagMovMed | ) |
|
|
inline |
◆ setFlagNearest()
void CalcSimpleInterpolation::setFlagNearest |
( |
bool |
flagNearest | ) |
|
|
inline |
◆ setFlagStd()
void CalcSimpleInterpolation::setFlagStd |
( |
bool |
flagStd | ) |
|
|
inline |
◆ setOrder()
void CalcSimpleInterpolation::setOrder |
( |
int |
order | ) |
|
|
inline |
◆ _dmax
double CalcSimpleInterpolation::_dmax |
|
private |
◆ _exponent
double CalcSimpleInterpolation::_exponent |
|
private |
◆ _flagEst
bool CalcSimpleInterpolation::_flagEst |
|
private |
◆ _flagExpand
bool CalcSimpleInterpolation::_flagExpand |
|
private |
◆ _flagInvDist
bool CalcSimpleInterpolation::_flagInvDist |
|
private |
◆ _flagLstSqr
bool CalcSimpleInterpolation::_flagLstSqr |
|
private |
◆ _flagMovAve
bool CalcSimpleInterpolation::_flagMovAve |
|
private |
◆ _flagMovMed
bool CalcSimpleInterpolation::_flagMovMed |
|
private |
◆ _flagNearest
bool CalcSimpleInterpolation::_flagNearest |
|
private |
◆ _flagStd
bool CalcSimpleInterpolation::_flagStd |
|
private |
◆ _iattEst
int CalcSimpleInterpolation::_iattEst |
|
private |
◆ _iattStd
int CalcSimpleInterpolation::_iattStd |
|
private |
◆ _order
int CalcSimpleInterpolation::_order |
|
private |
The documentation for this class was generated from the following files: