Loading [MathJax]/extensions/tex2jax.js
1.7.3
Geostatistics & Machine Learning toolbox | https://gstlearn.org
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CovContext Class Reference

#include <CovContext.hpp>

Inheritance diagram for CovContext:
ASpaceObject AStringable

Public Member Functions

 CovContext (int nvar=1, const ASpaceSharedPtr &space=ASpaceSharedPtr())
 
 CovContext (int nvar, int ndim, const VectorDouble &covar0=VectorDouble())
 
 CovContext (const Db *db, const ASpaceSharedPtr &space=ASpaceSharedPtr())
 
 CovContext (const Vario *vario, const ASpaceSharedPtr &space=ASpaceSharedPtr())
 
 CovContext (const CovContext &r)
 
CovContextoperator= (const CovContext &r)
 
virtual ~CovContext ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 AStringable interface.
 
virtual bool isConsistent (const ASpace *space) const override
 Indicate if I am consistent with the provided space.
 
bool isEqual (const CovContext &r) const
 
int getNVar () const
 
double getField () const
 
const VectorDoublegetCovar0 () const
 
double getCovar0 (int ivar, int jvar) const
 
void setNVar (int nvar)
 
void setField (double field)
 
void setCovar0s (const VectorDouble &covar0)
 
void setCovar0 (int ivar, int jvar, double covar0)
 
void copyCovContext (const CovContext &ctxt, bool severe=false)
 
const CovContextcreateReduce (const VectorInt &validVars) const
 
- Public Member Functions inherited from ASpaceObject
 ASpaceObject (const ASpaceSharedPtr &space=ASpaceSharedPtr())
 
 ASpaceObject (const ASpaceObject &r)
 
ASpaceObjectoperator= (const ASpaceObject &r)
 
virtual ~ASpaceObject ()
 
ASpaceSharedPtr getSpace () const
 Accessor to the current object space context.
 
bool isConsistent () const
 Indicate if I am consistent with my current space context.
 
VectorDouble getUnitaryVector () const
 Return unitary vector for the current space context.
 
bool isConsistent (const ASpaceSharedPtr &space) const
 Indicate if I am consistent with the provided space.
 
unsigned int getNDim (int ispace=-1) const
 Shortcuts to ASpace methods.
 
const VectorDoublegetOrigin (int ispace=-1) const
 Return the current space context origin coordinates.
 
double getDistance (const SpacePoint &p1, const SpacePoint &p2, int ispace=0) const
 Return the distance between two space points for the current space context.
 
VectorDouble getDistances (const SpacePoint &p1, const SpacePoint &p2) const
 Return all the distances (space composits) between two space points for the current space context.
 
VectorDouble getIncrement (const SpacePoint &p1, const SpacePoint &p2, int ispace=0) const
 Return the increment vector between two space points for the current space context.
 
- 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 CovContextcreate (int nvar, int ndim)
 

Constructor & Destructor Documentation

◆ CovContext() [1/5]

CovContext::CovContext ( int  nvar = 1,
const ASpaceSharedPtr space = ASpaceSharedPtr() 
)

Create a covariances context giving the number dimensions of a predefined space RN

Parameters
nvarNumber of variables
spaceSpace definition

◆ CovContext() [2/5]

CovContext::CovContext ( int  nvar,
int  ndim,
const VectorDouble covar0 = VectorDouble() 
)

Create a covariances context giving the number dimensions of a predefined space RN

Parameters
nvarNumber of variables
ndimNumber of dimension of the euclidean space (RN)
covar0Vector of variance-covariance

◆ CovContext() [3/5]

CovContext::CovContext ( const Db db,
const ASpaceSharedPtr space = ASpaceSharedPtr() 
)

TODO : check Db dimension vs provided space

◆ CovContext() [4/5]

CovContext::CovContext ( const Vario vario,
const ASpaceSharedPtr space = ASpaceSharedPtr() 
)

TODO : check vario dimension vs provided space

◆ CovContext() [5/5]

CovContext::CovContext ( const CovContext r)

◆ ~CovContext()

CovContext::~CovContext ( )
virtual

Member Function Documentation

◆ copyCovContext()

void CovContext::copyCovContext ( const CovContext ctxt,
bool  severe = false 
)

This operation sets the contents of the current CovContext class by copying the information from a source CovContext

Parameters
ctxtSource CovContext
severeWhen severe, does not allow modifying the number of variables

◆ create()

CovContext * CovContext::create ( int  nvar,
int  ndim 
)
static

◆ createReduce()

const CovContext * CovContext::createReduce ( const VectorInt validVars) const

◆ getCovar0() [1/2]

const VectorDouble & CovContext::getCovar0 ( ) const
inline

◆ getCovar0() [2/2]

double CovContext::getCovar0 ( int  ivar,
int  jvar 
) const

◆ getField()

double CovContext::getField ( ) const
inline

◆ getNVar()

int CovContext::getNVar ( ) const
inline

◆ isConsistent()

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

Indicate if I am consistent with the provided space.

TODO: Consistency of CovContext toward a space: Possible duplicate:

Implements ASpaceObject.

◆ isEqual()

bool CovContext::isEqual ( const CovContext r) const

Checks that two CovContext are 'similar'

Parameters
rSecondary CovContext to be compared with this
Returns

◆ operator=()

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

◆ setCovar0()

void CovContext::setCovar0 ( int  ivar,
int  jvar,
double  covar0 
)

◆ setCovar0s()

void CovContext::setCovar0s ( const VectorDouble covar0)

Define the covariance at the origin

Parameters
covar0Values

◆ setField()

void CovContext::setField ( double  field)
inline

◆ setNVar()

void CovContext::setNVar ( int  nvar)
inline

◆ toString()

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

AStringable interface.

Reimplemented from ASpaceObject.


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