[coll] nearest index match?

Mar 15, 2011 at 8:01pm

[coll] nearest index match?

Hello folks!

I am interested in finding data with the nearest index match (lower) than my query. I notice that coll returns the first record if the number does not match any currently held.

If I have to, I will come up with a loop that decrements the query number until it no longer returns a dummy first record. This approach will work, but will be very slow as the size of the coll grows.

Maybe coll is not the right tool for what I am trying to do, any suggestions?
Thanks!

MH

#55579
Mar 15, 2011 at 9:04pm

Perhaps maintain a funbuff in parallel to the coll?

– Pasted Max Patch, click to expand. –
#199921
Mar 16, 2011 at 12:40am

I had no idea how fun it can be, no wonder they called it that! Now all we need is funcoll.

Thanks much.
MH

#199922

You must be logged in to reply to this topic.