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

Home » Public Forums » archive » Histogram
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Histogram [message #72828] Mon, 11 October 2010 06:39
silje is currently offline  silje
Messages: 4
Registered: October 2010
Junior Member
Hey!
I'm trying to get a grip of the Histogram function in IDL, but have
run into a problem that I don't understand. As you can see from the
code below I have created an array with six differend elements,but
when I call HISTOGRAM with a binsize equal to 0.1 then it seems like
1.2 and 1.3 is put in the same bin. Why is this?


IDL> arr = [1.1,1.2,1.3,1.4,1.5,1.6]
IDL> print, HISTOGRAM(FLOAT(arr), binsize=0.1)
1 2 1 1 1


Thanks!
Best regards Silje
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Set path of terminal tools, e.g. ImageMagick, in Workbench
Next Topic: Configuration of the new Graphics window

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

Current Time: Wed Oct 08 13:39:26 PDT 2025

Total time taken to generate the page: 0.00539 seconds