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 
Return to the default flat view Create a new topic Submit Reply
Re: Histogram [message #72827 is a reply to message #44556] Mon, 11 October 2010 06:51 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
silje writes:

> 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?

Because your numbers are falling on the Razor's Edge:

http://www.dfanning.com/math_tips/razoredge.html

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: convolution of vsini
Next Topic: Reading CDF files on a Mac

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

Current Time: Sat Oct 11 09:09:00 PDT 2025

Total time taken to generate the page: 1.12167 seconds