1.6.0
CCC
 
Loading...
Searching...
No Matches
ACor Class Referenceabstract

Class containing the Covariance part of the Model. More...

#include <ACor.hpp>

Inheritance diagram for ACor:
ASpaceObject AStringable CorAniso CorGneiting

Detailed Description

Class containing the Covariance part of the Model.

It is the uppermost class of the Covariance Tree and is conceived as simple as possible on purpose (in order to let the user defined its own version if necessary): it must simply be able to return its value between two end-point (see eval method).

It is mainly implemented in CovAniso.hpp or ACorAnisoList.hpp

Public Member Functions

 ACor (const CovContext &ctxt)
 
 ACor (const ACor &r)
 
ACoroperator= (const ACor &r)
 
virtual ~ACor ()
 
virtual int getNVariables () const
 ACor Interface.
 
void setContext (const CovContext &ctxt)
 
virtual double eval0 (int ivar=0, int jvar=0, const CovCalcMode *mode=nullptr) const
 Calculate the covariance between two variables for 0-distance (stationary case)
 
virtual double eval (const SpacePoint &p1, const SpacePoint &p2, int ivar=0, int jvar=0, const CovCalcMode *mode=nullptr) const =0
 
virtual void copyCovContext (const CovContext &ctxt)
 
virtual void updateFromContext ()
 
virtual void optimizationPostProcess () const
 
virtual int makeElemNoStat (const EConsElem &econs, int iv1, int iv2, const AFunctional *func=nullptr, const Db *db=nullptr, const String &namecol=String())
 
const CovContextgetContext () const
 
CovContext getContextCopy () const
 
virtual void initFromContext ()
 
virtual void optimizationPreProcess (const std::vector< SpacePoint > &p, std::vector< SpacePoint > &p1As) const
 
virtual double evalCovOnSphere (double alpha, int degree=50, bool flagScaleDistance=false, const CovCalcMode *mode=nullptr) const
 
bool _checkDims (int idim, int jdim) const
 
virtual VectorDouble evalSpectrumOnSphere (int n, bool flagNormDistance=false, bool flagCumul=false) const
 
void attachNoStatDb (const Db *db)
 
virtual double evalSpectrum (const VectorDouble &freq, int ivar, int jvar) const
 
bool checkAndManageNoStatDb (const Db *&db, const String &namecol)
 
virtual void updateCovByMesh (int imesh, bool aniso=true)
 
virtual double getValue (const EConsElem &econs, int iv1, int iv2) const
 
virtual void makeStationary ()
 
void createNoStatTab ()
 
void informMeshByMesh (const AMesh *amesh) const
 
void informMeshByApex (const AMesh *amesh) const
 
VectorDouble informCoords (const VectorVectorDouble &coords, const EConsElem &econs, int iv1=0, int iv2=0) const
 
void informDbIn (const Db *dbin) const
 
void informDbOut (const Db *dbout) const
 
virtual void updateCovByPoints (int icas1, int iech1, int icas2, int iech2)
 
void manage (const Db *db1, const Db *db2) const
 
int getDimensionNumber () 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 ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 AStringable interface.
 
const ASpacegetSpace () 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.
 
virtual bool isConsistent (const ASpace *space) const =0
 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
 

Constructor & Destructor Documentation

◆ ACor() [1/2]

ACor::ACor ( const CovContext ctxt)

◆ ACor() [2/2]

ACor::ACor ( const ACor r)

◆ ~ACor()

ACor::~ACor ( )
virtual

Member Function Documentation

◆ _checkDims()

bool ACor::_checkDims ( int  idim,
int  jdim 
) const

◆ attachNoStatDb()

void ACor::attachNoStatDb ( const Db db)

◆ checkAndManageNoStatDb()

bool ACor::checkAndManageNoStatDb ( const Db *&  db,
const String namecol 
)

◆ copyCovContext()

void ACor::copyCovContext ( const CovContext ctxt)
virtual

◆ createNoStatTab()

