#include <Ball.hpp>
|
| Ball ()=default |
|
| Ball (const Db *dbin, const Db *dbout=nullptr, Id leaf_size=10, bool has_constraints=false, Id default_distance_function=1, bool useSel=false) |
|
| Ball (const AMesh *mesh, Id leaf_size=10, bool has_constraints=false, Id default_distance_function=1) |
| Construct a new Ball object based on the barycenters of the meshes.
|
|
void | init (const Db *db, Id leaf_size=10, Id default_distance_function=1, bool useSel=false) |
|
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) |
|
| getIndices (const SpacePoint &Pt, Id n_neighbors=1) |
|
Id | queryClosest (const 1 &test) |
|
Id | queryOneInPlace (const 1 &test, Id n_neighbors, 1 &indices, 1 &distances, Id rank=0) |
|
void | display (Id level=-1) const |
| Ask for information regarding the Ball Tree organization.
|
|
Id | setConstraint (Id rank, bool status) |
|
Id | resetConstraints (bool status) |
|
bool | empty () const |
|
◆ Ball() [1/3]
◆ Ball() [2/3]
gstlrn::Ball::Ball |
( |
const Db * |
dbin, |
|
|
const Db * |
dbout = nullptr , |
|
|
Id |
leaf_size = 10 , |
|
|
bool |
has_constraints = false , |
|
|
Id |
default_distance_function = 1 , |
|
|
bool |
useSel = false |
|
) |
| |
◆ Ball() [3/3]
gstlrn::Ball::Ball |
( |
const AMesh * |
mesh, |
|
|
Id |
leaf_size = 10 , |
|
|
bool |
has_constraints = false , |
|
|
Id |
default_distance_function = 1 |
|
) |
| |
Construct a new Ball object based on the barycenters of the meshes.
- Parameters
-
mesh | AMesh description |
leaf_size | Number of elements in the leafs of the Ball tree |
has_constraints | True if constraints are applied on the Ball Tree |
default_distance_function | 1 for Euclidean distance, 2 for Manhattan |
◆ display()
void gstlrn::Ball::display |
( |
Id |
level = -1 | ) |
const |
Ask for information regarding the Ball Tree organization.
- Parameters
-
level | Level of details -1 Just the general volumetry information 0 List of the different nodes 1 List of Leaves and attached list of samples |
◆ empty()
bool gstlrn::Ball::empty |
( |
| ) |
const |
|
inline |
◆ getIndices()
gstlrn::Ball::getIndices |
( |
const SpacePoint & |
Pt, |
|
|
Id |
n_neighbors = 1 |
|
) |
| |
◆ init()
void gstlrn::Ball::init |
( |
const Db * |
db, |
|
|
Id |
leaf_size = 10 , |
|
|
Id |
default_distance_function = 1 , |
|
|
bool |
useSel = false |
|
) |
| |
◆ queryAsVVD()
KNN gstlrn::Ball::queryAsVVD |
( |
const 1 & |
test, |
|
|
Id |
n_neighbors = 1 |
|
) |
| |
◆ queryClosest()
Id gstlrn::Ball::queryClosest |
( |
const 1 & |
test | ) |
|
◆ queryOne()
KNN gstlrn::Ball::queryOne |
( |
const double * |
test, |
|
|
Id |
n_features, |
|
|
Id |
n_neighbors = 1 |
|
) |
| |
◆ queryOneAsVD()
KNN gstlrn::Ball::queryOneAsVD |
( |
const 1 & |
test, |
|
|
Id |
n_neighbors = 1 |
|
) |
| |
◆ queryOneAsVDFromSP()
KNN gstlrn::Ball::queryOneAsVDFromSP |
( |
const SpacePoint & |
Pt, |
|
|
Id |
n_neighbors = 1 |
|
) |
| |
◆ queryOneInPlace()
Id gstlrn::Ball::queryOneInPlace |
( |
const 1 & |
test, |
|
|
Id |
n_neighbors, |
|
|
1 & |
indices, |
|
|
1 & |
distances, |
|
|
Id |
rank = 0 |
|
) |
| |
◆ resetConstraints()
Id gstlrn::Ball::resetConstraints |
( |
bool |
status | ) |
|
◆ setConstraint()
Id gstlrn::Ball::setConstraint |
( |
Id |
rank, |
|
|
bool |
status |
|
) |
| |
The documentation for this class was generated from the following files:
- include/Tree/Ball.hpp
- src/Tree/Ball.cpp