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-boun...@lists.runrev.com To: use-livecode@lists.runrev.com ReplyTo: How to use LiveCode Subject: Re: Finding local minima and maxima of a graph Sent: Dec 5, 2010 12:33 AM Jonathan, 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Sent from my Verizon Wireless BlackBerry _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode