Algorithm time...

Glen Bojsza gbojsza at gmail.com
Sun Dec 9 15:37:49 EST 2012


Hi Dick

My mistake... my solution was actually just putting in the correct line
numbers and NOT the item value for the associated line.

So the solution I indicated does NOT work.

I still need the original item 1 value of the associated max and min lines.

I quickly tried to pull the item 1 value by modifying the routine asking
for the item value by

line (tIndex[ tMin ] +x) of plines

where necessary and this shot the time up to 5 seconds for the 500,000 data
points.

So there must be a better way to get the item 1 value and still stay in the
millisecond range...or not?




On Sun, Dec 9, 2012 at 2:37 PM, Dick Kriesel <dick.kriesel at mail.com> wrote:

>
> On Dec 9, 2012, at 3:17 AM, Glen Bojsza wrote:
>
> > In other words the two values found in column 2 of the group data must
> then
> > get the corresponding column1 values from the original dataset.
>
>
> Hi, Glen.  You'll get that if you remove the line "put 0 into tLineNumber"
> near the end of the repeat loop.
>
> Yes, variable "pLines" holds your original dataset.
>
> -- Dick
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list