All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Types | Public Member Functions | List of all members
paal::lsh::l_p_hash_function< FloatType > Class Template Reference

hash_function for l_p distance for p in range (0,2] More...

#include <lsh_functions.hpp>

Public Types

using r_param_t = boost::numeric::ublas::vector< FloatType >
 

Public Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 serialize
 
 l_p_hash_function (r_param_t r, FloatType b, FloatType w)
 constructor More...
 
 l_p_hash_function ()=default
 default constructor
 
bool operator== (l_p_hash_function const &other) const
 operator==
 
template<typename Range >
auto operator() (Range &&range) const
 operator() More...
 

Detailed Description

template<typename FloatType = double>
class paal::lsh::l_p_hash_function< FloatType >

hash_function for l_p distance for p in range (0,2]

Definition at line 143 of file lsh_functions.hpp.

Constructor & Destructor Documentation

template<typename FloatType = double>
paal::lsh::l_p_hash_function< FloatType >::l_p_hash_function ( r_param_t  r,
FloatType  b,
FloatType  w 
)
inline

constructor

Parameters
rr elements has to be generated by p-stable distribution
bb is a random value from [0, w)
ww should be much greater than expected points neighborhood radius

Definition at line 170 of file lsh_functions.hpp.

Member Function Documentation

template<typename FloatType = double>
template<typename Range >
auto paal::lsh::l_p_hash_function< FloatType >::operator() ( Range &&  range) const
inline

operator()

Template Parameters
Range
Parameters
rangeRange modeling boost uBLAS VectorExpression concept
Returns

Definition at line 194 of file lsh_functions.hpp.


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