#include <AAnam.hpp>
Public Member Functions | |
AAnam () | |
AAnam (const AAnam &m) | |
AAnam & | operator= (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) | |
AStringable & | operator= (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) | |
ASerializable & | operator= (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 ICloneable * | clone () 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 String & | getContainerName () |
static const String & | getPrefixName () |
static bool | createDirectory (const String &dir) |
static String | getExecDirectory () |
static String | getDirectory (const String &path) |
AAnam::AAnam | ( | ) |
AAnam::AAnam | ( | const AAnam & | m | ) |
|
virtual |
|
inlinevirtual |
Reimplemented in AnamHermite, AnamDiscreteIR, and AnamDiscreteDD.
|
virtual |
Calculates the block variance
Reimplemented in AnamHermite, AnamDiscreteIR, and AnamDiscreteDD.
|
inlinevirtual |
Reimplemented in AnamHermite, AnamEmpirical, AnamDiscreteIR, and AnamDiscreteDD.
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") |
||
) |
|
inlinevirtual |
Reimplemented in AnamHermite, and AnamDiscrete.
|
inlinevirtual |
Reimplemented in AnamHermite, AnamEmpirical, and AnamDiscreteDD.
|
pure virtual |
Interface for AAnam.
Implemented in AnamUser, AnamHermite, AnamEmpirical, AnamDiscreteIR, and AnamDiscreteDD.
|
inlinevirtual |
Reimplemented in AnamDiscrete, and AnamContinuous.
|
inlinevirtual |
Reimplemented in AnamHermite, AnamDiscreteIR, and AnamDiscreteDD.
|
inlinevirtual |
Reimplemented in AnamDiscrete, and AnamContinuous.
double AAnam::invertVariance | ( | double | cvv | ) | const |
Find the coefficient of change of support
[in] | cvv | Mean covariance value over a block |
|
pure virtual |
Implemented in AnamUser, AnamHermite, AnamEmpirical, AnamDiscreteIR, and AnamDiscreteDD.
int AAnam::normalScore | ( | Db * | db, |
const String & | name, | ||
const NamingConvention & | namconv = NamingConvention("Gaussian") |
||
) |
Transform the target variable inti Gaussian by Normal Score
[in] | db | Db Structure |
[in] | name | Target variable |
[in] | namconv | Naming convention |
int AAnam::rawToFactor | ( | Db * | db, |
int | nfactor, | ||
const NamingConvention & | namconv = NamingConvention("Factor") |
||
) |
Calculate the factors corresponding to an input data vector
[in] | db | Db structure |
[in] | nfactor | Number of first factors |
[in] | namconv | Naming convention |
int AAnam::rawToFactorByRanks | ( | Db * | db, |
const VectorInt & | ifacs, | ||
const NamingConvention & | namconv = NamingConvention( "Factor") |
||
) |
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
db | Db structure |
namconv | Naming Convention |
|
virtual |
Reimplemented in AnamEmpirical, AnamHermite, and AnamUser.
VectorDouble AAnam::rawToTransformVec | ( | const VectorDouble & | z | ) | const |
|
virtual |
Reimplemented in AnamEmpirical, AnamHermite, and AnamUser.
VectorDouble AAnam::transformToRawVec | ( | const VectorDouble & | z | ) | const |
|
virtual |
Reimplemented in AnamHermite, AnamDiscreteIR, and AnamDiscreteDD.
|
virtual |
Reimplemented in AnamHermite, AnamDiscreteIR, and AnamDiscreteDD.