#include <KNN.hpp>
|
| KNN () |
|
void | setNNeighbors (Id n_neighbors) |
|
void | setNSamples (Id n_samples) |
|
Id | btree_query (const t_btree &tree, const MatrixT< double > &x, Id n_samples, Id n_features, Id n_neigh) |
|
Id | btree_query_inPlace (const t_btree &tree, const MatrixT< double > &x, Id n_samples, Id n_features, Id n_neigh, Id rank, 1 &indices, 1 &distances) |
|
constvectint | getIndices (Id rank=0) const |
|
Id | getIndex (Id rank=0, Id ineigh=0) const |
|
constvect | getDistances (Id rank=0) const |
|
double | getDistance (Id rank=0, Id ineigh=0) const |
|
◆ KNN()
◆ btree_query()
Id gstlrn::KNN::btree_query |
( |
const t_btree & |
tree, |
|
|
const MatrixT< double > & |
x, |
|
|
Id |
n_samples, |
|
|
Id |
n_features, |
|
|
Id |
n_neigh |
|
) |
| |
◆ btree_query_inPlace()
Id gstlrn::KNN::btree_query_inPlace |
( |
const t_btree & |
tree, |
|
|
const MatrixT< double > & |
x, |
|
|
Id |
n_samples, |
|
|
Id |
n_features, |
|
|
Id |
n_neigh, |
|
|
Id |
rank, |
|
|
1 & |
indices, |
|
|
1 & |
distances |
|
) |
| |
◆ getDistance()
double gstlrn::KNN::getDistance |
( |
Id |
rank = 0 , |
|
|
Id |
ineigh = 0 |
|
) |
| const |
◆ getDistances()
constvect gstlrn::KNN::getDistances |
( |
Id |
rank = 0 | ) |
const |
◆ getIndex()
Id gstlrn::KNN::getIndex |
( |
Id |
rank = 0 , |
|
|
Id |
ineigh = 0 |
|
) |
| const |
◆ getIndices()
◆ setNNeighbors()
void gstlrn::KNN::setNNeighbors |
( |
Id |
n_neighbors | ) |
|
|
inline |
◆ setNSamples()
void gstlrn::KNN::setNSamples |
( |
Id |
n_samples | ) |
|
|
inline |
The documentation for this class was generated from the following files:
- include/Tree/KNN.hpp
- src/Tree/KNN.cpp