Looking for a metric to express difference between two curves

In summary, the two curves in question look very similar, but their areas differ. The ellipse and the interpolated curve I get from the photo look very much alike, but I need an actual number to show how much the two curves differ from each other. I thought of \frac{Area_{actual} - Area_{ellipse}}{Area_{actual}}but it doesn't really give any information about how much the curves match (a square with the same area as the ellipse would give 0 deviation). I'm kind of new to Riemannian geometry, but I thought that maybe I could use the Riemann curvature tensor, although I don't really know how to do it yet
  • #1
meldraft
281
2
Hi all,

I am trying to argue that an ellipse is a good approximation for some discontinuity in a material. The ellipse and the interpolated curve I get from the photo look very much alike, but I need an actual number to show how much the two curves differ from each other. I thought of

[tex]\frac{Area_{actual} - Area_{ellipse}}{Area_{actual}}[/tex]

but it doesn't really give any information about how much the curves match (a square with the same area as the ellipse would give 0 deviation).

I'm kind of new to Riemannian geometry, but I thought that maybe I could use the Riemann curvature tensor, although I don't really know how to do it yet :P . I would appreciate any suggestions you are able to give!
 
Physics news on Phys.org
  • #2
Here is a possibility:

Let X be the interior of the first curve and let Y be the interior of the second curve. Then you can make

[tex](X\setminus Y) \cup (Y\setminus X)[/tex]

The area of that should be a good (pseudo)metric to describe what you want.
 
  • #3
If the curves can be expressed in polar form [itex](r(\theta), \theta)[/itex], perhaps using as origin of coordinates the center of your suggested ellipse, then maybe you could use
[tex]\int_{\theta_1}^{\theta_2} (r_{ellipse} - r_{interp})^2 d\theta[/tex]
(Am I making sense?)
 
  • #4
Thank you both for your answers!

Micromass, I really like your suggestion, but I had trouble going from sets to actual equations.

The solution I used eventually was Dodo's equation: I also looked up "interpolation error".

http://en.wikipedia.org/wiki/Interpolation

There, the deviation of one curve from the other is measured as the square of the distance difference (just as in Dodo's equation).
 
  • #5
Just a correction: Dodo if I'm not mistaken, your formula is meant to calculate the area between the curves correct? If so, shouldn't it be:

[tex]|\int_0^{2 \pi}{(r_1(θ)^2-r_2(θ)^2)}{dθ}|[/tex]
 
  • #6
Hi, Meldraft, sorry for the delay, I was travelling.

The formula was not intended to calculate the area in-between. I was intended to be a continuous sum (an integral) of squares... just as when you add the squares of residuals after you fit a curve to data. (I couldn't avoid the multiplication by a delta-angle... but I'm open to suggestions.) Hope this makes some sense now.

Edit: [itex]\theta_1[/itex] and [itex]\theta_2[/itex] are supposed to be the initial and final "sweep angle". Your approximation as an arc of ellipse, when written in polar form, has, as any arc of ellipse, an initial angle and an ending angle. presumably the interpolated curve, if it can be expressed in polar coordinates from the ellipse's center, is also some form of strange arc, with an initial and a final sweep angle.
 
Last edited:
  • #7
Ohhh, so you meant like RSS?

Both my curves are closed, since I'm describing a physical hole, so if I understand correctly, I could use:

theta1 = 0, theta2 = 2*pi

I haven't really used this, I'm just familiar with the term, so I'll have to look into it. The area formula (which I am now realising has essentially been micromass' suggestion all along :P) seems to be yielding good results, although I'm a little hesitant on including a self-defined metric. I'd rather use something that is in the literature.

Thank you for your feedback! I'll let you know how it works out!
 

Related to Looking for a metric to express difference between two curves

1. What is the importance of finding a metric to express difference between two curves?

Being able to accurately measure the difference between two curves is crucial in many fields of science and research. It allows for quantitative analysis and comparison, which can provide valuable insights and aid in decision making processes.

2. What are some common metrics used to express difference between two curves?

Some commonly used metrics include the area between the curves, the mean squared error, and the correlation coefficient. Each metric has its own advantages and limitations, and the choice of metric depends on the specific context and purpose of the analysis.

3. How do these metrics account for the shape and magnitude of the curves?

The choice of metric will affect how the shape and magnitude of the curves are accounted for. For example, the area between curves metric takes into account both the shape and magnitude, while the correlation coefficient only measures the linear relationship between the curves.

4. Can a single metric accurately capture all aspects of difference between two curves?

No, it is not possible for a single metric to accurately capture all aspects of difference between two curves. Each metric has its own limitations and assumptions, and it is important to consider multiple metrics and their interpretations when analyzing and comparing curves.

5. How can the choice of metric affect the interpretation of the difference between two curves?

The choice of metric can greatly impact the interpretation of the difference between two curves. For example, if the correlation coefficient is used, a high value may suggest a strong linear relationship, while a low value may suggest no relationship. However, this may not necessarily be true when using other metrics, such as the area between curves.

Similar threads

  • Topology and Analysis
Replies
6
Views
4K
  • Special and General Relativity
Replies
4
Views
1K
  • Topology and Analysis
Replies
11
Views
2K
  • Special and General Relativity
Replies
14
Views
1K
  • Differential Geometry
Replies
16
Views
2K
Replies
7
Views
2K
  • Astronomy and Astrophysics
Replies
8
Views
3K
  • Differential Geometry
Replies
6
Views
2K
  • Special and General Relativity
Replies
12
Views
2K
Back
Top