![]() |
1.2.0
Geostatistics & Machine Learning toolbox | https://gstlearn.org
|
![]() |
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...
#include <DirParam.hpp>
Public Member Functions | |
DirParam (int npas=10, double dpas=1., double toldis=0.5, double tolang=90., int opt_code=0, int idate=0, double bench=TEST, double cylrad=TEST, double tolcode=0., const VectorDouble &breaks=VectorDouble(), const VectorDouble &codir=VectorDouble(), double angle2D=TEST, const ASpace *space=nullptr) | |
DirParam (const DbGrid *dbgrid, int npas, const VectorInt &grincr, const ASpace *space) | |
DirParam (const DirParam &r) | |
DirParam & | operator= (const DirParam &r) |
virtual | ~DirParam () |
virtual String | toString (const AStringFormat *strfmt=nullptr) const override |
AStringable Interface. More... | |
virtual bool | isConsistent (const ASpace *space) const override |
ASpaceObject Interface. More... | |
const ASpace * | getSpace () const |
double | getBench () const |
const VectorDouble & | getBreaks () const |
double | getBreak (int i) const |
const VectorDouble & | getCodirs () const |
double | getCodir (int i) const |
double | getCylRad () const |
double | getDPas () const |
double | getLag () const |
int | getIdate () const |
int | getLagNumber () const |
int | getOptionCode () const |
double | getTolAngle () const |
double | getTolCode () const |
double | getTolDist () const |
VectorInt | getGrincrs () const |
int | getGrincr (int i) const |
double | getMaximumDistance () const |
int | getBreakNumber () const |
bool | getFlagRegular () const |
void | setLagNumber (int npas) |
void | setOptionCode (int option_code) |
void | setIdate (int idate) |
void | setDPas (double dpas) |
void | setDLag (double dlag) |
void | setDPas (const DbGrid *db) |
void | setBench (double bench) |
void | setCylRad (double cylrad) |
void | setTolDist (double toldist) |
void | setTolAngle (double tolang) |
void | setTolCode (double tolcode) |
void | setBreaks (VectorDouble breaks) |
void | setCodir (VectorDouble codir) |
void | setGrincr (const VectorInt &grincr) |
bool | isLagValid (int ilag, bool flagAsym=false) const |
bool | isDimensionValid (int idim) const |
bool | isDefinedForGrid () const |
int | getLagRank (double dist) const |
![]() | |
ASpaceObject (const ASpace *space=nullptr) | |
ASpaceObject (const ASpace &space) | |
ASpaceObject (const ASpaceObject &r) | |
ASpaceObject & | operator= (const ASpaceObject &r) |
virtual | ~ASpaceObject () |
const ASpace * | getSpace () const |
Accessor to the current object space context. More... | |
bool | isConsistent () const |
Indicate if I am consistent with my current space context. More... | |
VectorDouble | getUnitaryVector () const |
Return unitary vector for the current space context. More... | |
unsigned int | getNDim () const |
Shortcuts to ASpace methods. More... | |
const VectorDouble & | getOrigin () const |
Return the current space context origin coordinates. More... | |
double | getDistance (const SpacePoint &p1, const SpacePoint &p2) const |
Return the distance between two space points for the current space context. More... | |
double | getDistance1D (const SpacePoint &p1, const SpacePoint &p2, int idim) const |
Return the distance along one direction between two space points. More... | |
VectorDouble | getIncrement (const SpacePoint &p1, const SpacePoint &p2) const |
Return the increment vector between two space points for the current space context. More... | |
![]() | |
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 |
Static Public Member Functions | |
static DirParam * | create (int npas=10, double dpas=1., double toldis=0.5, double tolang=90., int opt_code=0, int idate=0, double bench=TEST, double cylrad=TEST, double tolcode=0., const VectorDouble &breaks=VectorDouble(), const VectorDouble &codir=VectorDouble(), double angle2D=TEST, const ASpace *space=nullptr) |
static DirParam * | createOmniDirection (int npas=10, double dpas=1., double toldis=0.5, int opt_code=0, int idate=0, double bench=TEST, double cylrad=TEST, double tolcode=0., const VectorDouble &breaks=VectorDouble(), const ASpace *space=nullptr) |
static DirParam * | createFromGrid (const DbGrid *dbgrid, int npas=10, const VectorInt &grincr=VectorInt(), const ASpace *space=nullptr) |
static std::vector< DirParam > | createMultiple (int ndir, int npas=10, double dpas=1., double toldis=0.5, double angref=0., const ASpace *space=nullptr) |
static std::vector< DirParam > | createSeveral2D (const VectorDouble &angles, int npas=10, double dpas=1., double toldis=0.5, double tolang=TEST, const ASpace *space=nullptr) |
static std::vector< DirParam > | createMultipleInSpace (int npas, double dpas=1., const ASpace *space=nullptr) |
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.
The Direction consists in a series of rules (some are optional) for comparing two active samples of the Db:
In the case, the Db correspond to a grid, the lag is defined as an increment on the grid meshes (grincr)
DirParam::DirParam | ( | int | npas = 10 , |
double | dpas = 1. , |
||
double | toldis = 0.5 , |
||
double | tolang = 90. , |
||
int | opt_code = 0 , |
||
int | idate = 0 , |
||
double | bench = TEST , |
||
double | cylrad = TEST , |
||
double | tolcode = 0. , |
||
const VectorDouble & | breaks = VectorDouble() , |
||
const VectorDouble & | codir = VectorDouble() , |
||
double | angle2D = TEST , |
||
const ASpace * | space = nullptr |
||
) |
DirParam::DirParam | ( | const DbGrid * | dbgrid, |
int | npas, | ||
const VectorInt & | grincr, | ||
const ASpace * | space | ||
) |
DirParam::DirParam | ( | const DirParam & | r | ) |
|
virtual |
|
static |
|
static |
|
static |
|
static |
Create a set of calculation directions based on the Space definition
npas | Number of lags |
dpas | Dimension for the lag |
space | Pointer to the Space definition |
|
static |
|
static |
|
inline |
double DirParam::getBreak | ( | int | i | ) | const |
|
inline |
|
inline |
double DirParam::getCodir | ( | int | i | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
int DirParam::getGrincr | ( | int | i | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
int DirParam::getLagRank | ( | double | dist | ) | const |
Return the rank of the lag
[in] | dist | Distance |
double DirParam::getMaximumDistance | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
ASpaceObject Interface.
Implements ASpaceObject.
|
inline |
bool DirParam::isDimensionValid | ( | int | idim | ) | const |
bool DirParam::isLagValid | ( | int | ilag, |
bool | flagAsym = false |
||
) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void DirParam::setDPas | ( | const DbGrid * | db | ) |
|
inline |
|
inline |
|
inline |
|
inline |
void DirParam::setTolAngle | ( | double | tolang | ) |
|
inline |
|
inline |
|
overridevirtual |
AStringable Interface.
Reimplemented from ASpaceObject.