1.6.0
CCC
 
Loading...
Searching...
No Matches
CorAniso Class Reference

This class describes an elementary covariance. More...

#include <CorAniso.hpp>

Inheritance diagram for CorAniso:
ACor ICloneable ASpaceObject AStringable

Detailed Description

This class describes an elementary covariance.

This covariance is described through the following list of parameters:

  • the covariance type: the list of these types is provided in ECov.hpp
  • the largest set of parameters for any covariance: range(s), anisotropy angle(s), third parameter. Some of these parameters do not make sense, depending on the covariance type: e.g. the range for nugget effect, the third parameter for a spherical structure, ... All these parameters are processed and stored as a tensor in order to avoid repetitive calculations.

Public Member Functions

 CorAniso (const ECov &type, const CovContext &ctxt)
 
 CorAniso (const String &symbol, const CovContext &ctxt)
 
 CorAniso (const ECov &type, double range, double param, const CovContext &ctxt, bool flagRange=true)
 
 CorAniso (const CorAniso &r)
 
CorAnisooperator= (const CorAniso &r)
 
virtual ~CorAniso ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 ICloneable Interface.
 
virtual bool isConsistent (const ASpace *space) const override
 ASpaceObject Interface.
 
virtual int getNVariables () const override
 ACov Interface.
 
virtual double eval (const SpacePoint &p1, const SpacePoint &p2, int ivar=0, int jvar=0, const CovCalcMode *mode=nullptr) const override
 ACov Interface.
 
double evalCor (const SpacePoint &p1, const SpacePoint &p2, const CovCalcMode *mode=nullptr, int ivar=0, int jvar=0) const
 
virtual double evalCovOnSphere (double alpha, int degree=50, bool flagScaleDistance=true, const CovCalcMode *mode=nullptr) const override
 
virtual VectorDouble evalSpectrumOnSphere (int n, bool flagNormDistance=false, bool flagCumul=false) const override
 
virtual double evalSpectrum (const VectorDouble &freq, int ivar=0, int jvar=0) const override
 
virtual double getIntegralRange (int ndisc, double hmax) const
 
virtual String getFormula () const
 
virtual double getBallRadius () const
 
void optimizationPreProcess (const std::vector< SpacePoint > &p, std::vector< SpacePoint > &p1As) const override
 
void optimizationSetTargetByIndex (int iech, const std::vector< SpacePoint > &p1As, SpacePoint &p2A) const
 
void optimizationPostProcess () const override
 
bool isNoStat () const
 
bool isValidForTurningBand () const
 
double simulateTurningBand (double t0, TurningBandOperate &operTB) const
 
bool isValidForSpectral () const
 
MatrixRectangular simulateSpectralOmega (int nb) const
 
void setContext (const CovContext &ctxt)
 
void setParam (double param)
 
void setNoStatFactor (double noStatFactor)
 
void setRangeIsotropic (double range)
 Practical range.
 
void setRange (int idim, double range)
 
void setRanges (const VectorDouble &ranges)
 
void setScale (double scale)
 
void setScale (int idim, double scale)
 Make the covariance isotropic.
 
void setScales (const VectorDouble &scales)
 
void setAnisoRotation (const Rotation &rot)
 
void setAnisoRotation (const VectorDouble &rot)
 
void setAnisoAngles (const VectorDouble &angles)
 
void setAnisoAngle (int idim, double angle)
 
void setRotationAnglesAndRadius (const VectorDouble &angles=VectorDouble(), const VectorDouble &ranges=VectorDouble(), const VectorDouble &scales=VectorDouble())
 
VectorDouble getRanges () const
 
const RotationgetAnisoRotation () const
 
const VectorDoublegetScales () const
 
void setType (const ECov &type)
 
double getRange () const
 
double getScale () const
 
bool getFlagAniso () const
 
bool getFlagRotation () const
 
double getRange (int idim) const
 
double getScale (int idim) const
 
VectorDouble getAnisoAngles () const
 
const MatrixSquareGeneralgetAnisoRotMat () const
 
const MatrixSquareGeneralgetAnisoInvMat () const
 
VectorDouble getAnisoCoeffs () const
 
double getAnisoAngles (int idim) const
 
double getAnisoRotMat (int idim, int jdim) const
 
double getAnisoCoeffs (int idim) const
 
const ECov & getType () const
 
double getParam () const
 
double getScadef () const
 
double getParMax () const
 
int getMaxNDim () const
 
int getMinOrder () const
 
bool hasInt1D () const
 
bool hasInt2D () const
 
int hasRange () const
 
int hasParam () const
 
String getCovName () const
 
bool isIsotropic () const
 
bool isAsymptotic () const
 
bool hasRotation () const
 
const TensorgetAniso () const
 
void setAniso (const Tensor &aniso)
 
const ACovFuncgetCova () const
 
int getGradParamNumber () const
 
bool hasCovDerivative () const
 
bool hasCovOnSphere () const
 
bool hasSpectrumOnSphere () const
 
bool hasMarkovCoeffs () const
 
bool hasSpectrumOnRn () const
 
double normalizeOnSphere (int n=50) const
 
void makeRangeNoStatDb (const String &namecol, int idim=0, const Db *db=nullptr)
 
void makeScaleNoStatDb (const String &namecol, int idim=0, const Db *db=nullptr)
 
void makeAngleNoStatDb (const String &namecol, int idim=0, const Db *db=nullptr)
 
void makeTensorNoStatDb (const String &namecol, int idim=0, int jdim=0, const Db *db=nullptr)
 
void makeParamNoStatDb (const String &namecol, const Db *db=nullptr)
 
void makeRangeNoStatFunctional (const AFunctional *func, int idim=0)
 
void makeScaleNoStatFunctional (const AFunctional *func, int idim=0)
 
void makeAngleNoStatFunctional (const AFunctional *func, int idim=0)
 
void makeTensorNoStatFunctional (const AFunctional *func, int idim=0, int jdim=0)
 
void makeParamNoStatFunctional (const AFunctional *func)
 
void makeRangeStationary (int idim=0)
 
void makeScaleStationary (int idim=0)
 
void makeAngleStationary (int idim=0)
 
void makeTensorStationary (int idim, int jdim)
 
void makeParamStationary ()
 
int getNAngles () const
 
int getNRanges () const
 
int getNScales () const
 
bool isNoStatForParam () const
 
bool isNoStatForTensor () const
 
bool isNoStatForAnisotropy () const
 
bool isNoStatForVariance () const
 
bool isNoStatForRotation () const
 
VectorDouble evalCovOnSphereVec (const VectorDouble &alpha, int degree=50, bool flagScaleDistance=false, const CovCalcMode *mode=nullptr) const
 
Array evalCovFFT (const VectorDouble &hmax, int N=128, int ivar=0, int jvar=0) const
 
VectorDouble getMarkovCoeffs () const
 
void setMarkovCoeffs (const VectorDouble &coeffs)
 
void setMarkovCoeffsBySquaredPolynomials (VectorDouble coeffs1, VectorDouble coeffs2, double eps=0)
 
void computeMarkovCoeffs ()
 
double getCorrec () const
 
double getFullCorrec () const
 
void nostatUpdate (CovInternal *covint)
 
void informMeshByMeshForAnisotropy (const AMesh *amesh) const
 
void informMeshByApexForAnisotropy (const AMesh *amesh) const
 
void informDbInForAnisotropy (const Db *dbin) const
 
void informDbOutForAnisotropy (const Db *dbout) const
 
void updateCovByPoints (int icas1, int iech1, int icas2, int iech2) override
 Tell if the use of Optimization is enabled or not.
 
void updateCovByMesh (int imesh, bool aniso=true) override
 
double getValue (const EConsElem &econs, int iv1, int iv2) const override
 
void setOptimEnabled (bool flag) const
 
void computeCorrec ()
 
double evalCorFromH (double h, const CovCalcMode *mode) const
 
double getDetTensor () const
 
void updateFromContext () override
 
void initFromContext () override
 
void optimizationSetTarget (const SpacePoint &pt, SpacePoint &p2A) const
 
void optimizationTransformSP (const SpacePoint &ptin, SpacePoint &ptout) const
 
String toStringParams (const AStringFormat *strfmt=nullptr) const
 
String toStringNoStat (const AStringFormat *strfmt=nullptr, int i=0) const
 
- Public Member Functions inherited from ACor
 ACor (const CovContext &ctxt)
 
 ACor (const ACor &r)
 
ACoroperator= (const ACor &r)
 
virtual ~ACor ()
 
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 void copyCovContext (const CovContext &ctxt)
 
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
 
bool _checkDims (int idim, int jdim) const
 
void attachNoStatDb (const Db *db)
 
bool checkAndManageNoStatDb (const Db *&db, const String &namecol)
 
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
 
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 ()
 
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.
 
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
 
- Public Member Functions inherited from ICloneable
 ICloneable ()
 
virtual ~ICloneable ()
 
virtual ICloneableclone () const =0
 

Static Public Member Functions

static bool isOptimizationInitialized (const std::vector< SpacePoint > &p1As, const Db *db=nullptr)
 
static CorAnisocreateIsotropic (const CovContext &ctxt, const ECov &type, double range, double param=1., bool flagRange=true)
 
static CorAnisocreateAnisotropic (const CovContext &ctxt, const ECov &type, const VectorDouble &ranges, double param=1., const VectorDouble &angles=VectorDouble(), bool flagRange=true)
 
static CorAnisocreateIsotropicMulti (const CovContext &ctxt, const ECov &type, double range, double param=1., bool flagRange=true)
 
static CorAnisocreateAnisotropicMulti (const CovContext &ctxt, const ECov &type, const VectorDouble &ranges, double param=1., const VectorDouble &angles=VectorDouble(), bool flagRange=true)
 

Constructor & Destructor Documentation

◆ CorAniso() [1/4]

CorAniso::CorAniso ( const ECov &  type,
const CovContext ctxt 
)

◆ CorAniso() [2/4]

CorAniso::CorAniso ( const String symbol,
const CovContext ctxt 
)

◆ CorAniso() [3/4]

CorAniso::CorAniso ( const ECov &  type,
double  range,
double  param,
const CovContext ctxt,
bool  flagRange = true 
)

◆ CorAniso() [4/4]

CorAniso::CorAniso ( const CorAniso r)

◆ ~CorAniso()

CorAniso::~CorAniso ( )
virtual

Member Function Documentation

◆ computeCorrec()

void CorAniso::computeCorrec ( )

◆ computeMarkovCoeffs()

void CorAniso::computeMarkovCoeffs ( )

◆ createAnisotropic()

CorAniso * CorAniso::createAnisotropic ( const CovContext ctxt,
const ECov &  type,
const VectorDouble ranges,
double  param = 1.,
const VectorDouble angles = VectorDouble(),
bool  flagRange = true 
)
static

◆ createAnisotropicMulti()

CorAniso * CorAniso::createAnisotropicMulti ( const CovContext ctxt,
const ECov &  type,
const VectorDouble ranges,
double  param = 1.,
const VectorDouble angles = VectorDouble(),
bool  flagRange = true 
)
static

◆ createIsotropic()

CorAniso * CorAniso::createIsotropic ( const CovContext ctxt,
const ECov &  type,
double  range,
double  param = 1.,
bool  flagRange = true 
)
static

◆ createIsotropicMulti()

CorAniso * CorAniso::createIsotropicMulti ( const CovContext ctxt,
const ECov &  type,
double  range,
double  param = 1.,
bool  flagRange = true 
)
static

◆ eval()

double CorAniso::eval ( const SpacePoint p1,
const SpacePoint p2,
int  ivar = 0,
int  jvar = 0,
const CovCalcMode mode = nullptr 
) const
overridevirtual

ACov Interface.

Implements ACor.

◆ evalCor()

double CorAniso::evalCor ( const SpacePoint p1,
const SpacePoint p2,
const CovCalcMode mode = nullptr,
int  ivar = 0,
int  jvar = 0 
) const

