1.3.0
CCC
 
CovContext Class Reference

#include <CovContext.hpp>

Inheritance diagram for CovContext:
ASpaceObject AStringable

Public Member Functions

 CovContext (int nvar=1, const ASpace *space=nullptr)
 
 CovContext (int nvar, int ndim, const VectorDouble &mean=VectorDouble(), const VectorDouble &covar0=VectorDouble())
 
 CovContext (const Db *db, const ASpace *space=nullptr)
 
 CovContext (const Vario *vario, const ASpace *space=nullptr)
 
 CovContext (const CovContext &r)
 
CovContextoperator= (const CovContext &r)
 
virtual ~CovContext ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 AStringable interface. More...
 
virtual bool isConsistent (const ASpace *space) const override
 Indicate if I am consistent with the provided space. More...
 
bool isEqual (const CovContext &r) const
 
int getNVar () const
 
double getField () const
 
const VectorDoublegetMean () const
 
const VectorDoublegetCovar0 () const
 
const ASpacegetASpace () const
 
double getMean (int ivar) const
 
double getCovar0 (int ivar, int jvar) const
 
void setNVar (int nvar)
 
void setField (double field)
 
void setMean (const VectorDouble &mean)
 
void setMean (const double mean, int ivar=0)
 
void setCovar0 (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 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 CovContextcreate (int nvar, int ndim)
 

Constructor & Destructor Documentation

CovContext::CovContext ( int  nvar = 1,
const ASpace space = nullptr 
)

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

Parameters
nvarNumber of variables
spaceSpace definition
CovContext::CovContext ( int  nvar,
int  ndim,
const VectorDouble mean = VectorDouble(),
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)
meanVector of Means
covar0Vector of variance-covariance
CovContext::CovContext ( const Db db,
const ASpace space = nullptr 
)

TODO : check Db dimension vs provided space

CovContext::CovContext ( const Vario vario,
const ASpace space = nullptr 
)

TODO : check vario dimension vs provided space

CovContext::CovContext ( const CovContext r)
CovContext::~CovContext ( )
virtual

Member Function Documentation

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
CovContext * CovContext::create ( int  nvar,
int  ndim 
)
static
const CovContext * CovContext::createReduce ( const VectorInt validVars) const
const ASpace* CovContext::getASpace ( ) const
inline
const VectorDouble& CovContext::getCovar0 ( ) const
inline
double CovContext::getCovar0 ( int  ivar,
int  jvar 
) const
double CovContext::getField ( ) const
inline
const VectorDouble& CovContext::getMean ( ) const
inline
double CovContext::getMean ( int  ivar) const
int CovContext::getNVar ( ) const
inline
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.

bool CovContext::isEqual ( const CovContext r) const

Checks that two CovContext are 'similar'

Parameters
rSecondary CovContext to be compared with this
Returns
CovContext & CovContext::operator= ( const CovContext r)
void CovContext::setCovar0 ( const VectorDouble covar0)

Define the covariance at the origin

Parameters
covar0Values
void CovContext::setCovar0 ( int  ivar,
int  jvar,
double  covar0 
)
void CovContext::setField ( double  field)
inline
void CovContext::setMean ( const VectorDouble mean)
void CovContext::setMean ( const double  mean,
int  ivar = 0 
)

Define the Mean for one variable

Parameters
meanValue for the mean
ivarRank of the variable (starting from 0)
void CovContext::setNVar ( int  nvar)
inline
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: