Re: Finding local minima and maxima of a graph

2010-12-04 Thread Bryan McCormick
Jonathan, Jerry, et al As to the number of potential observations. Thousands of series, 10s to hundreds of thousands of observations per series at a minimum. Possibly millions. So computational efficiency isn't a luxury, it is a requirement. Yes, absolutely, detrending is required. I won't go

Re: Finding local minima and maxima of a graph

2010-12-04 Thread James Hurley
Message: 26 Date: Sat, 04 Dec 2010 12:56:05 -0500 From: Bryan McCormick To: use-livecode@lists.runrev.com Subject: Finding local minima and maxima of a graph Message-ID: <4cfa80b5.3090...@deepfoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed I have a very large number of grap

Re: How to make a square topped, round rect bottomed graphic?

2010-12-04 Thread Roger Guay
Thank you, Jacqueline. Somehow I missed the screenMouseLoc as being settable. Although it is an ugly hack, it will be fun to play with. Cheers, Roger Guay On Dec 4, 2010, at 9:45 PM, use-livecode-requ...@lists.runrev.com wrote: > Message: 25 > Date: Sat, 04 Dec 2010 20:08:15 -0600 > From: "J.

Re: Finding local minima and maxima of a graph

2010-12-04 Thread jonathandlynch
I bet audio requires orders of magnitude more data points. Sent from my Verizon Wireless BlackBerry -Original Message- From: Jerry J Sender: use-livecode-boun...@lists.runrev.com Date: Sat, 4 Dec 2010 21:45:00 To: How to use LiveCode Reply-To: How to use LiveCode Subject: Re: Finding

Re: Finding local minima and maxima of a graph

2010-12-04 Thread jonathandlynch
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.

Re: Finding local minima and maxima of a graph

2010-12-04 Thread Jerry J
Yes, what Jonathan wrote. The folks who do heavy computing in the audio world do something called windowing. Thats like a rolling average, except weighted toward the "center". Choosing the width of the window and the algorithm for determining its shape can get complicated, and has been greatly

Re: Finding local minima and maxima of a graph

2010-12-04 Thread Bryan McCormick
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. _

Re: Finding local minima and maxima of a graph

2010-12-04 Thread Jonathan Lynch
Hi Bryan, The first step is to define a local minimum or maximum for this situation. Plotting a 3-day rolling average would be pretty straight forward. Is three days sufficient? You could get a 5-day rolling average, then pick five day averages that are are greater than, or less than, their neig

Re: Finding local minima and maxima of a graph

2010-12-04 Thread Bryan McCormick
Jerry, Yes, that would be far too many hits and there has to be some scaling applied as a filter for that reason. The criteria more precisely is "significant" peak and trough values. With significant being the trick. For example, is the peak or trough 3 percent or more away. There is a seaso

Re: Finding local minima and maxima of a graph

2010-12-04 Thread Jerry J
On Dec 4, 2010, at 7:38 PM, Bryan McCormick wrote: > Peter, Jonathan > > I had thought to use a sin function on the time series to find peak and > trough values. I would filter the sin function results for those close to 1 > or -1, though I am not sure what the filter interval will be just yet.

Re: Finding local minima and maxima of a graph

2010-12-04 Thread Bryan McCormick
Peter, Jonathan I had thought to use a sin function on the time series to find peak and trough values. I would filter the sin function results for those close to 1 or -1, though I am not sure what the filter interval will be just yet. Then, I would be able to grab the value from the actual ti

Re: ANN: glx2 is now open source

2010-12-04 Thread -=>JB<=-
Thanks for the info. Good to know he is still developing tRev. -=>JB<=- On Dec 4, 2010, at 6:14 PM, Mark Wieder wrote: > -=>JB<=-- > > Saturday, December 4, 2010, 5:54:27 PM, you wrote: > >> That is very nice of Jerry to release it as open source. >> Since glx2 became tRev does this include

