Home > Back-end >  Is there a way in Python to calculate the overlapping area between multiple curves?
Is there a way in Python to calculate the overlapping area between multiple curves?

Time:10-15

While calculating the overlapping area between two curves is something that has been addressed many times, I am yet to find a solution for calculating the overlapping areas between multiple curves, i.e. 4 curves.

Plot of 4 curves

Anybody out there with an elegant solution?

CodePudding user response:

You can take the minimum (area under 4 curves

CodePudding user response:

You can use 'Sweep and Prune' algorithm.

  • Related