aimsalgo 6.0.0
Neuroimaging image processing
aims::knn::Heap Class Reference

#include <aims/math/knn.h>

Classes

class  MiniHeap
 

Public Member Functions

 Heap (unsigned int n)
 
virtual ~Heap ()
 
void exchange (unsigned int a, unsigned int b)
 
void erase_worst (void)
 
void insert (double key, const void *value)
 
std::pair< std::vector< unsigned int >, std::vector< double > > toVectors (const Database &_db)
 
const MiniHeapoperator[] (unsigned int ind) const
 
double get_worst_value ()
 

Detailed Description

Definition at line 472 of file knn.h.

Constructor & Destructor Documentation

◆ Heap()

aims::knn::Heap::Heap ( unsigned int n)
inline

Definition at line 516 of file knn.h.

◆ ~Heap()

virtual aims::knn::Heap::~Heap ( )
inlinevirtual

Definition at line 519 of file knn.h.

Member Function Documentation

◆ erase_worst()

void aims::knn::Heap::erase_worst ( void )

◆ exchange()

void aims::knn::Heap::exchange ( unsigned int a,
unsigned int b )

◆ get_worst_value()

double aims::knn::Heap::get_worst_value ( )
inline

Definition at line 532 of file knn.h.

◆ insert()

void aims::knn::Heap::insert ( double key,
const void * value )

◆ operator[]()

const MiniHeap & aims::knn::Heap::operator[] ( unsigned int ind) const
inline

Definition at line 527 of file knn.h.

◆ toVectors()

std::pair< std::vector< unsigned int >, std::vector< double > > aims::knn::Heap::toVectors ( const Database & _db)

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