Finding local minima and maxima of a graph

jonathandlynch at jonathandlynch at
Sun Dec 5 00:55:52 EST 2010

How many data points are you talking about?

Also, are you using this for forecasting, such that you would need to do a regression analysis? If you are wanting to make predictions, that changes a lot.

As for detrending - that seems unnecessary if you are looking for fairly local mins and maxes. 

I think you might find the rolling average approach reasonably fast. I can help with the algorithm, if you need.

------Original Message------
From: Bryan McCormick
Sender: use-livecode-bounces at
To: use-livecode at
ReplyTo: How to use LiveCode
Subject: Re: Finding local minima and maxima of a graph
Sent: Dec 5, 2010 12:33 AM


Sure, that approach can work. But it isn't terribly efficient. It would 
however be less computationally intensive if I detrend first. That's the 
first step. So if you have a notion on a least squares linear fit line, 
that would be most welcome.

use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Sent from my Verizon Wireless BlackBerry

More information about the Use-livecode mailing list