|
gstlearn
0.2.1
Geostatistics & Machine Learning toolbox
|
#include <NeighUnique.hpp>
Public Member Functions | |
| NeighUnique (bool flag_xvalid=false, const ASpace *space=nullptr) | |
| NeighUnique (const NeighUnique &r) | |
| NeighUnique & | operator= (const NeighUnique &r) |
| virtual | ~NeighUnique () |
| virtual String | toString (const AStringFormat *strfmt=nullptr) const override |
| AStringable interface. More... | |
| virtual ENeigh | getType () const override |
| virtual int | getMaxSampleNumber (const Db *db) const override |
Public Member Functions inherited from ANeighParam | |
| ANeighParam (bool flag_xvalid=false, const ASpace *space=nullptr) | |
| ANeighParam (const ANeighParam &r) | |
| ANeighParam & | operator= (const ANeighParam &r) |
| virtual | ~ANeighParam () |
| virtual bool | isConsistent (const ASpace *space) const override |
| ASpaceObject Interface. More... | |
| virtual bool | getFlagContinuous () const |
| bool | getFlagXvalid () const |
| bool | getFlagKFold () const |
| void | setFlagXvalid (bool flagXvalid) |
| void | setFlagKFold (bool flagKFold) |
| VectorInt | eval (Db *dbin, Db *dbout, int iech0) const |
Public Member Functions inherited from ASpaceObject | |
| ASpaceObject (const ASpace *space=nullptr) | |
| ASpaceObject (const ASpace &space) | |
| ASpaceObject (const ASpaceObject &r) | |
| ASpaceObject & | operator= (const ASpaceObject &r) |
| virtual | ~ASpaceObject () |
| const ASpace * | getSpace () const |
| Accessor to the current object space context. More... | |
| bool | isConsistent () const |
| Indicate if I am consistent with my current space context. More... | |
| VectorDouble | getUnitaryVector () const |
| Return unitary vector for the current space context. More... | |
| unsigned int | getNDim () const |
| Shortcuts to ASpace methods. More... | |
| const VectorDouble & | getOrigin () const |
| Return the current space context origin coordinates. More... | |
| double | getDistance (const SpacePoint &p1, const SpacePoint &p2) const |
| Return the distance between two space points for the current space context. More... | |
| VectorDouble | getIncrement (const SpacePoint &p1, const SpacePoint &p2) const |
| Return the increment vector between two space points for the current space context. More... | |
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 |
Static Public Member Functions | |
| static NeighUnique * | create (bool flag_xvalid=false, const ASpace *space=nullptr) |
| static NeighUnique * | createFromNF (const String &neutralFilename, bool verbose=true) |
Static Public Member Functions inherited from ASerializable | |
| static String | buildFileName (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=String(), 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 ASpaceObject | |
| void | setNDim (int ndim) |
| Modify the Space dimension of an already created item (To be used only during creation ... in particular when reading NF) More... | |
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 |
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 ASpaceObject | |
| const ASpace * | _space |
| Current space context of the object. More... | |
| NeighUnique::NeighUnique | ( | bool | flag_xvalid = false, |
| const ASpace * | space = nullptr |
||
| ) |
| NeighUnique::NeighUnique | ( | const NeighUnique & | r | ) |
|
virtual |
|
overrideprotectedvirtual |
Interface for ASerializable.
Reimplemented from ANeighParam.
|
inlineoverrideprotectedvirtual |
Reimplemented from ANeighParam.
|
overrideprotectedvirtual |
Reimplemented from ANeighParam.
|
static |
|
static |
Create a NeighUniqueborhood by loading the contents of a Neutral File
| neutralFilename | Name of the Neutral File |
| verbose | Verbose flag |
|
overridevirtual |
Given a Db, returns the maximum number of samples per NeighUniqueborhood
| db | Pointer to the taregt Db |
Implements ANeighParam.
|
inlineoverridevirtual |
Implements ANeighParam.
| NeighUnique & NeighUnique::operator= | ( | const NeighUnique & | r | ) |
|
overridevirtual |
AStringable interface.
Reimplemented from ANeighParam.