Class ClustererHistogramMixin

Inheritance Relationships

Base Type

Derived Types

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