Re: ANN: glx2 is now open source

2010-12-04 Thread Mark Wieder
-=>JB<=-- Saturday, December 4, 2010, 5:54:27 PM, you wrote: > That is very nice of Jerry to release it as open source. > Since glx2 became tRev does this include tRev too > or is tRev still being developed? No, tRev is a different product. Releasing glx2 as an open source project allows Jerry t

Re: How to make a square topped, round rect bottomed graphic?

2010-12-04 Thread J. Landman Gay
On 12/4/10 6:03 PM, Roger Guay wrote: Heck, I could do it myself if I could figure out how to get the color of a pixel by location programmatically. There's a really ugly hack for that. It's fast though. put the screenMouseLoc into oldX,oldY set the screenMouseLoc to x,y get the mouseColor

Re: ANN: glx2 is now open source

2010-12-04 Thread -=>JB<=-
That is very nice of Jerry to release it as open source. Since glx2 became tRev does this include tRev too or is tRev still being developed? -= Jerry Daniels has graciously offered to release glx2 as an open-source > project. This is the main repository for the code. Glx2 is a script > editor for

ANN: glx2 is now open source

2010-12-04 Thread Mark Wieder
Jerry Daniels has graciously offered to release glx2 as an open-source project. This is the main repository for the code. Glx2 is a script editor for LiveCode/Runtime Revolution. We have removed any licensing restrictions on the script editor, so all the code is open and hackable. There's no instal

Re: How to make a square topped, round rect bottomed graphic?

2010-12-04 Thread Roger Guay
Bob Earp wrote: > Hey Roger, > Wasn't this the Trace tool in SC ? You were always impressed with > that ;-) > > Seeing it was in SC, I would have thought somebody that still has SC > and is a lot brighter than the two of us put together, could "extract" > and clone the appropriate script.

[ANN] buttons for iPhone new Version

2010-12-04 Thread BNig
Dear List, as seen on Livecode.tv :), new buttons for the iPhone. Thanks David, Björnke and Mark for the show. here are the links to the current version of the buttons for the iPhone stack. Please watch out for linebreaks enjoy the revlet (you can actually select a button or an image with t

Re: PDF ?

2010-12-04 Thread Mark Wieder
Klaus- Saturday, December 4, 2010, 12:24:02 PM, you wrote: > Gez! ...of course, you could just skip to the synopsis at the end... >> Some sentences can hurt a lot . . . :) -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list

Re: Unicode file names

2010-12-04 Thread J. Landman Gay
On 12/4/10 4:24 PM, Richard Gaskin wrote: Seems LC chokes on file paths containing Unicode. Is there a workaround for this? Not that I know of. There are a few QCC reports about it, and it will be fixed, but I don't see any workarounds. -- Jacqueline Landman Gay | jac...@hyperac

Re: Unicode file names

2010-12-04 Thread Mark Schonewille
Hi Richard, There is no workaround. This simply doesn't work. Let's hope that the unicode overhaul in 4.5 changes this. However, you can use AppleScript or VBScript and create a complete parallel file handling system. E.g. use AppleScript to read data from a file and then pass on the data to L

Unicode file names

2010-12-04 Thread Richard Gaskin
Seems LC chokes on file paths containing Unicode. Is there a workaround for this? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blo

Re: PDF ?

2010-12-04 Thread Alejandro Tejada
Hi Anthony, This stack contains code to export vector graphics only to pdf: http://andregarzia.on-rev.com/alejandro/stacks/export_vector_graphics_v04.zip Your best solution is to use Jan Schenkel's library to export pdf from this platform: Quartam PDF Library http://users.telenet.be/quartam/pdf4

Re: PDF ?

2010-12-04 Thread Richmond
On 12/04/2010 10:24 PM, Klaus on-rev wrote: Hi Richmond, On 12/04/2010 08:36 PM, Klaus on-rev wrote: Hi Richmond, On 12/04/2010 08:23 PM, Klaus on-rev wrote: Hi Mr. Tight-lipped, Do you really want me to return to my previous blabber-mouthed incarnation? Oh, NO! :-D But a complete se

