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

Home » Public Forums » archive » HISTOGRAM, binsize, and max
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, binsize, and max [message #76111] Wed, 18 May 2011 07:05
war is currently offline  war
Messages: 21
Registered: December 2003
Junior Member
Hi,

Can somebody explain why the following gives different number of
elements with the HISTOGRAM function?

IDL> hist_spd= HISTOGRAM(velocity[indb],binsize= .20,min=0.,max=1.40)
IDL> print,hist_spd
6 16 23 0 0
0 0
IDL> hist_spd= HISTOGRAM(velocity[indb],binsize= 20.,min=0.,max=140.)
IDL> print,hist_spd
45 0 0 0 0
0 0 0

(whatever velocity content is)
My main concern is the number of elements returned by the function.
The only difference between the 2 command is that I multiplied the
binsize and max with 100. BUT they return 7 and 8 elements?

I would expect they both return the same number of elements.

Thanks,

Andry
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL fitting of piecewise continuous function
Next Topic: IDL 7.1 to 8.1, workspace migration

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

Current Time: Wed Oct 08 15:22:19 PDT 2025

Total time taken to generate the page: 0.00483 seconds