#include <forest.h>
Public Types | |
| typedef LSH::Parameter | Parameter |
| typedef LSH::Domain | Domain |
| typedef KEY | Key |
Public Member Functions | |
| template<typename Engine> | |
| void | init (const Parameter ¶m, Engine &engine, unsigned L, unsigned depth) |
| Initialize the LSH Forest index. | |
| template<typename ACCESSOR> | |
| void | insert (Key key, ACCESSOR &acc) |
| Insert a point to the forest. | |
| template<typename SCANNER> | |
| void | query (Domain val, unsigned M, SCANNER &scanner) const |
| Query for K-NNs. | |
Friends | |
| struct | Tree |
Classes | |
| struct | Tree |
| LSH | LSH class. | |
| KEY | key type. |
| void lshkit::ForestIndex< LSH, KEY >::init | ( | const Parameter & | param, | |
| Engine & | engine, | |||
| unsigned | L, | |||
| unsigned | depth | |||
| ) | [inline] |
Initialize the LSH Forest index.
| param | LSH parameters. | |
| engine | random number generator. | |
| L | number of trees in the forest. | |
| depth | maximal depth of the forest. |
| void lshkit::ForestIndex< LSH, KEY >::insert | ( | Key | key, | |
| ACCESSOR & | acc | |||
| ) | [inline] |
Insert a point to the forest.
| key | The key to be inserted. | |
| acc | The accessor to retrieve the data corresponding to keys. |
| void lshkit::ForestIndex< LSH, KEY >::query | ( | Domain | val, | |
| unsigned | M, | |||
| SCANNER & | scanner | |||
| ) | const [inline] |
Query for K-NNs.
| val | the query object. | |
| M | lower bound of the total number of points to scan. | |
| scanner | the functional object to passed keys to. |