#include <CovContext.hpp>
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) | |
CovContext & | operator= (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 VectorDouble & | getMean () const |
const VectorDouble & | getCovar0 () const |
const ASpace * | getASpace () 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 CovContext * | createReduce (const VectorInt &validVars) const |
Public Member Functions inherited from ASpaceObject | |
ASpaceObject (const ASpace *space=nullptr) | |
ASpaceObject (const ASpace &space) | |
ASpaceObject (const ASpaceObject &r) | |
ASpaceObject & | operator= (const ASpaceObject &r) |
virtual | ~ASpaceObject () |
const ASpace * | getSpace () 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 VectorDouble & | getOrigin () 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) | |
AStringable & | operator= (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 CovContext * | create (int nvar, int ndim) |
CovContext::CovContext | ( | int | nvar = 1 , |
const ASpace * | space = nullptr |
||
) |
Create a covariances context giving the number dimensions of a predefined space RN
nvar | Number of variables |
space | Space 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
nvar | Number of variables |
ndim | Number of dimension of the euclidean space (RN) |
mean | Vector of Means |
covar0 | Vector of variance-covariance |
TODO : check Db dimension vs provided space
TODO : check vario dimension vs provided space
CovContext::CovContext | ( | const CovContext & | r | ) |
|
virtual |
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
ctxt | Source CovContext |
severe | When severe, does not allow modifying the number of variables |
|
static |
const CovContext * CovContext::createReduce | ( | const VectorInt & | validVars | ) | const |
|
inline |
|
inline |
double CovContext::getCovar0 | ( | int | ivar, |
int | jvar | ||
) | const |
|
inline |
|
inline |
double CovContext::getMean | ( | int | ivar | ) | const |
|
inline |
|
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'
r | Secondary CovContext to be compared with this |
CovContext & CovContext::operator= | ( | const CovContext & | r | ) |
void CovContext::setCovar0 | ( | const VectorDouble & | covar0 | ) |
Define the covariance at the origin
covar0 | Values |
void CovContext::setCovar0 | ( | int | ivar, |
int | jvar, | ||
double | covar0 | ||
) |
|
inline |
void CovContext::setMean | ( | const VectorDouble & | mean | ) |
void CovContext::setMean | ( | const double | mean, |
int | ivar = 0 |
||
) |
Define the Mean for one variable
mean | Value for the mean |
ivar | Rank of the variable (starting from 0) |
|
inline |
|
overridevirtual |
AStringable interface.
Reimplemented from ASpaceObject.