Skip to main content

orientation_entropy

Function orientation_entropy 

Source
pub fn orientation_entropy(bearings: &[f64], num_bins: usize) -> f64
Expand description

Shannon entropy (in nats) of edge compass bearings, binned into num_bins equal sectors over [0, 360). Higher entropy = more disordered (organic) street grid; lower = more ordered (gridiron). Bearings are in degrees.