gstlearn
1.0.0
CCC
|
#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 |
Protected Member Functions | |
bool | _isSampleSkipped (Db *db, int iech, const VectorInt &cols_est, const VectorInt &cols_std) |
bool | _isFitted () const |
Protected Member Functions inherited from ASerializable | |
virtual bool | _deserialize (std::istream &is, bool verbose=false)=0 |
virtual bool | _serialize (std::ostream &os, bool verbose=false) const =0 |
virtual String | _getNFName () const =0 |
bool | _fileOpenWrite (const String &filename, std::ofstream &os, bool verbose=false) const |
bool | _fileOpenRead (const String &filename, std::ifstream &is, bool verbose=false) const |
Private Member Functions | |
bool | _isNcutValid (int ncut) const |
bool | _isProbaValid (double proba) const |
void | _printQTvars (const char *title, int type, int number) const |
Private Attributes | |
bool | _flagFitted |
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) |
Static Protected Member Functions inherited from ASerializable | |
static bool | _commentWrite (std::ostream &os, const String &comment) |
template<typename T > | |
static bool | _recordWrite (std::ostream &os, const String &title, const T &val) |
template<typename T > | |
static bool | _recordWriteVec (std::ostream &os, const String &title, const VectorT< T > &vec) |
template<typename T > | |
static bool | _recordRead (std::istream &is, const String &title, T &val) |
template<typename T > | |
static bool | _recordReadVec (std::istream &is, const String &title, VectorT< T > &vec, int nvalues) |
static bool | _onlyBlanks (char *string) |
static bool | _tableRead (std::istream &is, const String &string, int ntab, double *tab) |
static bool | _tableWrite (std::ostream &os, const String &string, int ntab, const VectorDouble &tab) |
AAnam::AAnam | ( | ) |
AAnam::AAnam | ( | const AAnam & | m | ) |
|
virtual |
|
inlineprotected |
|
private |
|
private |
|
private |
Print the contents of the qtvars structure
[in] | title | Title |
[in] | type | 1 for estimation; 2 for stdev |
[in] | number | Number of cutoffs |
|
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.
|
private |