Class ClustererHistogramMixin
Defined in File utils.h
Inheritance Relationships
Base Type
public cpphots::interfaces::Clusterer(Class Clusterer)
Derived Types
public cpphots::CosineClusterer(Class CosineClusterer)public cpphots::GMMClusterer(Class GMMClusterer)public cpphots::KMeansClusterer(Class KMeansClusterer)
Class Documentation
-
class cpphots::ClustererHistogramMixin : public virtual cpphots::interfaces::Clusterer
Mixin for clusterer that can manage the histogram.
Subclassed by cpphots::CosineClusterer, cpphots::GMMClusterer, cpphots::KMeansClusterer
Public Functions
-
virtual std::vector<uint32_t> getHistogram() const override
Get the histogram of centroids activations.
- Returns
the histogram of activations
-
virtual void reset() override
Reset the histogram of activations.
Protected Functions
-
void updateHistogram(uint16_t k)
Updated the histogram of activations.
This function should be called by subclasses in their cluster implementation.
- Parameters
k – the latest cluster id emitted
-
virtual std::vector<uint32_t> getHistogram() const override