Neighborhood definition by Cell.
The Neighborhood is usually meant to select a sub-population from the input Data Base, containing the active samples close to the target.
The selected samples belong to the same 'cell' as the target. This obviously requires that the target belongs to a Grid.
The neighborhood also offers the possibility to suppress any sample which would be too close to (or coincide with) the target: this is the cross-validation option.
|
| NeighCell (bool flag_xvalid=false, int nmini=1, const ASpace *space=nullptr) |
|
| NeighCell (const NeighCell &r) |
|
NeighCell & | operator= (const NeighCell &r) |
|
virtual | ~NeighCell () |
|
virtual int | attach (const Db *dbin, const Db *dbout=nullptr) override |
| Interface for ANeigh. More...
|
|
virtual void | getNeigh (int iech_out, VectorInt &ranks) override |
|
virtual bool | hasChanged (int iech_out) const override |
|
virtual int | getMaxSampleNumber (const Db *db) const override |
|
virtual ENeigh | getType () const override |
|
virtual String | toString (const AStringFormat *strfmt=nullptr) const override |
| Interface for AStringable. More...
|
|
int | getNMini () const |
|
| 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. More...
|
|
virtual VectorDouble | summary (int iech_out) |
|
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) |
|
| 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...
|
|
double | getDistance1D (const SpacePoint &p1, const SpacePoint &p2, int idim) const |
| Return the distance along one direction between two space points. More...
|
|
VectorDouble | getIncrement (const SpacePoint &p1, const SpacePoint &p2) const |
| Return the increment vector between two space points for the current space context. More...
|
|
| 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 |
|