void ACor::createNoStatTab ( )

◆ eval()

virtual double ACor::eval ( const SpacePoint p1,
const SpacePoint p2,
int  ivar = 0,
int  jvar = 0,
const CovCalcMode mode = nullptr 
) const
pure virtual

Implemented in CorAniso, and CorGneiting.

◆ eval0()

double ACor::eval0 ( int  ivar = 0,
int  jvar = 0,
const CovCalcMode mode = nullptr 
) const
virtual

Calculate the covariance between two variables for 0-distance (stationary case)

◆ evalCovOnSphere()

virtual double ACor::evalCovOnSphere ( double  alpha,
int  degree = 50,
bool  flagScaleDistance = false,
const CovCalcMode mode = nullptr 
) const
inlinevirtual

Reimplemented in CorAniso.

◆ evalSpectrum()

virtual double ACor::evalSpectrum ( const VectorDouble freq,
int  ivar,
int  jvar 
) const
inlinevirtual

Reimplemented in CorAniso.

◆ evalSpectrumOnSphere()

virtual VectorDouble ACor::evalSpectrumOnSphere ( int  n,
bool  flagNormDistance = false,
bool  flagCumul = false 
) const
inlinevirtual

Reimplemented in CorAniso.

◆ getContext()

const CovContext & ACor::getContext ( ) const
inline

◆ getContextCopy()

CovContext ACor::getContextCopy ( ) const
inline

◆ getDimensionNumber()

int ACor::getDimensionNumber ( ) const
inline

◆ getNVariables()

virtual int ACor::getNVariables ( ) const
inlinevirtual

ACor Interface.

Reimplemented in CorAniso, and CorGneiting.

◆ getValue()

virtual double ACor::getValue ( const EConsElem &  econs,
int  iv1,
int  iv2 
) const
inlinevirtual

Reimplemented in CorAniso.

◆ informCoords()

VectorDouble ACor::informCoords ( const VectorVectorDouble coords,
const EConsElem &  econs,
int  iv1 = 0,
int  iv2 = 0 
) const

◆ informDbIn()

void ACor::informDbIn ( const Db dbin) const

◆ informDbOut()

void ACor::informDbOut ( const Db dbout) const

◆ informMeshByApex()

void ACor::informMeshByApex ( const AMesh amesh) const

◆ informMeshByMesh()

void ACor::informMeshByMesh ( const AMesh amesh) const

◆ initFromContext()

virtual void ACor::initFromContext ( )
inlinevirtual

Reimplemented in CorAniso.

◆ makeElemNoStat()

int ACor::makeElemNoStat ( const EConsElem &  econs,
int  iv1,
int  iv2,
const AFunctional func = nullptr,
const Db db = nullptr,
const String namecol = String() 
)
virtual

◆ makeStationary()

void ACor::makeStationary ( )
virtual

◆ manage()

void ACor::manage ( const Db db1,
const Db db2 
) const
inline

◆ operator=()

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

◆ optimizationPostProcess()

virtual void ACor::optimizationPostProcess ( ) const
inlinevirtual

Reimplemented in CorAniso.

◆ optimizationPreProcess()

virtual void ACor::optimizationPreProcess ( const std::vector< SpacePoint > &  p,
std::vector< SpacePoint > &  p1As 
) const
inlinevirtual

Reimplemented in CorAniso.

◆ setContext()

void ACor::setContext ( const CovContext ctxt)
inline

◆ updateCovByMesh()

virtual void ACor::updateCovByMesh ( int  imesh,
bool  aniso = true 
)
inlinevirtual

Reimplemented in CorAniso.

◆ updateCovByPoints()

virtual void ACor::updateCovByPoints ( int  icas1,
int  iech1,
int  icas2,
int  iech2 
)
inlinevirtual

Reimplemented in CorAniso.

◆ updateFromContext()

virtual void ACor::updateFromContext ( )
inlinevirtual

Reimplemented in CorAniso.


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