MCPcopy Create free account
hub / github.com/daniel-e/rustml / set_cluster

Method set_cluster

src/dbscan.rs:74–77  ·  view source on GitHub ↗
(&mut self, pos: usize, c: isize)

Source from the content-addressed store, hash-verified

72 }
73
74 fn set_cluster(&mut self, pos: usize, c: isize) {
75 let cl = self.cluster.get_mut(pos).unwrap();
76 *cl = c;
77 }
78
79 fn get_cluster(&self, pos: usize) -> isize {
80 *self.cluster.get(pos).unwrap()

Callers 2

noiseMethod · 0.80
expand_clusterMethod · 0.80

Calls 1

get_mutMethod · 0.80

Tested by

no test coverage detected