gstlearn
1.0.0
Geostatistics & Machine Learning toolbox | https://gstlearn.org
|
#include <AnamContinuous.hpp>
Public Member Functions | |
AnamContinuous () | |
AnamContinuous (const AnamContinuous &m) | |
AnamContinuous & | operator= (const AnamContinuous &m) |
virtual | ~AnamContinuous () |
virtual String | toString (const AStringFormat *strfmt=nullptr) const override |
AStringable Interface. More... | |
bool | hasGaussian () const override |
AAnam interface. More... | |
virtual void | calculateMeanAndVariance () |
Interface for AnamContinuous. 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) |
![]() | |
AAnam () | |
AAnam (const AAnam &m) | |
AAnam & | operator= (const AAnam &m) |
virtual | ~AAnam () |
virtual const EAnam & | getType () const =0 |
Interface for AAnam. More... | |
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 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")) |
![]() | |
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 |
![]() | |
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 |
![]() | |
ICloneable () | |
virtual | ~ICloneable () |
virtual ICloneable * | clone () const =0 |
Protected Member Functions | |
virtual bool | _deserialize (std::istream &is, bool verbose=false) override |
ASerializable Interface. More... | |
virtual bool | _serialize (std::ostream &os, bool verbose=false) const override |
String | _getNFName () const override |
![]() | |
bool | _isSampleSkipped (Db *db, int iech, const VectorInt &cols_est, const VectorInt &cols_std) |
bool | _isFitted () const |
![]() | |
bool | _fileOpenWrite (const String &filename, std::ofstream &os, bool verbose=false) const |
bool | _fileOpenRead (const String &filename, std::ifstream &is, bool verbose=false) const |
Protected Attributes | |
Interval | _az |
Interval | _ay |
Interval | _pz |
Interval | _py |
double | _mean |
double | _variance |
Additional Inherited Members | |
![]() | |
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 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) |
AnamContinuous::AnamContinuous | ( | ) |
AnamContinuous::AnamContinuous | ( | const AnamContinuous & | m | ) |
|
virtual |
|
overrideprotectedvirtual |
ASerializable Interface.
Implements ASerializable.
Reimplemented in AnamUser, AnamHermite, and AnamEmpirical.
|
inlineoverrideprotectedvirtual |
Implements ASerializable.
Reimplemented in AnamUser, AnamHermite, and AnamEmpirical.
|
overrideprotectedvirtual |
Implements ASerializable.
Reimplemented in AnamUser, AnamHermite, and AnamEmpirical.
|
virtual |
Interface for AnamContinuous.
Reimplemented in AnamUser, AnamHermite, and AnamEmpirical.
VectorDouble AnamContinuous::gaussianToRawVector | ( | const VectorDouble & | y | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Reimplemented from AAnam.
|
inlineoverridevirtual |
AnamContinuous & AnamContinuous::operator= | ( | const AnamContinuous & | m | ) |
VectorDouble AnamContinuous::rawToGaussianVector | ( | const VectorDouble & | z | ) | const |
AnamContinuousFit AnamContinuous::sample | ( | int | ndisc = 100 , |
double | aymin = -10 , |
||
double | aymax = +10 |
||
) |
Calculate Anamorphosis function for a set of Y-values
ndisc | Number of discretization steps |
aymin | Minimum Y value |
aymax | Maximum Y value |
void AnamContinuous::setABounds | ( | double | azmin = TEST , |
double | azmax = TEST , |
||
double | aymin = TEST , |
||
double | aymax = TEST |
||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void AnamContinuous::setPBounds | ( | double | pzmin = TEST , |
double | pzmax = TEST , |
||
double | pymin = TEST , |
||
double | pymax = TEST |
||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
AStringable Interface.
Reimplemented from AStringable.
Reimplemented in AnamUser, AnamHermite, and AnamEmpirical.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |