1.1.0
CCC
 
PCA Class Reference

#include <PCA.hpp>

Inheritance diagram for PCA:
AStringable

Public Member Functions

 PCA (int nvar=0)
 
 PCA (const PCA &m)
 
PCAoperator= (const PCA &m)
 
virtual ~PCA ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Interface for AStringable. More...
 
void init (int nvar)
 
const VectorDoublegetEigVals () const
 
double getEigVal (int ivar) const
 
const MatrixRectangulargetEigVecs () const
 
double getEigVec (int ivar, int jvar) const
 
const VectorDouble getVarianceRatio () const
 
const VectorDoublegetMeans () const
 
double getMean (int ivar) const
 
const MatrixSquareSymmetricgetC0 () const
 
int getNVar () const
 
const MatrixSquareGeneralgetF2Zs () const
 
const MatrixSquareGeneralgetZ2Fs () const
 
const VectorDoublegetSigmas () const
 
double getSigma (int ivar) const
 
void setMeans (const VectorDouble &mean)
 
void setSigmas (const VectorDouble &sigma)
 
void setZ2Fs (const MatrixSquareGeneral &z2f)
 
void setF2Zs (MatrixSquareGeneral &f2z)
 
void setEigVals (VectorDouble &eigval)
 
void setEigVal (int ivar, double eigval)
 
void setEigVecs (const MatrixRectangular &eigvec)
 
void setEigVec (int ivar, int jvar, double eigvec)
 
int pca_compute (const Db *db, bool verbose=false)
 
int maf_compute (Db *db, const VarioParam &varioparam, int ilag0=1, int idir0=0, bool verbose=false)
 
int maf_compute_interval (Db *db, double hmin, double hmax, bool verbose=false)
 
int dbZ2F (Db *db, bool verbose=false, const NamingConvention &namconv=NamingConvention("F", false))
 
int dbF2Z (Db *db, bool verbose=false, const NamingConvention &namconv=NamingConvention("Z", false))
 
VectorDouble mafOfIndex () const
 
- 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

PCA::PCA ( int  nvar = 0)
PCA::PCA ( const PCA m)
PCA::~PCA ( )
virtual

Member Function Documentation

int PCA::dbF2Z ( Db db,
bool  verbose = false,
const NamingConvention namconv = NamingConvention("Z", false) 
)
int PCA::dbZ2F ( Db db,
bool  verbose = false,
const NamingConvention namconv = NamingConvention("F", false) 
)
const MatrixSquareSymmetric& PCA::getC0 ( ) const
inline
double PCA::getEigVal ( int  ivar) const
inline
const VectorDouble& PCA::getEigVals ( ) const
inline
double PCA::getEigVec ( int  ivar,
int  jvar 
) const
inline
const MatrixRectangular& PCA::getEigVecs ( ) const
inline
const MatrixSquareGeneral& PCA::getF2Zs ( ) const
inline
double PCA::getMean ( int  ivar) const
inline
const VectorDouble& PCA::getMeans ( ) const
inline
int PCA::getNVar ( ) const
inline
double PCA::getSigma ( int  ivar) const
inline
const VectorDouble& PCA::getSigmas ( ) const
inline
const VectorDouble PCA::getVarianceRatio ( ) const
const MatrixSquareGeneral& PCA::getZ2Fs ( ) const
inline
void PCA::init ( int  nvar)
int PCA::maf_compute ( Db db,
const VarioParam varioparam,
int  ilag0 = 1,
int  idir0 = 0,
bool  verbose = false 
)

Evaluate the MAF

Returns
Error return code
Parameters
[in]dbDb descriptor
[in]varioparamVarioParam structure
[in]ilag0Reference Lag
[in]idir0Reference direction
[in]verboseVerbose flag
int PCA::maf_compute_interval ( Db db,
double  hmin,
double  hmax,
bool  verbose = false 
)

Evaluate the MAF

Returns
Error return code
Parameters
[in]dbDb descriptor
[in]hminLower bound on distance
[in]hmaxUpper bound on distance
[in]verboseVerbose flag
VectorDouble PCA::mafOfIndex ( ) const
PCA & PCA::operator= ( const PCA m)
int PCA::pca_compute ( const Db db,
bool  verbose = false 
)
void PCA::setEigVal ( int  ivar,
double  eigval 
)
inline
void PCA::setEigVals ( VectorDouble eigval)
inline
void PCA::setEigVec ( int  ivar,
int  jvar,
double  eigvec 
)
inline
void PCA::setEigVecs ( const MatrixRectangular eigvec)
inline
void PCA::setF2Zs ( MatrixSquareGeneral f2z)
inline
void PCA::setMeans ( const VectorDouble mean)
inline
void PCA::setSigmas ( const VectorDouble sigma)
inline
void PCA::setZ2Fs ( const MatrixSquareGeneral z2f)
inline
String PCA::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Interface for AStringable.

Reimplemented from AStringable.


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