jubatus_core
0.1.2
Jubatus: Online machine learning framework for distributed environment
|
#include <lsh_util.hpp>
Public Member Functions | |
const lsh_vector & | base (size_t i) const |
lsh_vector | base_all () const |
std::pair< size_t, lsh_vector > | get_next_table_and_vector () |
void | init () |
lsh_probe_generator (const std::vector< float > &hash, size_t num_hash_tables) | |
Private Types | |
typedef std::pair< float, std::pair< size_t, std::vector< int > > > | diff_type |
typedef std::priority_queue< diff_type, std::vector< diff_type >, std::greater< diff_type > > | heap_type |
Private Member Functions | |
void | next_perturbations () |
Private Attributes | |
std::vector< lsh_vector > | base_ |
std::vector< std::vector< float > > | hash_ |
heap_type | heap_ |
std::vector< std::vector< std::pair< float, int > > > | perturbation_sets_ |
Definition at line 30 of file lsh_util.hpp.
|
private |
Definition at line 43 of file lsh_util.hpp.
|
private |
Definition at line 47 of file lsh_util.hpp.
jubatus::core::storage::lsh_probe_generator::lsh_probe_generator | ( | const std::vector< float > & | hash, |
size_t | num_hash_tables | ||
) |
Definition at line 84 of file lsh_util.cpp.
|
inline |
Definition at line 37 of file lsh_util.hpp.
References base_.
Referenced by jubatus::core::storage::lsh_index_storage::make_entry().
lsh_vector jubatus::core::storage::lsh_probe_generator::base_all | ( | ) | const |
Definition at line 118 of file lsh_util.cpp.
References base_, and jubatus::core::storage::lsh_vector::set().
pair< size_t, lsh_vector > jubatus::core::storage::lsh_probe_generator::get_next_table_and_vector | ( | ) |
Definition at line 129 of file lsh_util.cpp.
References base_, heap_, next_perturbations(), and perturbation_sets_.
void jubatus::core::storage::lsh_probe_generator::init | ( | ) |
Definition at line 94 of file lsh_util.cpp.
References base_, jubatus::core::clustering::dist(), hash_, heap_, and perturbation_sets_.
|
private |
Definition at line 141 of file lsh_util.cpp.
References heap_, and perturbation_sets_.
Referenced by get_next_table_and_vector().
|
private |
Definition at line 52 of file lsh_util.hpp.
Referenced by base(), base_all(), get_next_table_and_vector(), init(), and lsh_probe_generator().
|
private |
Definition at line 51 of file lsh_util.hpp.
Referenced by init(), and lsh_probe_generator().
|
private |
Definition at line 54 of file lsh_util.hpp.
Referenced by get_next_table_and_vector(), init(), and next_perturbations().
|
private |
Definition at line 53 of file lsh_util.hpp.
Referenced by get_next_table_and_vector(), init(), and next_perturbations().