◆ evalCorFromH()

double CorAniso::evalCorFromH ( double  h,
const CovCalcMode mode 
) const

Calculate the value of the covariance from the distance between bi-points This distance has been calculated beforehand (possibly using anisotropy)

Parameters
hInput distance
modePointer to CovCalcMode structure (optional)
Returns
The covariance value

◆ evalCovFFT()

Array CorAniso::evalCovFFT ( const VectorDouble hmax,
int  N = 128,
int  ivar = 0,
int  jvar = 0 
) const

◆ evalCovOnSphere()

double CorAniso::evalCovOnSphere ( double  alpha,
int  degree = 50,
bool  flagScaleDistance = true,
const CovCalcMode mode = nullptr 
) const
overridevirtual

Reimplemented from ACor.

◆ evalCovOnSphereVec()

VectorDouble CorAniso::evalCovOnSphereVec ( const VectorDouble alpha,
int  degree = 50,
bool  flagScaleDistance = false,
const CovCalcMode mode = nullptr 
) const

◆ evalSpectrum()

double CorAniso::evalSpectrum ( const VectorDouble freq,
int  ivar = 0,
int  jvar = 0 
) const
overridevirtual

Reimplemented from ACor.

◆ evalSpectrumOnSphere()

VectorDouble CorAniso::evalSpectrumOnSphere ( int  n,
bool  flagNormDistance = false,
bool  flagCumul = false 
) const
overridevirtual

Reimplemented from ACor.

◆ getAniso()

const Tensor & CorAniso::getAniso ( ) const
inline

◆ getAnisoAngles() [1/2]

VectorDouble CorAniso::getAnisoAngles ( ) const
inline

◆ getAnisoAngles() [2/2]

double CorAniso::getAnisoAngles ( int  idim) const
inline

◆ getAnisoCoeffs() [1/2]

VectorDouble CorAniso::getAnisoCoeffs ( ) const

◆ getAnisoCoeffs() [2/2]

double CorAniso::getAnisoCoeffs ( int  idim) const
inline

◆ getAnisoInvMat()

const MatrixSquareGeneral & CorAniso::getAnisoInvMat ( ) const
inline

◆ getAnisoRotation()

const Rotation & CorAniso::getAnisoRotation ( ) const
inline

◆ getAnisoRotMat() [1/2]

const MatrixSquareGeneral & CorAniso::getAnisoRotMat ( ) const
inline

◆ getAnisoRotMat() [2/2]

double CorAniso::getAnisoRotMat ( int  idim,
int  jdim 
) const
inline

◆ getBallRadius()

virtual double CorAniso::getBallRadius ( ) const
inlinevirtual

◆ getCorrec()

double CorAniso::getCorrec ( ) const

◆ getCova()

const ACovFunc * CorAniso::getCova ( ) const
inline

◆ getCovName()

String CorAniso::getCovName ( ) const
inline

◆ getDetTensor()

double CorAniso::getDetTensor ( ) const

◆ getFlagAniso()

bool CorAniso::getFlagAniso ( ) const
inline

◆ getFlagRotation()

bool CorAniso::getFlagRotation ( ) const
inline

◆ getFormula()

virtual String CorAniso::getFormula ( ) const
inlinevirtual

◆ getFullCorrec()

double CorAniso::getFullCorrec ( ) const

◆ getGradParamNumber()

int CorAniso::getGradParamNumber ( ) const

◆ getIntegralRange()

double CorAniso::getIntegralRange ( int  ndisc,
double  hmax 
) const
virtual

Calculate the Integral Range in various Space Dimension (1, 2 or 3)

Returns

◆ getMarkovCoeffs()

VectorDouble CorAniso::getMarkovCoeffs ( ) const

◆ getMaxNDim()

int CorAniso::getMaxNDim ( ) const
inline

◆ getMinOrder()

int CorAniso::getMinOrder ( ) const
inline

◆ getNAngles()

int CorAniso::getNAngles ( ) const
inline

◆ getNRanges()

int CorAniso::getNRanges ( ) const
inline

◆ getNScales()

int CorAniso::getNScales ( ) const
inline

◆ getNVariables()

virtual int CorAniso::getNVariables ( ) const
inlineoverridevirtual

ACov Interface.

Reimplemented from ACor.

◆ getParam()

double CorAniso::getParam ( ) const

For compatibility, this function returns 0 if the Covariance has no Third Parameter

Returns
Third parameter

◆ getParMax()

double CorAniso::getParMax ( ) const
inline

◆ getRange() [1/2]

double CorAniso::getRange ( ) const

This function returns the range in the isotropic case In the anisotropic case, it returns the largest range over all directions

Returns

◆ getRange() [2/2]

double CorAniso::getRange ( int  idim) const
inline

◆ getRanges()

VectorDouble CorAniso::getRanges ( ) const

◆ getScadef()

double CorAniso::getScadef ( ) const
inline

◆ getScale() [1/2]

double CorAniso::getScale ( ) const

◆ getScale() [2/2]

double CorAniso::getScale ( int  idim) const
inline

◆ getScales()

const VectorDouble & CorAniso::getScales ( ) const
inline

◆ getType()

const ECov & CorAniso::getType ( ) const
inline

◆ getValue()

double CorAniso::getValue ( const EConsElem &  econs,
int  iv1,
int  iv2 
) const
overridevirtual

Reimplemented from ACor.

◆ hasCovDerivative()

bool CorAniso::hasCovDerivative ( ) const
inline

◆ hasCovOnSphere()

bool CorAniso::hasCovOnSphere ( ) const
inline

◆ hasInt1D()

bool CorAniso::hasInt1D ( ) const
inline

◆ hasInt2D()

bool CorAniso::hasInt2D ( ) const
inline

◆ hasMarkovCoeffs()

bool CorAniso::hasMarkovCoeffs ( ) const
inline

◆ hasParam()

int CorAniso::hasParam ( ) const
inline

◆ hasRange()

int CorAniso::hasRange ( ) const
inline

◆ hasRotation()

bool CorAniso::hasRotation ( ) const
inline

◆ hasSpectrumOnRn()

bool CorAniso::hasSpectrumOnRn ( ) const
inline

◆ hasSpectrumOnSphere()

bool CorAniso::hasSpectrumOnSphere ( ) const
inline

◆ informDbInForAnisotropy()

void CorAniso::informDbInForAnisotropy ( const Db dbin) const

◆ informDbOutForAnisotropy()

void CorAniso::informDbOutForAnisotropy ( const Db dbout) const

◆ informMeshByApexForAnisotropy()

void CorAniso::informMeshByApexForAnisotropy ( const AMesh amesh) const

◆ informMeshByMeshForAnisotropy()

void CorAniso::informMeshByMeshForAnisotropy ( const AMesh amesh) const

◆ initFromContext()

void CorAniso::initFromContext ( )
overridevirtual

Reimplemented from ACor.

◆ isAsymptotic()

bool CorAniso::isAsymptotic ( ) const
inline

◆ isConsistent()

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

ASpaceObject Interface.

Implements ASpaceObject.

◆ isIsotropic()

bool CorAniso::isIsotropic ( ) const
inline

◆ isNoStat()

bool CorAniso::isNoStat ( ) const

◆ isNoStatForAnisotropy()

bool CorAniso::isNoStatForAnisotropy ( ) const
inline

◆ isNoStatForParam()

bool CorAniso::isNoStatForParam ( ) const
inline

◆ isNoStatForRotation()

bool CorAniso::isNoStatForRotation ( ) const
inline

◆ isNoStatForTensor()

bool CorAniso::isNoStatForTensor ( ) const
inline

◆ isNoStatForVariance()

bool CorAniso::isNoStatForVariance ( ) const
inline

◆ isOptimizationInitialized()

bool CorAniso::isOptimizationInitialized ( const std::vector< SpacePoint > &  p1As,
const Db db = nullptr 
)
static

Checks that the Optimization has already been initiated, by:

  • checking that the storage (for Sample Points projected in the Covariance rotation system) is already allocated
  • checking that the dimension of this storage is correct (only if 'db' is provided): in particular, this check is not necessary when freeing this storage.

◆ isValidForSpectral()

bool CorAniso::isValidForSpectral ( ) const

◆ isValidForTurningBand()

bool CorAniso::isValidForTurningBand ( ) const

◆ makeAngleNoStatDb()

void CorAniso::makeAngleNoStatDb ( const String namecol,
int  idim = 0,
const Db db = nullptr 
)

◆ makeAngleNoStatFunctional()

void CorAniso::makeAngleNoStatFunctional ( const AFunctional func,
int  idim = 0 
)

◆ makeAngleStationary()

void CorAniso::makeAngleStationary ( int  idim = 0)

◆ makeParamNoStatDb()

void CorAniso::makeParamNoStatDb ( const String namecol,
const Db db = nullptr 
)

◆ makeParamNoStatFunctional()

void CorAniso::makeParamNoStatFunctional ( const AFunctional func)

◆ makeParamStationary()

void CorAniso::makeParamStationary ( )

◆ makeRangeNoStatDb()

void CorAniso::makeRangeNoStatDb ( const String namecol,
int  idim = 0,
const Db db = nullptr 
)

◆ makeRangeNoStatFunctional()

void CorAniso::makeRangeNoStatFunctional ( const AFunctional func,
int  idim = 0 
)

◆ makeRangeStationary()

void CorAniso::makeRangeStationary ( int  idim = 0)

◆ makeScaleNoStatDb()

void CorAniso::makeScaleNoStatDb ( const String namecol,
int  idim = 0,
const Db db = nullptr 
)

◆ makeScaleNoStatFunctional()

void CorAniso::makeScaleNoStatFunctional ( const AFunctional func,
int  idim = 0 
)

◆ makeScaleStationary()

void CorAniso::makeScaleStationary ( int  idim = 0)

◆ makeTensorNoStatDb()

void CorAniso::makeTensorNoStatDb ( const String namecol,
int  idim = 0,
int  jdim = 0,
const Db db = nullptr 
)

◆ makeTensorNoStatFunctional()

void CorAniso::makeTensorNoStatFunctional ( const AFunctional func,
int  idim = 0,
int  jdim = 0 
)

◆ makeTensorStationary()

void CorAniso::makeTensorStationary ( int  idim,
int  jdim 
)

◆ normalizeOnSphere()

double CorAniso::normalizeOnSphere ( int  n = 50) const

◆ nostatUpdate()

void CorAniso::nostatUpdate ( CovInternal covint)

Update the Model in the case of Non-stationary parameters This requires the knowledge of the two end-points

Parameters
[in]covintInternal structure for non-stationarity or NULL (for stationary case)

◆ operator=()

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

◆ optimizationPostProcess()

void CorAniso::optimizationPostProcess ( ) const
overridevirtual

Reimplemented from ACor.

◆ optimizationPreProcess()

void CorAniso::optimizationPreProcess ( const std::vector< SpacePoint > &  p,
std::vector< SpacePoint > &  p1As 
) const
overridevirtual

Transform a set of Space Points using the anisotropy tensor The set of resulting Space Points are stored as private member of this. Note that ALL samples are processed, independently from the presence of a selection or checking for heterotopy.

Parameters
pVector of SpacePoints
p1AsVector of SpacePoints after projection

Reimplemented from ACor.

◆ optimizationSetTarget()

void CorAniso::optimizationSetTarget ( const SpacePoint pt,
SpacePoint p2A 
) const

Define the second Space Point by transforming the input Space Point 'pt' on the basis of the current covariance

Parameters
ptTarget sample provided as a Space Point
p2ASpace Point after projection

◆ optimizationSetTargetByIndex()

void CorAniso::optimizationSetTargetByIndex ( int  iech,
const std::vector< SpacePoint > &  p1As,
SpacePoint p2A 
) const

