Inheritance diagram for Embedder:
Public Member Functions | |
virtual unsigned | dim () const =0 |
The dimension of the output histogram. | |
virtual void | add (float *out, const float *in, float weight) const =0 |
Add a point to the output histogram with weight. | |
void | add (float *out, const float *in) const |
Add a point to the output histogram with weight = 1. | |
void | zero (float *out) const |
Initialize the output histogram to zeros. | |
void | scale (float *out, float s) const |
Scale the output histogram by *s. | |
void | norm (float *out) const |
Normalize the output histogram to a unit vector. |
An Embedder class only have to implement two virtual functions: dim() and add().