#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    2
    Rep Power
    0

    smoothing algorithm


    I'm using an acquisition card to capture data and show them to the program user with a graph, but there is a lot of noise and the curve is not smooth.

    I would like it to be more continued, first for an esthetic point of vue and secondly because i want to derivate it latter.

    I overheard about smoothing technics but I don't know exactly what to search for, so where can i find resources/algorithm about it?

    Or is there a better solution?...

    Thanks.
  2. #2
  3. Doggie
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2003
    Location
    Seattle, WA
    Posts
    751
    Rep Power
    13

    A simple method


    One simple way, would be to average the values around your current point. (such as, prev 4 values+cur value+next 4 values) You could increase the number of samples to smooth it more if you have enough data elements.

    This would probably work best if there's a lot of data to work with.

    There's also Bezier algorithms that work with n points of data. That would work well to smooth more limited data.

    You could even combine the two methods.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    2
    Rep Power
    0
    thanks,

    I think I'll use the average method to refine the results/remove off-scale points and follow with the Bezier method.

IMN logo majestic logo threadwatch logo seochat tools logo