3 ms·
My first thought was to go with the length of the state's boundary that is on the convex hull divided by the length of the whole boundary. So...we've got at le
by tzs 13y ago
My first thought was to go with the length of the state's boundary that is on the convex hull divided by the length of the whole boundary.
So...we've got at least 3 ways so far to assign a measure of convexity/concavity to a state, and they give quite different results.
For instance, your method and the method in the comment you responded to both would assign a low concavity to a state that is almost a square, except that the boundary has a high frequency, low amplitude sawtooth pattern imposed on it. Mine would score that has a very high concavity.
- thejteam 13y agoI was interested in this and did a very quick google search. Measuring concavity/convexity of a generic 2D surface object doesn't seem to be a very common operation. The one reference I found seems to do what you describe: http://www.ncbi.nlm.nih.gov/pubmed/7945702 http://www.ncbi.nlm.nih.gov/pubmed/7945702 Although I don't have PubMed access so I can't be sure. This is an interesting problem. I chose the "random points" method because it seemed easier to me to get an approximate answer for a generic shape rather than try to figure out areas. Lengths didn't occur to me though and seems interesting, although the shape you describe doesn't "feel" concave to me.