1.8.0
CCC
 
Loading...
Searching...
No Matches
gstlrn::KNN Class Reference

#include <KNN.hpp>

Public Member Functions

 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
 

Constructor & Destructor Documentation

◆ KNN()

gstlrn::KNN::KNN ( )

Member Function Documentation

◆ 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()

constvectint gstlrn::KNN::getIndices ( Id  rank = 0) const

◆ 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: