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

Curve fitting piecewise function

  1. Oct 1, 2011 #1
    I have a piecewise function described by g_1(x) as shown in the figure below. I wish to make a smooth curve, g_2(x), to fit (but not necessarily exactly) g_1(x). The only conditions are:

    • Both curves must start at (0,0) and end at (a,0).
    • The area of both curves must be the same.

    How do you suggest I go about finding an expression for this? I am looking for as many variates of g_2(x) that meet these conditions.

    [PLAIN]http://dump.omertabeyond.com/?di=1613174606062 [Broken]
     
    Last edited by a moderator: May 5, 2017
  2. jcsd
  3. Oct 1, 2011 #2

    chiro

    User Avatar
    Science Advisor

    Hey dxdy and welcome to the forums.

    In some of my research I am working on the same problem you are, but the functions are more restricted (think lots of rectangular boxes and nothing else). I am not working on it right now but I will be working on it in the summer (starting at about christmas).

    I haven't worked on it long, but I haven't found anything that can really help me for functions that are very broad and not restricted to any particular subset of functions.

    In terms of approximations without area preservation not being considered, you are best to look at something like interpolating polynomials (Langrange), Bezier curves in any dimension, and for the ultimate interpolating framework B-Splines and NURBS.

    One suggestion that I might have is to convert your function to one of boxes and then analyze the area preservation problem in terms of these boxes. The reason I say this is that it might be easier just to deal with boxes and not any general type of region.

    Also what are the properties of the g2 function? Does it have to be Riemann integrable? From what you are trying to find it sounds like it does.

    I am going to examine looking at how different areas both overlapping and disjoint relate to each other in order to determine the derivatives of what you call the "g2" function, but I don't want to start this while I'm doing coursework.

    If you have any ideas, I'd be very glad to hear them.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Curve fitting piecewise function
  1. Curve Fitting (Replies: 4)

  2. Piecewise functions (Replies: 1)

  3. Piecewise function (Replies: 1)

  4. Piecewise functions (Replies: 7)

Loading...