1.2.2
CCC
 
AAnam Class Referenceabstract

#include <AAnam.hpp>

Inheritance diagram for AAnam:
AStringable ASerializable ICloneable AnamContinuous AnamDiscrete AnamEmpirical AnamHermite AnamUser AnamDiscreteDD AnamDiscreteIR

Public Member Functions

 AAnam ()
 
 AAnam (const AAnam &m)
 
AAnamoperator= (const AAnam &m)
 
virtual ~AAnam ()
 
virtual const EAnam & getType () const =0
 Interface for AAnam. More...
 
virtual double getVariance () const
 
virtual bool hasFactor () const
 
virtual int getNFactor () const
 
virtual int getNClass () const
 
virtual bool isChangeSupportDefined () const =0
 
virtual VectorDouble z2factor (double z, const VectorInt &ifqcs) const
 
virtual double computeVariance (double sval) const
 
virtual int updatePointToBlock (double r_coef)
 
virtual bool allowChangeSupport () const
 
virtual bool hasGaussian () const
 
virtual double rawToTransformValue (double z) const
 
virtual double transformToRawValue (double y) const
 
virtual int fitFromArray (const VectorDouble &tab, const VectorDouble &wt=VectorDouble())
 
double invertVariance (double cvv) const
 
VectorDouble rawToTransformVec (const VectorDouble &z) const
 
VectorDouble transformToRawVec (const VectorDouble &z) const
 
int fitFromLocator (Db *db, const ELoc &locatorType=ELoc::fromKey("Z"))
 
int fit (Db *db, const String &name)
 
int rawToGaussianByLocator (Db *db, const NamingConvention &namconv=NamingConvention("Y"))
 
int rawToGaussian (Db *db, const String &name, const NamingConvention &namconv=NamingConvention("Y"))
 
int normalScore (Db *db, const String &name, const NamingConvention &namconv=NamingConvention("Gaussian"))
 
int gaussianToRawByLocator (Db *db, const NamingConvention &namconv=NamingConvention("Z"))
 
int gaussianToRaw (Db *db, const String &name, const NamingConvention &namconv=NamingConvention("Z"))
 
int rawToFactorByRanks (Db *db, const VectorInt &ifacs, const NamingConvention &namconv=NamingConvention("Factor"))
 
int rawToFactor (Db *db, int nfactor, const NamingConvention &namconv=NamingConvention("Factor"))
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 
- Public Member Functions inherited from ASerializable
 ASerializable ()
 
 ASerializable (const ASerializable &r)
 
ASerializableoperator= (const ASerializable &r)
 
virtual ~ASerializable ()
 
bool deserialize (std::istream &is, bool verbose=true)
 
bool serialize (std::ostream &os, bool verbose=true) const
 
bool dumpToNF (const String &neutralFilename, bool verbose=false) const
 
- Public Member Functions inherited from ICloneable
 ICloneable ()
 
virtual ~ICloneable ()
 
virtual ICloneableclone () const =0
 

Additional Inherited Members

- Static Public Member Functions inherited from ASerializable
static String buildFileName (int status, const String &filename, bool ensureDirExist=false)
 
static String getHomeDirectory (const String &sub="")
 
static String getWorkingDirectory ()
 
static String getTestData (const String &subdir, const String &filename)
 
static String getFileIdentity (const String &filename, bool verbose=false)
 
static void setContainerName (bool useDefault, const String &containerName="", bool verbose=false)
 
static void unsetContainerName ()
 
static void setPrefixName (const String &prefixName)
 
static void unsetPrefixName ()
 
static const StringgetContainerName ()
 
static const StringgetPrefixName ()
 
static bool createDirectory (const String &dir)
 
static String getExecDirectory ()
 
static String getDirectory (const String &path)
 

Constructor & Destructor Documentation

AAnam::AAnam ( )
AAnam::AAnam ( const AAnam m)
AAnam::~AAnam ( )
virtual

Member Function Documentation

virtual bool AAnam::allowChangeSupport ( ) const
inlinevirtual

Reimplemented in AnamDiscreteDD, AnamDiscreteIR, and AnamHermite.

double AAnam::computeVariance ( double  sval) const
virtual

Calculates the block variance

Returns
Value of the block variance (as a function of support coefficient)

Reimplemented in AnamDiscreteDD, AnamDiscreteIR, and AnamHermite.

int AAnam::fit ( Db db,
const String name 
)
virtual int AAnam::fitFromArray ( const VectorDouble tab,
const VectorDouble wt = VectorDouble() 
)
inlinevirtual
int AAnam::fitFromLocator ( Db db,
const ELoc &  locatorType = ELoc::fromKey("Z") 
)
int AAnam::gaussianToRaw ( Db db,
const String name,
const NamingConvention namconv = NamingConvention("Z") 
)
int AAnam::gaussianToRawByLocator ( Db db,
const NamingConvention namconv = NamingConvention("Z") 
)
virtual int AAnam::getNClass ( ) const
inlinevirtual

Reimplemented in AnamHermite, and AnamDiscrete.

virtual int AAnam::getNFactor ( ) const
inlinevirtual

Reimplemented in AnamEmpirical, AnamDiscreteDD, and AnamHermite.

virtual const EAnam& AAnam::getType ( ) const
pure virtual

Interface for AAnam.

Implemented in AnamEmpirical, AnamDiscreteDD, AnamDiscreteIR, AnamHermite, and AnamUser.

virtual double AAnam::getVariance ( ) const
inlinevirtual

Reimplemented in AnamContinuous, and AnamDiscrete.

virtual bool AAnam::hasFactor ( ) const
inlinevirtual

Reimplemented in AnamDiscreteDD, AnamDiscreteIR, and AnamHermite.

virtual bool AAnam::hasGaussian ( ) const
inlinevirtual

Reimplemented in AnamContinuous, and AnamDiscrete.

double AAnam::invertVariance ( double  cvv) const

Find the coefficient of change of support

Returns
Value for the change of support coefficient
Parameters
[in]cvvMean covariance value over a block
virtual bool AAnam::isChangeSupportDefined ( ) const
pure virtual
int AAnam::normalScore ( Db db,
const String name,
const NamingConvention namconv = NamingConvention("Gaussian") 
)

Transform the target variable inti Gaussian by Normal Score

Returns
Error return code
Parameters
[in]dbDb Structure
[in]nameTarget variable
[in]namconvNaming convention
AAnam & AAnam::operator= ( const AAnam m)
int AAnam::rawToFactor ( Db db,
int  nfactor,
const NamingConvention namconv = NamingConvention("Factor") 
)

Calculate the factors corresponding to an input data vector

Returns
Error return code
Parameters
[in]dbDb structure
[in]nfactorNumber of first factors
[in]namconvNaming convention
int AAnam::rawToFactorByRanks ( Db db,
const VectorInt ifacs,
const NamingConvention namconv = NamingConvention(                             "Factor") 
)

Calculate the factors corresponding to an input data vector

Returns
Error return code
Parameters
[in]dbDb structure
[in]ifacsArray of factor ranks
[in]namconvNaming convention
int AAnam::rawToGaussian ( Db db,
const String name,
const NamingConvention namconv = NamingConvention("Y") 
)
int AAnam::rawToGaussianByLocator ( Db db,
const NamingConvention namconv = NamingConvention("Y") 
)

Process the variable(s) stored with locator Z

Parameters
dbDb structure
namconvNaming Convention
Returns
double AAnam::rawToTransformValue ( double  z) const
virtual

Reimplemented in AnamEmpirical, AnamHermite, and AnamUser.

VectorDouble AAnam::rawToTransformVec ( const VectorDouble z) const
double AAnam::transformToRawValue ( double  y) const
virtual

Reimplemented in AnamEmpirical, AnamHermite, and AnamUser.

VectorDouble AAnam::transformToRawVec ( const VectorDouble z) const
int AAnam::updatePointToBlock ( double  r_coef)
virtual

Reimplemented in AnamDiscreteDD, AnamDiscreteIR, and AnamHermite.

VectorDouble AAnam::z2factor ( double  z,
const VectorInt ifqcs 
) const
virtual

Reimplemented in AnamDiscreteDD, AnamDiscreteIR, and AnamHermite.


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