LILAC
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
hasher Class Reference

#include <hasher.h>

Collaboration diagram for hasher:
Collaboration graph
[legend]

Public Member Functions

vector< float > get_cur_scores ()
void add_vecs (const rmf &invecs)
void hash (const rmf &invecs, cmf &hashes)
 hasher (size_t num_hash, size_t num_rand, vector< float > dims, size_t d_vals, float min_interest)
 ~hasher ()

Private Member Functions

size_t get_bin (float hval, size_t n_bins)
void add_scores (const cmf &inscores)

Private Attributes

cmf hashmat
vector< vector< vector< size_t > > > tor_hashes
cmf rand_scores
list< rmfin_vecs
rmf rand_vecs
float mnorm
vector< float > d_test

Detailed Description

Definition at line 15 of file hasher.h.

Constructor & Destructor Documentation

hasher::hasher ( size_t  num_hash,
size_t  num_rand,
vector< float >  dims,
size_t  d_vals,
float  min_interest 
)

Definition at line 5 of file hasher.cpp.

hasher::~hasher ( )

Definition at line 48 of file hasher.cpp.

Member Function Documentation

void hasher::add_scores ( const cmf inscores)
private

Definition at line 67 of file hasher.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void hasher::add_vecs ( const rmf invecs)

Definition at line 61 of file hasher.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

size_t hasher::get_bin ( float  hval,
size_t  n_bins 
)
inlineprivate

Definition at line 51 of file hasher.cpp.

Here is the caller graph for this function:

vector< float > hasher::get_cur_scores ( )

Definition at line 78 of file hasher.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void hasher::hash ( const rmf invecs,
cmf hashes 
)

Definition at line 58 of file hasher.cpp.

Member Data Documentation

vector<float> hasher::d_test
private

Definition at line 25 of file hasher.h.

cmf hasher::hashmat
private

Definition at line 16 of file hasher.h.

list<rmf> hasher::in_vecs
private

Definition at line 20 of file hasher.h.

float hasher::mnorm
private

Definition at line 22 of file hasher.h.

cmf hasher::rand_scores
private

Definition at line 19 of file hasher.h.

rmf hasher::rand_vecs
private

Definition at line 21 of file hasher.h.

vector<vector<vector<size_t> > > hasher::tor_hashes
private

Definition at line 18 of file hasher.h.


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