1.11.1
CCC
 
Loading...
Searching...
No Matches
gstlrn::BallFaulted Class Reference

#include <BallFaulted.hpp>

Inheritance diagram for gstlrn::BallFaulted:
gstlrn::Ball

Public Member Functions

 BallFaulted ()=default
 
 BallFaulted (const MeshEFaulted *mesh, Id leaf_size=10, bool all_available=true, Id default_distance_function=1)
 Construct a new BallFaulted tree object based on the barycenters of the meshes.
 
 ~BallFaulted ()=default
 
 getIndices (const SpacePoint &Pt, Id n_neighbors=1) override
 
Id queryOneInPlace (const 1 &test, Id n_neighbors, 1 &indices, 1 &distances, Id rank=0) override
 
- Public Member Functions inherited from gstlrn::Ball
 Ball ()=default
 
 Ball (const Db *dbin, const Db *dbout=nullptr, Id leaf_size=10, bool all_available=true, Id default_distance_function=1, bool useSel=false)
 Construct a new Ball tree object.
 
 Ball (const AMesh *mesh, Id leaf_size=10, bool all_available=true, Id default_distance_function=1)
 Construct a new Ball tree object based on the barycenters of the meshes.
 
virtual ~Ball ()=default
 
void init (const Db *db, Id leaf_size=10, bool all_available=true, Id default_distance_function=1, bool useSel=false)
 Construct a new Ball tree object.
 
KNN queryAsVVD (const 1 &test, Id n_neighbors=1)
 
KNN queryOne (const double *test, Id n_features, Id n_neighbors=1)
 
KNN queryOneAsVD (const 1 &test, Id n_neighbors=1)
 
KNN queryOneAsVDFromSP (const SpacePoint &Pt, Id n_neighbors=1)
 
Id queryClosest (const 1 &test)
 
void display (Id level=-1) const
 Ask for information regarding the Ball Tree organization.
 
Id setAvailable (Id rank, bool status)
 
Id resetAvailable (bool status)
 
bool empty () const
 
Id getNSample () const
 

Constructor & Destructor Documentation

◆ BallFaulted() [1/2]

gstlrn::BallFaulted::BallFaulted ( )
default

◆ BallFaulted() [2/2]

gstlrn::BallFaulted::BallFaulted ( const MeshEFaulted mesh,
Id  leaf_size = 10,
bool  all_available = true,
Id  default_distance_function = 1 
)

Construct a new BallFaulted tree object based on the barycenters of the meshes.

Parameters
meshAMesh description
leaf_sizeNumber of elements in the leafs of the BallFaulted tree
all_availableTrue if samples are available for selection at the beginning
default_distance_function1 for Euclidean distance, 2 for Manhattan

◆ ~BallFaulted()

gstlrn::BallFaulted::~BallFaulted ( )
default

Member Function Documentation

◆ getIndices()

gstlrn::BallFaulted::getIndices ( const SpacePoint Pt,
Id  n_neighbors = 1 
)
overridevirtual

Reimplemented from gstlrn::Ball.

◆ queryOneInPlace()

Id gstlrn::BallFaulted::queryOneInPlace ( const 1 &  test,
Id  n_neighbors,
1 &  indices,
1 &  distances,
Id  rank = 0 
)
overridevirtual

Reimplemented from gstlrn::Ball.


The documentation for this class was generated from the following files: