Computational Geometry: Is there a general equation for the area of the intersection of two polygons plotted on a radar chart?
-
It should hold for an arbitrary number of axes. The goal is to attempt to quantify the similarity of two categorical distributions.
-
Answer:
I doubt this is a very informative number to compute, since it would change if you reordered the axes. However, let's answer the math problem anyway. Here's a picture of two polygons on a radar chart: Compute the intersection This is easy. Along each axis, we have a red vertex and a blue vertex. Obviously whichever is innermost is contained in the intersection of the polygons. Now, for each adjacent pair of axes, look at which color each innermost vertex is. For instance, between "Sales" and "Marketing" on the graph above, both innermost vertices are blue, so we should take the edge of the blue polygon between these edges. On the other hand, the innermost vertex for "Marketing" is blue, while the innermost vertex for "Development" is red. Therefore, we need to calculate the intersection X of the red and blue edges between Marketing and Development. The intersection of the polygons will take the blue edge between Marketing and X, and then the red edge between X and Development. Compute the area Now that we have a polygon representing the intersection, we just need to compute its area. This is easy -- just cut it into triangles made from two adjacent points on the polygon and one point at the center of the radar chart and sum the areas.
Daniel McLaury at Quora Visit the source
Related Q & A:
- How to create a bar chart?Best solution by Stack Overflow
- What is a combustion equation?Best solution by Yahoo! Answers
- What's a chemical equation?Best solution by chemistry.about.com
- Is this a triphasic chart?Best solution by Yahoo! Answers
- Where can I find a fingering chart for a wooden flute?Best solution by wiki.answers.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.