gstlearn
1.0.0
CCC
|
#include <NoStatArray.hpp>
Public Member Functions | |
NoStatArray () | |
NoStatArray (const VectorString &codes, const Db *dbnostat) | |
NoStatArray (const NoStatArray &m) | |
NoStatArray & | operator= (const NoStatArray &m) |
virtual | ~NoStatArray () |
virtual String | toString (const AStringFormat *strfmt=nullptr) const override |
ICloneable interface. More... | |
double | getValue (const EConsElem &type, int icas, int rank, int icov=0, int iv1=-1, int iv2=-1, int igrf=-1) const override |
double | getValueByParam (int ipar, int icas, int rank) const override |
int | attachToMesh (const AMesh *mesh, bool verbose=false) const override |
void | detachFromMesh () const override |
int | attachToDb (Db *db, int icas, bool verbose=false) const override |
void | detachFromDb (Db *db, int icas) const override |
bool | isEmpty (int icas) const |
Public Member Functions inherited from ANoStat | |
ANoStat () | |
ANoStat (const VectorString &codes) | |
ANoStat (const ANoStat &m) | |
ANoStat & | operator= (const ANoStat &m) |
virtual | ~ANoStat () |
bool | isNotEmpty () const |
bool | isDefinedByCov (int icov=-1, int igrf=-1) const |
bool | isDefinedByType (const EConsElem &type, int igrf=-1) const |
bool | isDefinedByCovType (const EConsElem &type, int icov=-1, int igrf=-1) const |
bool | isDefined (const EConsElem &type, int icov=0, int iv1=-1, int iv2=-1, int igrf=-1) const |
bool | isDefinedforAnisotropy (int icov=-1, int igrf=-1) const |
bool | isDefinedforRotation (int icov=-1, int igrf=-1) const |
int | addNoStatElem (int igrf, int icov, const EConsElem &type, int iv1, int iv2) |
int | addNoStatElemByItem (const CovParamId &item) |
int | addNoStatElems (const VectorString &codes) |
void | deleteNoStatElem (int ipar) |
void | deleteAllNoStatElem () |
int | getRank (const EConsElem &type, int icov, int iv1=-1, int iv2=-1, int igrf=-1) const |
int | getIGrf (int ipar) const |
int | getICov (int ipar) const |
const EConsElem & | getType (int ipar) const |
int | getIV1 (int ipar) const |
int | getIV2 (int ipar) const |
int | getNoStatElemNumber () const |
const std::vector< CovParamId > & | getNoStats () const |
const CovParamId | getNoStat (int ipar) const |
int | attachModel (const Model *model) |
bool | matchIGrf (int ipar, int igrf0) const |
bool | matchICov (int ipar, int icov0) const |
bool | matchType (int ipar, const EConsElem &type0) const |
bool | matchIV1 (int ipar, int iv10) const |
bool | matchIV2 (int ipar, int iv20) const |
const std::vector< CovParamId > & | getAllItems () const |
const CovParamId | getItems (int ipar) const |
void | updateModel (Model *model, int icas1, int iech1, int icas2, int iech2) const |
void | updateModelByMesh (Model *model, int imesh) const |
Public Member Functions inherited from AStringable | |
AStringable () | |
AStringable (const AStringable &r) | |
AStringable & | operator= (const AStringable &r) |
virtual | ~AStringable () |
virtual void | display (const AStringFormat *strfmt=nullptr) const final |
virtual void | display (int level) const final |
Public Member Functions inherited from ICloneable | |
ICloneable () | |
virtual | ~ICloneable () |
virtual ICloneable * | clone () const =0 |
Private Member Functions | |
bool | _checkValid () const |
int | _getNpoints () const |
double | _interpolate (int ipar, int icas1, int iech1, int icas2, int iech2) const |
int | _informField (int ipar, const VectorVectorDouble &coords, VectorDouble &tab, bool verbose) const |
String | _displayStats (int ipar, int icas) const |
String | _displayStats (int icas) const |
Private Attributes | |
const Db * | _dbnostat |
MatrixRectangular | _tab |
Additional Inherited Members | |
Protected Member Functions inherited from ANoStat | |
void | _setAmesh (const AMesh *amesh) const |
void | _setDbin (const Db *dbin) const |
void | _setDbout (const Db *dbout) const |
bool | _isValid (int icas, int rank) const |
Protected Attributes inherited from ANoStat | |
const AMesh * | _amesh |
const Db * | _dbin |
const Db * | _dbout |
NoStatArray::NoStatArray | ( | ) |
NoStatArray::NoStatArray | ( | const VectorString & | codes, |
const Db * | dbnostat | ||
) |
NoStatArray::NoStatArray | ( | const NoStatArray & | m | ) |
|
virtual |
|
private |
|
private |
|
private |
|
inlineprivate |
|
private |
Inform the value of non-stationary parameter 'ipar' at samples defined by their coordinates
ipar | Rank of the non-stationary parameter |
coords | Coordinates of the samples (dimension: ndim, npar) |
tab | Return array of non-stationary values at samples |
verbose | Verbose flag |
|
private |
|
overridevirtual |
Attaching the current Non-Stationary parameters to the Db This function creates new fields set to the locator ELoc::NOSTAT. They will be deleted using the detachFromDb() method.
db | Db where the new ELoc::NOSTAT fields must be added |
icas | 1 for Dbin and 2 for Dbout |
verbose | Verbose flag |
Reimplemented from ANoStat.
|
overridevirtual |
Reimplemented from ANoStat.
|
overridevirtual |
Reimplemented from ANoStat.
|
overridevirtual |
Reimplemented from ANoStat.
|
overridevirtual |
Returns the value of a non-stationary parameter at a target sample
type | Type of non-stationary element (EConsElem) |
icas | Additional identifier (0 for Meshing; 1 for Dbin; 2 for Dbout) |
rank | Rank of the target (in Meshing (0); in Dbin (1) or in Dbout (2) |
icov | Rank of the Covariance |
iv1 | Rank of the first variable (optional) |
iv2 | Rank of the second variable (optional) |
igrf | Rank of the GRF |
Implements ANoStat.
|
overridevirtual |
Return the value of the non-stationary parameter (ipar) at target (rank)
ipar | Rank of the non-stationary parameter |
icas | Source definition: 0 : from Meshing (rank: absolute rank to be converted into relative) 1 : from Dbin 2 : from Dbout |
rank | Rank of the target |
Implements ANoStat.
bool NoStatArray::isEmpty | ( | int | icas | ) | const |
Check if the non-stationary values defined or not
icas | Type of information (0: meshing; 1: Dbin; 2: Dbout) |
NoStatArray & NoStatArray::operator= | ( | const NoStatArray & | m | ) |
|
overridevirtual |
|
private |
|
mutableprivate |