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

Home » Public Forums » archive » Re: Match Histogram Binsize with Data Type
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: Match Histogram Binsize with Data Type [message #83456 is a reply to message #83445] Tue, 05 March 2013 10:58 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Fabien writes:

> Regardless of the probably wrong things that have been published and
> will be published in the future, I don't see the point of using a .5
> binsize with integer data, and I don't think the behaviour of histogram
> is defined in this case.

Well, the 22.5 represents the 16 directions around a compass where I
wish to draw something (360/16=22.5). The number 22 just ain't gonna get
it done in this case. :-)

Plus, I didn't *know* the data was integer type. It was a variable that
came from somewhere else.

I'm saying, you have to do a hell of a lot of checking to get things
right. I know, because I do the checking in cgHistoplot. In fact, I've
written code to do the job (Convert_To_Type, for example).

It seems to me Histogram ought to do a little bit of checking on its own
if it is going to be so damn obstinate about returning incorrect values,
just because you didn't read the small print and know what the rules
were.

Histogram is great. It just isn't user friendly. And, for such an
important routine in IDL, it ought to be.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: From tvscale to cgImage, puzzling feature in the plot
Next Topic: Majority Filter

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

Current Time: Fri Oct 10 08:56:28 PDT 2025

Total time taken to generate the page: 0.00622 seconds