![]() |
1.6.0
Geostatistics & Machine Learning toolbox | https://gstlearn.org
|
![]() |
Class to define the a subset of an input Data Base ('Db') called a Neighborhood. This Neighborhood feature is invoked when the geostatistical processing cannot handle the whole data set (usually due to core limitations) and requires a fine selection of the most suitable part of the data set. More...
#include <ANeigh.hpp>
Class to define the a subset of an input Data Base ('Db') called a Neighborhood. This Neighborhood feature is invoked when the geostatistical processing cannot handle the whole data set (usually due to core limitations) and requires a fine selection of the most suitable part of the data set.
Several implementations can be defined, such as:
Several other topics are considered as belonging to the Neighborhood selection procedure, such as:
Public Member Functions | |
ANeigh (const ASpace *space=nullptr) | |
ANeigh (const ANeigh &r) | |
ANeigh & | operator= (const ANeigh &r) |
virtual | ~ANeigh () |
virtual bool | isConsistent (const ASpace *space) const override |
ASpaceObject Interface. | |
virtual int | attach (const Db *dbin, const Db *dbout) |
Interface for ANeigh. | |
virtual void | getNeigh (int iech_out, VectorInt &ranks)=0 |
virtual int | getMaxSampleNumber (const Db *db) const =0 |
virtual bool | hasChanged (int iech_out) const |
virtual VectorDouble | summary (int iech_out) |
virtual ENeigh | getType () const |
virtual bool | getFlagContinuous () const |
void | select (int iech_out, VectorInt &ranks) |
bool | isUnchanged () const |
void | setIsChanged (bool status=false) |
void | reset () |
bool | getFlagXvalid () const |
bool | getFlagKFold () const |
void | setFlagXvalid (bool flagXvalid) |
void | setFlagKFold (bool flagKFold) |
void | setFlagSimu (bool flagSimu) |
void | setRankColCok (const VectorInt &rankColCok) |
void | setBallSearch (bool status, int leaf_size=10) |
void | attachBall (double(*dist_function)(const double *x1, const double *x2, int size)=nullptr) |
![]() | |
ASpaceObject (const ASpace *space=nullptr) | |
ASpaceObject (const ASpace &space) | |
ASpaceObject (const ASpaceObject &r) | |
ASpaceObject & | operator= (const ASpaceObject &r) |
virtual | ~ASpaceObject () |
virtual String | toString (const AStringFormat *strfmt=nullptr) const override |
AStringable interface. | |
const ASpace * | getSpace () const |
Accessor to the current object space context. | |
bool | isConsistent () const |
Indicate if I am consistent with my current space context. | |
VectorDouble | getUnitaryVector () const |
Return unitary vector for the current space context. | |
unsigned int | getNDim (int ispace=-1) const |
Shortcuts to ASpace methods. | |
const VectorDouble & | getOrigin (int ispace=-1) const |
Return the current space context origin coordinates. | |
double | getDistance (const SpacePoint &p1, const SpacePoint &p2, int ispace=0) const |
Return the distance between two space points for the current space context. | |
VectorDouble | getDistances (const SpacePoint &p1, const SpacePoint &p2) const |
Return all the distances (space composits) between two space points for the current space context. | |
VectorDouble | getIncrement (const SpacePoint &p1, const SpacePoint &p2, int ispace=0) const |
Return the increment vector between two space points for the current space context. | |
![]() | |
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 |
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) |
ANeigh::ANeigh | ( | const ASpace * | space = nullptr | ) |
ANeigh::ANeigh | ( | const ANeigh & | r | ) |
|
virtual |
Interface for ANeigh.
Reimplemented in NeighBench, NeighCell, and NeighMoving.
void ANeigh::attachBall | ( | double(*)(const double *x1, const double *x2, int size) | dist_function = nullptr | ) |
|
inlinevirtual |
Reimplemented in NeighMoving.
|
inline |
|
inline |
|
pure virtual |
Implemented in NeighBench, NeighCell, NeighImage, NeighMoving, and NeighUnique.
|
pure virtual |
Implemented in NeighBench, NeighCell, NeighImage, NeighMoving, and NeighUnique.
|
inlinevirtual |
Reimplemented in NeighBench, NeighCell, NeighImage, NeighMoving, and NeighUnique.
|
inlinevirtual |
Reimplemented in NeighBench, NeighCell, NeighImage, NeighMoving, and NeighUnique.
|
inlineoverridevirtual |
ASpaceObject Interface.
Implements ASpaceObject.
|
inline |
void ANeigh::reset | ( | ) |
void ANeigh::select | ( | int | iech_out, |
VectorInt & | ranks | ||
) |
Generic function for performing neighborhood selection. This function ALWAYS modifies (and resizes) the returned array 'ranks'
iech_out | Rank of the target point (in 'dbout') |
ranks | Input / Output vector of neighboring sample ranks |
void ANeigh::setBallSearch | ( | bool | status, |
int | leaf_size = 10 |
||
) |
|
inline |
|
inline |
|
inline |
void ANeigh::setIsChanged | ( | bool | status = false | ) |
|
inline |
|
inlinevirtual |
Reimplemented in NeighMoving.