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

Method n_cells

nodedb-vector/src/ivf.rs:216–218  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

214 }
215
216 pub fn n_cells(&self) -> usize {
217 self.centroids.len()
218 }
219}
220
221fn kmeans_centroids(data: &[&[f32]], dim: usize, k: usize, max_iter: usize) -> Vec<Vec<f32>> {

Callers 1

ivf_insertMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected