Skip to main content

Module centroid_stats

Module centroid_stats 

Source
Expand description

CentroidStats value encoding/decoding.

Stores the number of vectors assigned to a centroid. Used as a merge-based counter: each write is a delta that gets summed by the merge operator.

§Value Layout

+-------------------------------+
|  num_vectors: i32 LE (4B)     |
+-------------------------------+

Structs§

CentroidStatsValue
Per-centroid vector count, stored as an i32 delta for merge-based summation.