barycenter

Function barycenter 

Source
fn barycenter(neighbors: &[usize], positions: &[(usize, usize)]) -> f64
Expand description

Barycenter: average position of neighbors in the given position map.