lshkit::Histogram< LSH > Class Template Reference

Random histogram construction. More...

#include <histogram.h>

Inheritance diagram for lshkit::Histogram< LSH >:

HyperPlaneEmbedder StripeEmbedder List of all members.

Public Types

typedef LSH::Parameter Parameter
typedef LSH::Domain Domain

Public Member Functions

 Histogram ()
template<typename RNG>
void reset (unsigned M, unsigned N, Parameter param, RNG &rng)
template<typename RNG>
 Histogram (unsigned M, unsigned N, Parameter parameter, RNG &rng)
unsigned dim () const
 Get the total dimension of the histogram.
void zero (float *out) const
 Initialize an output histogram.
void add (float *out, Domain in, float weight=1.0) const
 Add the information of a vector to the output histogram.

Detailed Description

template<typename LSH>
class lshkit::Histogram< LSH >

Random histogram construction.


Constructor & Destructor Documentation

template<typename LSH>
lshkit::Histogram< LSH >::Histogram (  )  [inline]

Default constructor.

template<typename LSH>
template<typename RNG>
lshkit::Histogram< LSH >::Histogram ( unsigned  M,
unsigned  N,
Parameter  parameter,
RNG &  rng 
) [inline]

Constructor.

Parameters:
M Number repeated to take average.
N Number of concatenated histograms.
param Parameter to LSH.
rng Random number generator (usually a variable of type lshkit::DefaultRng.


Member Function Documentation

template<typename LSH>
void lshkit::Histogram< LSH >::add ( float *  out,
Domain  in,
float  weight = 1.0 
) const [inline]

Add the information of a vector to the output histogram.

Parameters:
out The array to hold the output histogram.
in The input vector.
weight Weight of the input vector.

template<typename LSH>
template<typename RNG>
void lshkit::Histogram< LSH >::reset ( unsigned  M,
unsigned  N,
Parameter  param,
RNG &  rng 
) [inline]

Reset the sketcher.

Parameters:
M Number repeated to take average.
N Number of concatenated histograms.
param Parameter to LSH.
rng Random number generator (usually a variable of type lshkit::DefaultRng.

template<typename LSH>
void lshkit::Histogram< LSH >::zero ( float *  out  )  const [inline]

Initialize an output histogram.

Parameters:
out The array to hold the output histogram.


The documentation for this class was generated from the following file:
Get LSHKIT at SourceForge.net. Fast, secure and Free Open Source software downloads doxygen