Thread: numerical differentiation of data

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    16

    numerical differentiation of data

    Hi there,

    I'm currently working on a program that takes a set of data and smooths it using an n-point running average, with mirrored end points. I then need the program to differentiate the smoothed data to produce the final output.

    It is this last part of the program that is causing me problems. I was wondering whether anyone knows of any methods for doing this, and could point me in the right direction?

    Many thanks,
    lordbubonicus

  2. #2
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    It would be more helpful if you could post of snap of your code, so that we could see where u are going wrong. And i am not sure of whatu mean by "smooths".

    ssharish

  3. #3
    Registered User
    Join Date
    Oct 2007
    Posts
    16
    I don't really have any code for the differentiation at the moment, I'm just looking for starting points. Hence why I didn't post any.

    When I say smooths, I mean that it tries to remove some of the extremes of the data by averaging it out, i.e. it gets rid of some the more extreme maxima and minima from the data. Here's an example - think of a spectrum with several sharp peaks in it. The program broadens and lowers the peaks basically.

  4. #4
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    >> And i am not sure of whatu mean by "smooths".
    He's talking about a running average filter. So he smooths out what he doesn't need.

    What are you having problems with? Post attempts (Not blank ones), and we'll give you a hand.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. simultaneously waiting for data on FIFO and UDP using select call
    By yogesh3073 in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-05-2007, 09:53 AM
  2. Where's the EPIPE signal?
    By marc.andrysco in forum Networking/Device Communication
    Replies: 0
    Last Post: 12-23-2006, 08:04 PM
  3. Program Crashing
    By Pressure in forum C Programming
    Replies: 3
    Last Post: 04-18-2005, 10:28 PM
  4. Errors
    By Rhidian in forum C Programming
    Replies: 10
    Last Post: 04-04-2005, 12:22 PM
  5. Replies: 1
    Last Post: 07-31-2002, 11:35 AM