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, Id nmini=1, bool useBallTree=false, Id leaf_size=10, const ASpaceSharedPtr &space=ASpaceSharedPtr()) |
|
| NeighCell (const NeighCell &r) |
|
NeighCell & | operator= (const NeighCell &r) |
|
virtual | ~NeighCell () |
|
Id | attach (const Db *dbin, const Db *dbout=nullptr) override |
| Interface for ANeigh.
|
|
void | getNeigh (Id iech_out, 1 &ranks) override |
|
bool | hasChanged (Id iech_out) const override |
|
Id | getNSampleMax (const Db *db) const override |
|
ENeigh | getType () const override |
|
String | toString (const AStringFormat *strfmt=nullptr) const override |
| Interface for AStringable.
|
|
Id | getNMini () const |
|
| ANeigh (const ASpaceSharedPtr &space=ASpaceSharedPtr()) |
|
| ANeigh (const ANeigh &r) |
|
ANeigh & | operator= (const ANeigh &r) |
|
virtual | ~ANeigh () |
|
bool | isConsistent (const ASpace *space) const override |
| ASpaceObject Interface.
|
|
virtual | summary (Id iech_out) |
|
virtual bool | getFlagContinuous () const |
|
void | displayDebug (1 &ranks) const |
|
void | select (Id iech_out, 1 &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 | setBallSearch (bool status, Id leaf_size=10) |
|
void | attachBall () |
|
| ASpaceObject (const ASpaceSharedPtr &space=ASpaceSharedPtr()) |
|
| ASpaceObject (const ASpaceObject &r) |
|
ASpaceObject & | operator= (const ASpaceObject &r) |
|
virtual | ~ASpaceObject () |
|
ASpaceSharedPtr | getSpace () const |
| Accessor to the current object space context.
|
|
bool | isConsistent () const |
| Indicate if I am consistent with my current space context.
|
|
void | setSpace (ASpaceSharedPtr &&space) |
|
| getUnitaryVector () const |
| Return unitary vector for the current space context.
|
|
bool | isConsistent (const ASpaceSharedPtr &space) const |
| Indicate if I am consistent with the provided space.
|
|
size_t | getNDim (Id ispace=-1) const |
| Shortcuts to ASpace methods.
|
|
const & | getOrigin (Id ispace=-1) const |
| Return the current space context origin coordinates.
|
|
double | getDistance (const SpacePoint &p1, const SpacePoint &p2, Id ispace=0) const |
| Return the distance between two space points for the current space context.
|
|
| getDistances (const SpacePoint &p1, const SpacePoint &p2) const |
| Return all the distances (space composits) between two space points for the current space context.
|
|
| getIncrement (const SpacePoint &p1, const SpacePoint &p2, Id ispace=0) const |
| Return the increment vector between two space points for the current space context.
|
|
void | getIncrementInPlace (const SpacePoint &p1, const SpacePoint &p2, 1 &ptemp, Id ispace=-1) const |
|
| AStringable () |
|
| AStringable (const AStringable &r) |
|
AStringable & | operator= (const AStringable &r) |
|
virtual | ~AStringable () |
|
virtual void | display (const AStringFormat *strfmt=nullptr) const final |
|
virtual void | display (Id level) const final |
|
| ASerializable () |
|
| ASerializable (const ASerializable &r) |
|
ASerializable & | operator= (const ASerializable &r) |
|
| ASerializable (ASerializable &&r) noexcept |
|
ASerializable & | operator= (ASerializable &&r) noexcept |
|
virtual | ~ASerializable () |
|
bool | dumpToNF (const String &NFFilename, const EFormatNF &format=EFormatNF::fromKey("DEFAULT"), bool verbose=false) const |
| Dump the contents of an object into an Output File using a given Output NF Format.
|
|
void | setDefaultFormatNF (const EFormatNF &format) |
|
| ICloneable () |
|
virtual | ~ICloneable () |
|
virtual ICloneable * | clone () const =0 |
|
std::shared_ptr< ICloneable > | cloneShared () const |
|
std::unique_ptr< ICloneable > | cloneUnique () const |
|