Re: PDF ?

2010-12-04 Thread Klaus on-rev
Hi Richmond, > On 12/04/2010 08:36 PM, Klaus on-rev wrote: >> Hi Richmond, >> >>> On 12/04/2010 08:23 PM, Klaus on-rev wrote: Hi Mr. Tight-lipped, >>> Do you really want me to return to my previous blabber-mouthed incarnation? >> Oh, NO! :-D >> >> But a complete sentence wouldn't have h

Re: PDF ?

2010-12-04 Thread Anthony Howe
A related query...can we write to or edit an existing PDF file? Looking to automate a task like this in LC if poss? Don't spose there's a demo stack around? (I know, I know should make my own!) 10 points for grammatical verbiosity and rambunctious postulating in this thread so far! On

Re: PDF ?

2010-12-04 Thread Richmond
On 12/04/2010 08:36 PM, Klaus on-rev wrote: Hi Richmond, On 12/04/2010 08:23 PM, Klaus on-rev wrote: Hi Mr. Tight-lipped, Do you really want me to return to my previous blabber-mouthed incarnation? Oh, NO! :-D But a complete sentence wouldn't have hurt! ;-) Some sentences can, when one

Re: Finding local minima and maxima of a graph

2010-12-04 Thread Bryan McCormick
Jonathan, No, these are data files in .csv format. Column data with high and low values from the series. Unfortunately I have thousands of these to wade through, with this being an ongoing project. First task is to deal with the history. ___ use-li

Re: Finding local minima and maxima of a graph

2010-12-04 Thread jonathandlynch
Does the equation that generates the graph lend itself to finding its first derivative - or are you dealing with data points with no generating equation? Sent from my Verizon Wireless BlackBerry -Original Message- From: Bryan McCormick Sender: use-livecode-boun...@lists.runrev.com Date:

Re: How to make a square topped, round rect bottomed graphic?

2010-12-04 Thread J. Landman Gay
On 12/4/10 12:10 PM, Chipp Walters wrote: the original SuperPaint developers, including Jonathan Gay Whoa, there's another one? We're few enough that we keep track. Cool. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactiv

Re: Finding local minima and maxima of a graph

2010-12-04 Thread Bryan McCormick
Peter, Yes, I have thousands of .csv files to process. I have data that is ordered by column containing high and low values. On 12/4/2010 12:56 PM, Bryan McCormick wrote: I have a very large number of graphs to crunch through to find local minima and maxima. The data is regularly spaced, whic

Re: Finding local minima and maxima of a graph

2010-12-04 Thread Peter Brigham MD
Do you have access to the data the graphs are based on? Or are you talking about trying to analyze the shape of a curve (bitmapped or otherwise)? The two problems will have quite different approaches. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Dec 4, 2010

Re: PDF ?

2010-12-04 Thread Klaus on-rev
Hi Richmond, > On 12/04/2010 08:23 PM, Klaus on-rev wrote: >> Hi Mr. Tight-lipped, > Do you really want me to return to my previous blabber-mouthed incarnation? Oh, NO! :-D But a complete sentence wouldn't have hurt! ;-) Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.

Re: PDF ?

2010-12-04 Thread Richmond
On 12/04/2010 08:23 PM, Klaus on-rev wrote: Hi Mr. Tight-lipped, Do you really want me to return to my previous blabber-mouthed incarnation? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe an

Re: PDF ?

2010-12-04 Thread Klaus on-rev
Hi Mr. Tight-lipped, Am 04.12.2010 um 19:16 schrieb Richmond: > Erm? Yes? > Importing PDF files? OS X = player object Else = inside of browser object(s), most users have Acrobat Reader installed > Maybe expecting a bit much? As always :-D Best Klaus -- Klaus Major http://www.major-k.de kl

