#include <SimuRefine.hpp>
|
virtual bool | _run () override |
|
void | _dim_1_to_2 (DbGrid *db) |
|
void | _dim_2_to_1 (DbGrid *db) |
|
int | _kriging_define () |
|
void | _neigh_simfine (int type, int rank, int idx, int idy, int idz) |
|
void | _merge_data (DbGrid *db1, int iatt1, DbGrid *db2, int iatt2) |
|
double | _read (DbGrid *db, int iatt, int ix0, int iy0, int iz0, int idx, int idy, int idz) |
|
void | _write (DbGrid *db, int iatt, int ix0, int iy0, int iz0, double value) |
|
void | _truncate_result (DbGrid *db2, int iatt2, DbGrid *db1, int iatt1) |
|
int | _kriging_solve (int type, int rank, int nb, bool verbose=false) |
|
void | _simulate_nodes (DbGrid *db, int iatt) |
|
void | _simulate_target (DbGrid *db, int type, int iatt, int ix0, int iy0, int iz0) |
|
int | _getNDim () const |
|
|
virtual bool | _check () override |
|
virtual bool | _preprocess () override |
|
virtual int | _getNVar () 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 |
|
virtual bool | _postprocess () |
|
virtual void | _rollback () |
|
◆ SimuRefine() [1/2]
SimuRefine::SimuRefine |
( |
int |
nbsimu = 0 , |
|
|
int |
seed = 4324324 |
|
) |
| |
◆ SimuRefine() [2/2]
◆ ~SimuRefine()
SimuRefine::~SimuRefine |
( |
| ) |
|
|
virtual |
◆ _dim_1_to_2()
void SimuRefine::_dim_1_to_2 |
( |
DbGrid * |
db | ) |
|
|
private |
Define the characteristics from Db1 to Db2
- Parameters
-
[in] | db | Staring grid Db structure |
◆ _dim_2_to_1()
void SimuRefine::_dim_2_to_1 |
( |
DbGrid * |
db | ) |
|
|
private |
Define the characteristics from Db2 to Db1
- Parameters
-
[in] | db | Starting grid Db structure |
◆ _getNDim()
int SimuRefine::_getNDim |
( |
| ) |
const |
|
privatevirtual |
◆ _kriging_define()
int SimuRefine::_kriging_define |
( |
| ) |
|
|
private |
Establish and solve the different Kriging systems
- Returns
- Error return code
◆ _kriging_solve()
int SimuRefine::_kriging_solve |
( |
int |
type, |
|
|
int |
rank, |
|
|
int |
nb, |
|
|
bool |
verbose = false |
|
) |
| |
|
private |
Solve the kriging system
- Returns
- Error return code
- Parameters
-
[in] | type | Type of kriging |
[in] | rank | Rank of the neighboring data |
[in] | nb | Number of equations |
[in] | verbose | Verbose flag |
◆ _merge_data()
void SimuRefine::_merge_data |
( |
DbGrid * |
db1, |
|
|
int |
iatt1, |
|
|
DbGrid * |
db2, |
|
|
int |
iatt2 |
|
) |
| |
|
private |
Copy the initial information from db1 into db2
- Parameters
-
[in] | db1 | Input grid Db structure |
[in] | iatt1 | Rank of the attribute to be read from db1 |
[in] | db2 | Output grid Db structure |
[in] | iatt2 | Rank of the attribute to be written into db2 |
◆ _neigh_simfine()
void SimuRefine::_neigh_simfine |
( |
int |
type, |
|
|
int |
rank, |
|
|
int |
idx, |
|
|
int |
idy, |
|
|
int |
idz |
|
) |
| |
|
private |
Define the location of a neighborhood point
- Parameters
-
[in] | type | Type of kriging |
[in] | rank | Rank of the neighboring data |
[in] | idx | Shift along X |
[in] | idy | Shift along Y |
[in] | idz | Shift along Z |
◆ _read()
double SimuRefine::_read |
( |
DbGrid * |
db, |
|
|
int |
iatt, |
|
|
int |
ix0, |
|
|
int |
iy0, |
|
|
int |
iz0, |
|
|
int |
idx, |
|
|
int |
idy, |
|
|
int |
idz |
|
) |
| |
|
private |
Read a value in a Db
- Returns
- The value read
- Parameters
-
[in] | db | Grid Db structure |
[in] | iatt | Rank of the attribute to be read |
[in] | ix0 | Index of the target along X |
[in] | iy0 | Index of the target along Y |
[in] | iz0 | Index of the target along Z |
[in] | idx | Shift along X |
[in] | idy | Shift along Y |
[in] | idz | Shift along Z |
◆ _run()
bool SimuRefine::_run |
( |
| ) |
|
|
overrideprivatevirtual |
◆ _simulate_nodes()
void SimuRefine::_simulate_nodes |
( |
DbGrid * |
db, |
|
|
int |
iatt |
|
) |
| |
|
private |
Simulate the missing nodes
- Parameters
-
[in] | db | Grid Db structure |
[in] | iatt | Rank of the column |
◆ _simulate_target()
void SimuRefine::_simulate_target |
( |
DbGrid * |
db, |
|
|
int |
type, |
|
|
int |
iatt, |
|
|
int |
ix0, |
|
|
int |
iy0, |
|
|
int |
iz0 |
|
) |
| |
|
private |
Simulate the target cell
- Parameters
-
[in] | db | Grid Db structure |
[in] | type | Type of kriging |
[in] | iatt | Rank of the attribute to be read |
[in] | ix0 | Index of the target along X |
[in] | iy0 | Index of the target along Y |
[in] | iz0 | Index of the target along Z |
◆ _truncate_result()
void SimuRefine::_truncate_result |
( |
DbGrid * |
db2, |
|
|
int |
iatt2, |
|
|
DbGrid * |
db1, |
|
|
int |
iatt1 |
|
) |
| |
|
private |
Truncate the resulting information from db2 into db1
- Parameters
-
[in] | db2 | Input grid Db structure |
[in] | iatt2 | Rank of the attribute to be read from db2 |
[in] | db1 | Output grid Db structure |
[in] | iatt1 | Rank of the attribute to be written into db1 |
◆ _write()
void SimuRefine::_write |
( |
DbGrid * |
db, |
|
|
int |
iatt, |
|
|
int |
ix0, |
|
|
int |
iy0, |
|
|
int |
iz0, |
|
|
double |
value |
|
) |
| |
|
private |
Write a value in a Db
- Parameters
-
[in] | db | Grid Db structure |
[in] | iatt | Rank of the attribute to be written |
[in] | ix0 | Index of the target along X |
[in] | iy0 | Index of the target along Y |
[in] | iz0 | Index of the target along Z |
[in] | value | Value to be written |
◆ operator=()
◆ simulate()
Refine the simulation
- Returns
- Refined Grid
- Parameters
-
◆ _dx1
◆ _dx2
◆ _IXYZ
int SimuRefine::_IXYZ[3][2][5] |
|
private |
◆ _model
Model* SimuRefine::_model |
|
private |
◆ _nx1
◆ _nx2
◆ _param
◆ _STDV
double SimuRefine::_STDV[2][2] |
|
private |
◆ _WGT
double SimuRefine::_WGT[2][2][5] |
|
private |
◆ _x01
◆ _x02
◆ _XYZN
double SimuRefine::_XYZN[3][2][5] |
|
private |
The documentation for this class was generated from the following files: