gstlearn  1.0.0
CCC
DirParam Class Reference

#include <DirParam.hpp>

Inheritance diagram for DirParam:
ASpaceObject AStringable

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)
 
DirParamoperator= (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...
 
double getBench () const
 
const VectorDoublegetBreaks () const
 
double getBreak (int i) const
 
const VectorDoublegetCodirs () 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
 
- Public Member Functions inherited from ASpaceObject
 ASpaceObject (const ASpace *space=nullptr)
 
 ASpaceObject (const ASpace &space)
 
 ASpaceObject (const ASpaceObject &r)
 
ASpaceObjectoperator= (const ASpaceObject &r)
 
virtual ~ASpaceObject ()
 
const ASpacegetSpace () 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 VectorDoublegetOrigin () 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...
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (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 DirParamcreate (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 DirParamcreateOmniDirection (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 DirParamcreateFromGrid (const DbGrid *dbgrid, int npas=10, const VectorInt &grincr=VectorInt(), const ASpace *space=nullptr)
 
static std::vector< DirParamcreateMultiple (int ndir, int npas=10, double dpas=1., double toldis=0.5, double angref=0., const ASpace *space=nullptr)
 
static std::vector< DirParamcreateSeveral2D (const VectorDouble &angles, int npas=10, double dpas=1., double toldis=0.5, double tolang=TEST, const ASpace *space=nullptr)
 
static std::vector< DirParamcreateMultipleInSpace (int npas, double dpas=1., const ASpace *space=nullptr)
 

Private Member Functions

void _completeDefinition (double angle2D=TEST)
 

Private Attributes

int _nPas
 
int _optionCode
 
int _idate
 
double _dPas
 
double _bench
 
double _cylRad
 
double _tolDist
 
double _tolAngle
 
double _tolCode
 
VectorDouble _breaks
 
VectorDouble _codir
 
VectorInt _grincr
 

Additional Inherited Members

- Protected Member Functions inherited from ASpaceObject
void setNDim (int ndim)
 Modify the Space dimension of an already created item (To be used only during creation ... in particular when reading NF) More...
 
- Protected Attributes inherited from ASpaceObject
const ASpace_space
 Current space context of the object. More...
 

Detailed Description

Experimental Variogram calculation direction parameters TODO : to be improved

Constructor & Destructor Documentation

◆ DirParam() [1/3]

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() [2/3]

DirParam::DirParam ( const DbGrid dbgrid,
int  npas,
const VectorInt grincr,
const ASpace space 
)

◆ DirParam() [3/3]

DirParam::DirParam ( const DirParam r)

◆ ~DirParam()

DirParam::~DirParam ( )
virtual

Member Function Documentation

◆ _completeDefinition()

void DirParam::_completeDefinition ( double  angle2D = TEST)
private

◆ create()

DirParam * 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

◆ createFromGrid()

DirParam * DirParam::createFromGrid ( const DbGrid dbgrid,
int  npas = 10,
const VectorInt grincr = VectorInt(),
const ASpace space = nullptr 
)
static

◆ createMultiple()

std::vector< DirParam > DirParam::createMultiple ( int  ndir,
int  npas = 10,
double  dpas = 1.,
double  toldis = 0.5,
double  angref = 0.,
const ASpace space = nullptr 
)
static

◆ createMultipleInSpace()

std::vector< DirParam > DirParam::createMultipleInSpace ( int  npas,
double  dpas = 1.,
const ASpace space = nullptr 
)
static

Create a set of calculation directions based on the Space definition

  • one direction per space axis
  • the other parameters are applied to each direction, such as:
    Parameters
    npasNumber of lags
    dpasDimension for the lag
    spacePointer to the Space definition
    Returns
    Remarks
    : the angular tolerance is set equal to 0

◆ createOmniDirection()

DirParam * 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

◆ createSeveral2D()

std::vector< DirParam > DirParam::createSeveral2D ( const VectorDouble angles,
int  npas = 10,
double  dpas = 1.,
double  toldis = 0.5,
double  tolang = TEST,
const ASpace space = nullptr 
)
static

◆ getBench()

double DirParam::getBench ( ) const
inline

◆ getBreak()

double DirParam::getBreak ( int  i) const

◆ getBreakNumber()

int DirParam::getBreakNumber ( ) const
inline

◆ getBreaks()

const VectorDouble& DirParam::getBreaks ( ) const
inline

◆ getCodir()

double DirParam::getCodir ( int  i) const

◆ getCodirs()

const VectorDouble& DirParam::getCodirs ( ) const
inline

◆ getCylRad()

double DirParam::getCylRad ( ) const
inline

◆ getDPas()

double DirParam::getDPas ( ) const
inline

◆ getFlagRegular()

bool DirParam::getFlagRegular ( ) const
inline

◆ getGrincr()

int DirParam::getGrincr ( int  i) const

◆ getGrincrs()

VectorInt DirParam::getGrincrs ( ) const
inline

◆ getIdate()

int DirParam::getIdate ( ) const
inline

◆ getLag()

double DirParam::getLag ( ) const
inline

◆ getLagNumber()

int DirParam::getLagNumber ( ) const
inline

◆ getMaximumDistance()

double DirParam::getMaximumDistance ( ) const

◆ getOptionCode()

int DirParam::getOptionCode ( ) const
inline

◆ getTolAngle()

double DirParam::getTolAngle ( ) const
inline

◆ getTolCode()

double DirParam::getTolCode ( ) const
inline

◆ getTolDist()

double DirParam::getTolDist ( ) const
inline

◆ isConsistent()

bool DirParam::isConsistent ( const ASpace space) const
overridevirtual

ASpaceObject Interface.

Implements ASpaceObject.

◆ isDefinedForGrid()

bool DirParam::isDefinedForGrid ( ) const
inline

◆ isDimensionValid()

bool DirParam::isDimensionValid ( int  idim) const

◆ isLagValid()

bool DirParam::isLagValid ( int  ilag,
bool  flagAsym = false 
) const

◆ operator=()

DirParam & DirParam::operator= ( const DirParam r)

◆ setBench()

void DirParam::setBench ( double  bench)
inline

◆ setBreaks()

void DirParam::setBreaks ( VectorDouble  breaks)
inline

◆ setCodir()

void DirParam::setCodir ( VectorDouble  codir)
inline

◆ setCylRad()

void DirParam::setCylRad ( double  cylrad)
inline

◆ setDLag()

void DirParam::setDLag ( double  dlag)
inline

◆ setDPas() [1/2]

void DirParam::setDPas ( const DbGrid db)

Set the value of the lag as computed from the Db (Grid organized)

Parameters
dbDb structure

◆ setDPas() [2/2]

void DirParam::setDPas ( double  dpas)
inline

◆ setGrincr()

void DirParam::setGrincr ( const VectorInt grincr)
inline

◆ setIdate()

void DirParam::setIdate ( int  idate)
inline

◆ setLagNumber()

void DirParam::setLagNumber ( int  npas)
inline

◆ setOptionCode()

void DirParam::setOptionCode ( int  option_code)
inline

◆ setTolAngle()

void DirParam::setTolAngle ( double  tolang)

◆ setTolCode()

void DirParam::setTolCode ( double  tolcode)
inline

◆ setTolDist()

void DirParam::setTolDist ( double  toldist)
inline

◆ toString()

String DirParam::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

AStringable Interface.

Reimplemented from ASpaceObject.

Member Data Documentation

◆ _bench

double DirParam::_bench
private

◆ _breaks

VectorDouble DirParam::_breaks
private

◆ _codir

VectorDouble DirParam::_codir
private

◆ _cylRad

double DirParam::_cylRad
private

◆ _dPas

double DirParam::_dPas
private

◆ _grincr

VectorInt DirParam::_grincr
private

◆ _idate

int DirParam::_idate
private

◆ _nPas

int DirParam::_nPas
private

◆ _optionCode

int DirParam::_optionCode
private

◆ _tolAngle

double DirParam::_tolAngle
private

◆ _tolCode

double DirParam::_tolCode
private

◆ _tolDist

double DirParam::_tolDist
private

The documentation for this class was generated from the following files: