[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cumulative Sum Question - Octave Newbie

From: Doug Stewart
Subject: Re: Cumulative Sum Question - Octave Newbie
Date: Thu, 6 Jan 2011 17:27:30 -0500

On Thu, Jan 6, 2011 at 4:55 PM, Jason Criss <address@hidden> wrote:
I have a cumulative sum of monotonic values that is a function of time (I don't have the analytic function, just the points).  For each point along the function, I would like to know the slope.  The issue is that the rate of change is very slow and a little noisy point-to-point so calculating the slope between adjacent points would yield a lot of noise.  Is there a function in Octave which gives the slope across multiple points?  I was thinking that the function would take the change in slope between a point and another point x samples previous, where x changes based on deviation from the mean slope (taken across the points between the two end points).  Or is there a better way to calculate slope in this situation?  The function looks something like this:

Help-octave mailing list

I don't know of the function you are looking for, but how about a polynomial curve fit through the nearest points and then calculate the slope from the polynomial.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]