|
gstlearn
1.0.0
CCC
|
#include <AnamHermite.hpp>
Public Member Functions | |
| AnamHermite (int nbpoly=3, bool flagBound=true, double rCoef=1.) | |
| AnamHermite (const AnamHermite &m) | |
| AnamHermite & | operator= (const AnamHermite &m) |
| virtual | ~AnamHermite () |
| virtual String | toString (const AStringFormat *strfmt=nullptr) const override |
| ICloneable Interface. More... | |
| const EAnam & | getType () const override |
| Interface AAnam. More... | |
| bool | hasFactor () const override |
| int | getNFactor () const override |
| VectorDouble | z2factor (double z, const VectorInt &ifacs) const override |
| double | computeVariance (double sval) const override |
| int | updatePointToBlock (double r_coef) override |
| bool | allowChangeSupport () const override |
| bool | isChangeSupportDefined () const override |
| int | getNClass () const override |
| int | fitFromArray (const VectorDouble &tab, const VectorDouble &wt=VectorDouble()) override |
| double | rawToTransformValue (double z) const override |
| AnamContinuous Interface. More... | |
| double | transformToRawValue (double y) const override |
| void | calculateMeanAndVariance () override |
| Interface for AnamContinuous. More... | |
| void | reset (double pymin, double pzmin, double pymax, double pzmax, double aymin, double azmin, double aymax, double azmax, double r, const VectorDouble &psi_hn) |
| int | getNbPoly () const |
| VectorDouble | getPsiHns () const |
| double | getPsiHn (int ih) const |
| double | getRCoef () const |
| bool | getFlagBound () const |
| void | setPsiHns (const VectorDouble &psi_hn) |
| void | setFlagBound (bool flagBound) |
| void | setPsiHn (int i, double psi_hn) |
| void | setRCoef (double r_coef) |
| int | factor2Selectivity (Db *db, Selectivity *selectivity, const VectorInt &cols_est, const VectorInt &cols_std, int iptr0) |
| double | evalSupportCoefficient (int option, Model *model, const VectorDouble &dxs, const VectorInt &ndisc, const VectorDouble &angles=VectorDouble(), bool verbose=true) |
| VectorDouble | cumulateVarianceRatio (double chh) const |
Public Member Functions inherited from AnamContinuous | |
| AnamContinuous () | |
| AnamContinuous (const AnamContinuous &m) | |
| AnamContinuous & | operator= (const AnamContinuous &m) |
| virtual | ~AnamContinuous () |
| bool | hasGaussian () const override |
| AAnam interface. More... | |
| virtual double | getVariance () const override |
| void | setABounds (double azmin=TEST, double azmax=TEST, double aymin=TEST, double aymax=TEST) |
| void | setPBounds (double pzmin=TEST, double pzmax=TEST, double pymin=TEST, double pymax=TEST) |
| VectorDouble | rawToGaussianVector (const VectorDouble &z) const |
| VectorDouble | gaussianToRawVector (const VectorDouble &y) const |
| AnamContinuousFit | sample (int ndisc=100, double aymin=-10, double aymax=+10) |
| double | getMean () const |
| double | getAymax () const |
| double | getAymin () const |
| double | getAzmax () const |
| double | getAzmin () const |
| double | getPymax () const |
| double | getPymin () const |
| double | getPzmax () const |
| double | getPzmin () const |
| void | setAzmin (double azmin) |
| void | setAzmax (double azmax) |
| void | setAymin (double aymin) |
| void | setAymax (double aymax) |
| void | setPzmin (double pzmin) |
| void | setPzmax (double pzmax) |
| void | setPymin (double pymin) |
| void | setPymax (double pymax) |
| void | setMean (double mean) |
| void | setVariance (double variance) |
Public Member Functions inherited from AAnam | |
| AAnam () | |
| AAnam (const AAnam &m) | |
| AAnam & | operator= (const AAnam &m) |
| virtual | ~AAnam () |
| 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 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 |
Static Public Member Functions | |
| static AnamHermite * | createFromNF (const String &neutralFilename, bool verbose=true) |
| ASerializable Interface. More... | |
| static AnamHermite * | create (int nbpoly=0, bool flagBound=true, double rCoef=1.) |
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) |
Protected Member Functions | |
| virtual bool | _deserialize (std::istream &is, bool verbose=false) override |
| Interface for ASerializable. More... | |
| virtual bool | _serialize (std::ostream &os, bool verbose=false) const override |
| String | _getNFName () const override |
Protected Member Functions inherited from AAnam | |
| bool | _isSampleSkipped (Db *db, int iech, const VectorInt &cols_est, const VectorInt &cols_std) |
| bool | _isFitted () const |
Protected Member Functions inherited from ASerializable | |
| 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 | _isIndexValid (int i) const |
| void | _defineBounds (double pymin, double pzmin, double pymax, double pzmax, double aymin, double azmin, double aymax, double azmax) |
| int | _data_sort (int nech, const VectorDouble &z, const VectorDouble &wt, VectorDouble &zs, VectorDouble &ys) |
| void | _globalSelectivity (Selectivity *selectivity) |
Private Attributes | |
| bool | _flagBound |
| double | _rCoef |
| VectorDouble | _psiHn |
Friends | |
| class | Selectivity |
Additional Inherited Members | |
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) |
Protected Attributes inherited from AnamContinuous | |
| Interval | _az |
| Interval | _ay |
| Interval | _pz |
| Interval | _py |
| double | _mean |
| double | _variance |
| AnamHermite::AnamHermite | ( | int | nbpoly = 3, |
| bool | flagBound = true, |
||
| double | rCoef = 1. |
||
| ) |
| AnamHermite::AnamHermite | ( | const AnamHermite & | m | ) |
|
virtual |
|
private |
|
private |
|
overrideprotectedvirtual |
Interface for ASerializable.
Reimplemented from AnamContinuous.
|
inlineoverrideprotectedvirtual |
Reimplemented from AnamContinuous.
|
private |
Calculate the theoretical grade tonnage value (Gaussian case)
|
private |
|
overrideprotectedvirtual |
Reimplemented from AnamContinuous.
|
inlineoverridevirtual |
Reimplemented from AAnam.
|
overridevirtual |
Interface for AnamContinuous.
Reimplemented from AnamContinuous.
|
overridevirtual |
Compute the Gaussian covariance from Raw covariance: Sum_n psi_n^2 C^n
| chh |
Reimplemented from AAnam.
|
static |
|
static |
ASerializable Interface.
| VectorDouble AnamHermite::cumulateVarianceRatio | ( | double | chh | ) | const |
| double AnamHermite::evalSupportCoefficient | ( | int | option, |
| Model * | model, | ||
| const VectorDouble & | dxs, | ||
| const VectorInt & | ndisc, | ||
| const VectorDouble & | angles = VectorDouble(), |
||
| bool | verbose = true |
||
| ) |
| int AnamHermite::factor2Selectivity | ( | Db * | db, |
| Selectivity * | selectivity, | ||
| const VectorInt & | cols_est, | ||
| const VectorInt & | cols_std, | ||
| int | iptr0 | ||
| ) |
Calculate Experimental Grade-Tonnage curves from factors Case of Hermite Anamorphosis
| [in] | db | Db structure containing the factors (Z-locators) |
| [in] | selectivity | Selectivity structure |
| [in] | cols_est | Array of UIDs for factor estimation |
| [in] | cols_std | Array of UIDs for factor St. Dev. |
| [in] | iptr0 | Rank for storing the results |
|
overridevirtual |
Reimplemented from AAnam.
|
inline |
|
inline |
|
inlineoverridevirtual |
Reimplemented from AAnam.
|
inlineoverridevirtual |
Reimplemented from AAnam.
| double AnamHermite::getPsiHn | ( | int | ih | ) | const |
| VectorDouble AnamHermite::getPsiHns | ( | ) | const |
|
inline |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Reimplemented from AAnam.
|
inlineoverridevirtual |
Implements AAnam.
| AnamHermite & AnamHermite::operator= | ( | const AnamHermite & | m | ) |
|
overridevirtual |
AnamContinuous Interface.
Reimplemented from AAnam.
| void AnamHermite::reset | ( | double | pymin, |
| double | pzmin, | ||
| double | pymax, | ||
| double | pzmax, | ||
| double | aymin, | ||
| double | azmin, | ||
| double | aymax, | ||
| double | azmax, | ||
| double | r, | ||
| const VectorDouble & | psi_hn | ||
| ) |
|
inline |
| void AnamHermite::setPsiHn | ( | int | i, |
| double | psi_hn | ||
| ) |
|
inline |
| void AnamHermite::setRCoef | ( | double | r_coef | ) |
|
overridevirtual |
|
overridevirtual |
Reimplemented from AAnam.
|
overridevirtual |
Reimplemented from AAnam.
|
overridevirtual |
Reimplemented from AAnam.
|
friend |
|
private |
|
private |
|
private |