PDF ?

2010-12-04 Thread Richmond
Erm? Importing PDF files? Maybe expecting a bit much? ___ 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-li

How to make a square topped, round rect bottomed graphic?

2010-12-04 Thread Chipp Walters
I remenber PP quite well- and also used it like you describe. Although, for some reason, I thought PP was written mostly in SC, and that's why it was so slow. Whatever happened to Christopher Watson? Also, another bit of nostalgic trivia going on around the same time: After Charlie Jackson sold S

RE: show package contents

2010-12-04 Thread Mark Smith
Hi Jacqueline, fooling around with this has certainly been instructive. I have 3 versions in play 1. the first has a hard coded path in the mainstack and that one obviously works from anywhere to call the "one working copy" (currently Notepad4). 2. the second uses your suggested getStackPath fun

[ANN] Live LiveCode code event nr. two starting soon

2010-12-04 Thread Björnke von Gierke
Hi This is a reminder that the show will start in about an hour. We had terrible technical issues to get multiple hosts onto the same stream, therefore we will simply do 3 different streams, one after another. For people wanting to watch, that means that the first half hour will be Davids stre

Finding local minima and maxima of a graph

2010-12-04 Thread Bryan McCormick
I have a very large number of graphs to crunch through to find local minima and maxima. The data is regularly spaced, which eliminated one problem. I know too that the window value used has to be an adjustable variable as peak and trough significance may need to be found for a wide range of tim

Re: Cursors in a Revlet

2010-12-04 Thread Richard Gaskin
John Dixon wrote: > You are not missing anything... the cursors are not included in > the revlet when you compile it for the web, so they are not > there to show... Do revlets support custom cursors in the browser if you copy the cursor images to your stack? -- Richard Gaskin Fourth World

Re: show package contents

2010-12-04 Thread J. Landman Gay
On 12/3/10 10:37 PM, Mark Smith wrote: Thanks Jacqueline.You are a terrific teacher. It not only worked but I understand it. It is a very clever technique. I am still using the old 'hard coded' method (as well) because it has the advantage that while I *use* the stack, and modify it, the notes g

Re: Cursors in a Revlet

2010-12-04 Thread Rick Rice
Peter: Thanks, I'll make the changes. Rick On 4-Dec-10, at 6:59 AM, Peter Brigham MD wrote: FYI, though I know little about revlets, if you are setting cursors on a stack running on the desktop (in the IDE or as a standalone), it will work much better to set the defaultCursor. I used

Re: Cursors in a Revlet

2010-12-04 Thread Rick Rice
John: That explains why it doesn't work, .. nuts. Thanks for the info. Rick On 3-Dec-10, at 3:05 PM, John Dixon wrote: Rick... You are not missing anything... the cursors are not included in the revlet when you compile it for the web, so they are not there to show

Re: How to make a square topped, round rect bottomed graphic?

2010-12-04 Thread Richard Gaskin
Bob Earp wrote: Wasn't this the Trace tool in SC ? You were always impressed with that ;-) Seeing it was in SC, I would have thought somebody that still has SC and is a lot brighter than the two of us put together, could "extract" and clone the appropriate script. If memory serves that was i

Re: How to make a square topped, round rect bottomed graphic?

2010-12-04 Thread Bob Earp
Hey Roger, Wasn't this the Trace tool in SC ? You were always impressed with that ;-) Seeing it was in SC, I would have thought somebody that still has SC and is a lot brighter than the two of us put together, could "extract" and clone the appropriate script. BTW, what's all of this "Ho

Re: Cursors in a Revlet

2010-12-04 Thread Peter Brigham MD
FYI, though I know little about revlets, if you are setting cursors on a stack running on the desktop (in the IDE or as a standalone), it will work much better to set the defaultCursor. I used to lock the cursor and set it to something but ran into intermittent problems with it not unlockin