A.I.M.S algorithms


aims::knn::MultiDatabase Class Reference

#include <aims/math/knn.h>

Inheritance diagram for aims::knn::MultiDatabase:
Collaboration diagram for aims::knn::MultiDatabase:

Public Member Functions

 MultiDatabase (double *data, unsigned int n, unsigned int dim)
 
- Public Member Functions inherited from aims::knn::Database
 Database ()
 
 Database (double *data, unsigned int size, unsigned int dim)
 
virtual ~Database ()
 
void init (double *data, unsigned int size, unsigned int dim)
 
int search (const std::vector< double > &v, unsigned int dim) const
 
int search_with_hole (const std::vector< double > &v, unsigned int dim) const
 
iterator begin (void)
 
iterator end (void)
 
unsigned int size (void) const
 
unsigned int dim (void) const
 
double operator() (unsigned int x, unsigned int y) const
 
double * operator[] (unsigned int ind)
 
const double * operator[] (unsigned int ind) const
 
double variance_along_dim (unsigned int dim) const
 
void sort (unsigned int dim)
 
const std::vector< bool > & holes () const
 
void setHole (unsigned int ind, bool status)
 
void removeHoles (void)
 

Additional Inherited Members

- Public Types inherited from aims::knn::Database
typedef double * value_type
 
typedef double ** pointer
 
typedef double *& reference
 
- Protected Attributes inherited from aims::knn::Database
double * _data
 
unsigned int _size
 
unsigned int _dim
 
std::vector< bool > _holes
 

Detailed Description

Definition at line 443 of file knn.h.

Constructor & Destructor Documentation

aims::knn::MultiDatabase::MultiDatabase ( double *  data,
unsigned int  n,
unsigned int  dim 
)
inline

Definition at line 446 of file knn.h.


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