Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How to estimate a function that fit well with a curve

  1. Jul 21, 2011 #1
    somme one know how to get the function that fit well with a curve
    following is my curve:
    [PLAIN]http://img814.imageshack.us/img814/5885/tempdepth.png [Broken]

    Last edited by a moderator: May 5, 2017
  2. jcsd
  3. Jul 21, 2011 #2
    http://en.wikipedia.org/wiki/LOESS" [Broken]?
    Last edited by a moderator: May 5, 2017
  4. Jul 21, 2011 #3
    yeh it could be...

    i could create a function that fit very well withe that graph just in excel with a fourth polynomiale and i get the numerical expresion
    but withe some other graphe with more variation the polynomiale function don't fit very good so i'm looking if i can found a softwar thar use other methodes (moving average, exp, or a mix of this methodes) to get a better curve fitting)
  5. Jul 21, 2011 #4
    A polynomial is not going to deal well with either the nearly vertical part at high depths, or the nearly horizontal part at low depths. You might be able to fix that with an appropriate coordinate transformation, but a generic method like LOESS will likely produce better results with less effort.
  6. Jul 21, 2011 #5


    User Avatar
    Homework Helper

    Here is a link to an Excel add-in that claims to have LOESS capability.


    If I were doing this I'd consider some form of parametric cubic polynomials (e.g. Bezier) because they can handle vertical slopes.
    Last edited: Jul 21, 2011
  7. Jul 22, 2011 #6
    oooh thank you hotvette
    that give a really a very very good fitting
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook