#include <histogram.h>
Inheritance diagram for lshkit::Histogram< LSH >:

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. | |
| lshkit::Histogram< LSH >::Histogram | ( | ) | [inline] |
Default constructor.
| lshkit::Histogram< LSH >::Histogram | ( | unsigned | M, | |
| unsigned | N, | |||
| Parameter | parameter, | |||
| RNG & | rng | |||
| ) | [inline] |
Constructor.
| 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. |
| 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.
| out | The array to hold the output histogram. | |
| in | The input vector. | |
| weight | Weight of the input vector. |
| void lshkit::Histogram< LSH >::reset | ( | unsigned | M, | |
| unsigned | N, | |||
| Parameter | param, | |||
| RNG & | rng | |||
| ) | [inline] |
Reset the sketcher.
| 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. |
| void lshkit::Histogram< LSH >::zero | ( | float * | out | ) | const [inline] |
Initialize an output histogram.
| out | The array to hold the output histogram. |