comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Speed-up of code
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Speed-up of code [message #67856 is a reply to message #67848] Tue, 25 August 2009 09:18 Go to previous messageGo to previous message
philipelson is currently offline  philipelson
Messages: 9
Registered: March 2009
Junior Member
> Those are the techniques I would have tried! Be careful: in your
> second example, you don't handle the case where the histogram bin h[i]
> is empty. You just need an "if h[i] GT 0" test there.

Wayne,

To fix the note you have added in your code

> print,vec8/h ;May need to check for zero values first

I added the line:

print,vec8/(h>1)

Which does the trick nicely.

Regards,

Philip
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Histogram Too Many Array Elements
Next Topic: Re: Digits in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 01:46:18 PDT 2025

Total time taken to generate the page: 0.39212 seconds