Shannon entropy (in nats) of the distribution of edge compass bearings, binned into equal sectors. Higher values indicate a more disordered (organic) network; lower values a more ordered (gridiron) one.
Arguments
- x
An osm_graph or a numeric vector of bearings (degrees), e.g. from
ox_bearings().- num_bins
Number of equal bearing sectors over
[0, 360). Default36.
Examples
g <- example_osm_graph()
ox_orientation_entropy(g)
#> [1] 1.526878