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

Home » Public Forums » archive » Re: histogram produces extra bin in 64-bit IDL 8.0
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 produces extra bin in 64-bit IDL 8.0 [message #76026 is a reply to message #76025] Fri, 13 May 2011 07:13 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On May 13, 11:08 am, David Fanning <n...@idlcoyote.com> wrote:
> Eric Tittley writes:
>> Consider the following code:
>> IDL> D=randomu(32,3200);                                  
>> IDL> N=histogram(D,min=0.,max=1.,binsize=0.1,Locations=X)
>
>> In IDL 32-bit:
>> IDL> print, size(N)
>>            1          10           3          10
>> IDL> print, X
>>  0.0 0.1 0.2 0.3 0.4 0.5 0.6  0.7 0.8 0.9
>> IDL> print, !version                                      
>> { x86 linux unix linux 8.0 Jun 18 2010      32      64}
>
>> In 64-bit IDL:
>> IDL> print, size(N)                                      
>>            1          11           3          11
>> IDL> print, X
>>  0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
>> IDL> print, !version                                      
>> { x86_64 linux unix linux 8.0 Jun 18 2010      64      64}
>
>> As you can see, the 64-bit version produces an extra erroneous bin, contrary to the what is expected from the help pages for histogram.
>
> Undoubtedly a consequence of the razor's edge:
>
>   http://www.idlcoyote.com/math_tips/razoredge.html

That is what I was thinking, considering both results to be normal and
expected. But I was wondering what changed between versions.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 7.1 to 8.1, workspace migration
Next Topic: histogram produces extra bin in 64-bit IDL 8.0

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

Current Time: Sat Oct 11 06:29:54 PDT 2025

Total time taken to generate the page: 1.28194 seconds