MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / outlier_count

Method outlier_count

nodedb-codec/src/vector_quant/layout.rs:232–234  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

230 /// Number of outlier entries, computed via popcnt of `outlier_bitmask`.
231 #[inline]
232 pub fn outlier_count(&self) -> u32 {
233 self.header().outlier_bitmask.count_ones()
234 }
235
236 /// Return the outlier `(dim_index, value)` for the dimension at position
237 /// `slot` in the bitmask.

Callers

nothing calls this directly

Calls 2

count_onesMethod · 0.80
headerMethod · 0.45

Tested by

no test coverage detected