Define the Second Space Point as coinciding with the Input Space Point 'iech'. Note that, as the Input Space Points are already transformed in the basis of the current structure, it is just an assignment.

Parameters
iechRank of the sample among the recorded Space Points
p1AsVector of Space Points after projection (Data points)
p2ASpace Point for Target

◆ optimizationTransformSP()

void CorAniso::optimizationTransformSP ( const SpacePoint ptin,
SpacePoint ptout 
) const

Transform a space point using the anisotropy tensor

Parameters
ptinInput Space Point
ptoutOutput Space Point

◆ setAniso()

void CorAniso::setAniso ( const Tensor aniso)
inline

◆ setAnisoAngle()

void CorAniso::setAnisoAngle ( int  idim,
double  angle 
)

◆ setAnisoAngles()

void CorAniso::setAnisoAngles ( const VectorDouble angles)

◆ setAnisoRotation() [1/2]

void CorAniso::setAnisoRotation ( const Rotation rot)

◆ setAnisoRotation() [2/2]

void CorAniso::setAnisoRotation ( const VectorDouble rot)

◆ setContext()

void CorAniso::setContext ( const CovContext ctxt)

◆ setMarkovCoeffs()

void CorAniso::setMarkovCoeffs ( const VectorDouble coeffs)

◆ setMarkovCoeffsBySquaredPolynomials()

void CorAniso::setMarkovCoeffsBySquaredPolynomials ( VectorDouble  coeffs1,
VectorDouble  coeffs2,
double  eps = 0 
)

◆ setNoStatFactor()

void CorAniso::setNoStatFactor ( double  noStatFactor)
inline

◆ setOptimEnabled()

void CorAniso::setOptimEnabled ( bool  flag) const
inline

◆ setParam()

void CorAniso::setParam ( double  param)

◆ setRange()

void CorAniso::setRange ( int  idim,
double  range 
)

◆ setRangeIsotropic()

void CorAniso::setRangeIsotropic ( double  range)

Practical range.

◆ setRanges()

void CorAniso::setRanges ( const VectorDouble ranges)

◆ setRotationAnglesAndRadius()

void CorAniso::setRotationAnglesAndRadius ( const VectorDouble angles = VectorDouble(),
const VectorDouble ranges = VectorDouble(),
const VectorDouble scales = VectorDouble() 
)

◆ setScale() [1/2]

void CorAniso::setScale ( double  scale)

◆ setScale() [2/2]

void CorAniso::setScale ( int  idim,
double  scale 
)

Make the covariance isotropic.

◆ setScales()

void CorAniso::setScales ( const VectorDouble scales)

◆ setType()

void CorAniso::setType ( const ECov &  type)

◆ simulateSpectralOmega()

MatrixRectangular CorAniso::simulateSpectralOmega ( int  nb) const

◆ simulateTurningBand()

double CorAniso::simulateTurningBand ( double  t0,
TurningBandOperate operTB 
) const

◆ toString()

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

ICloneable Interface.

AStringable Interface

Reimplemented from ASpaceObject.

◆ toStringNoStat()

String CorAniso::toStringNoStat ( const AStringFormat strfmt = nullptr,
int  i = 0 
) const

◆ toStringParams()

String CorAniso::toStringParams ( const AStringFormat strfmt = nullptr) const

◆ updateCovByMesh()

void CorAniso::updateCovByMesh ( int  imesh,
bool  aniso = true 
)
overridevirtual

Reimplemented from ACor.

◆ updateCovByPoints()

void CorAniso::updateCovByPoints ( int  icas1,
int  iech1,
int  icas2,
int  iech2 
)
overridevirtual

Tell if the use of Optimization is enabled or not.

Update the Model according to the Non-stationary parameters

Parameters
icas1Type of first Db: 1 for Input; 2 for Output
iech1Rank of the target within Db1 (or -1)
icas2Type of first Db: 1 for Input; 2 for Output
iech2Rank of the target within Dbout (or -2)

Reimplemented from ACor.

◆ updateFromContext()

void CorAniso::updateFromContext ( )
overridevirtual

Reimplemented from ACor.


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