#include <Ball.hpp>
Public Member Functions | |
Ball (const double **data=nullptr, int n_samples=0, int n_features=0, double(*dist_function)(const double *x1, const double *x2, int size)=nullptr, int leaf_size=10, int default_distance_function=1) | |
Ball (const VectorVectorDouble &data, double(*dist_function)(const double *x1, const double *x2, int size)=nullptr, int leaf_size=10, int default_distance_function=1) | |
Ball (const Db *db, double(*dist_function)(const double *x1, const double *x2, int size)=nullptr, int leaf_size=10, int default_distance_function=1, bool useSel=false) | |
Ball (const Ball &p)=delete | |
Ball & | operator= (const Ball &p)=delete |
virtual | ~Ball () |
void | init (const Db *db, double(*dist_function)(const double *x1, const double *x2, int size)=nullptr, int leaf_size=10, int default_distance_function=1, bool useSel=false) |
KNN | query (const double **test, int n_samples, int n_features, int n_neighbors=1) |
KNN | queryAsVVD (const VectorVectorDouble &test, int n_neighbors=1) |
KNN | queryOne (const double *test, int n_features, int n_neighbors=1) |
KNN | queryOneAsVD (const VectorDouble &test, int n_neighbors=1) |
KNN | queryOneAsVDFromSP (const SpacePoint &Pt, int n_neighbors=1) |
VectorInt | getIndices (const SpacePoint &Pt, int n_neighbors=1) |
int | queryClosest (const VectorDouble &test) |
void | display (int level=-1) const |
Ball::Ball | ( | const double ** | data = nullptr , |
int | n_samples = 0 , |
||
int | n_features = 0 , |
||
double(*)(const double *x1, const double *x2, int size) | dist_function = nullptr , |
||
int | leaf_size = 10 , |
||
int | default_distance_function = 1 |
||
) |
Ball::Ball | ( | const VectorVectorDouble & | data, |
double(*)(const double *x1, const double *x2, int size) | dist_function = nullptr , |
||
int | leaf_size = 10 , |
||
int | default_distance_function = 1 |
||
) |
Ball::Ball | ( | const Db * | db, |
double(*)(const double *x1, const double *x2, int size) | dist_function = nullptr , |
||
int | leaf_size = 10 , |
||
int | default_distance_function = 1 , |
||
bool | useSel = false |
||
) |
|
delete |
|
virtual |
void Ball::display | ( | int | level = -1 | ) | const |
VectorInt Ball::getIndices | ( | const SpacePoint & | Pt, |
int | n_neighbors = 1 |
||
) |
void Ball::init | ( | const Db * | db, |
double(*)(const double *x1, const double *x2, int size) | dist_function = nullptr , |
||
int | leaf_size = 10 , |
||
int | default_distance_function = 1 , |
||
bool | useSel = false |
||
) |
KNN Ball::query | ( | const double ** | test, |
int | n_samples, | ||
int | n_features, | ||
int | n_neighbors = 1 |
||
) |
KNN Ball::queryAsVVD | ( | const VectorVectorDouble & | test, |
int | n_neighbors = 1 |
||
) |
int Ball::queryClosest | ( | const VectorDouble & | test | ) |
KNN Ball::queryOne | ( | const double * | test, |
int | n_features, | ||
int | n_neighbors = 1 |
||
) |
KNN Ball::queryOneAsVD | ( | const VectorDouble & | test, |
int | n_neighbors = 1 |
||
) |
KNN Ball::queryOneAsVDFromSP | ( | const SpacePoint & | Pt, |
int | n_neighbors = 1 |
||
) |