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 #83445 is a reply to message #83444] Tue, 05 March 2013 21:32 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On 3/5/13 12:58 PM, David Fanning wrote:
> 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

This might make me unpopular, but I think it's doing exactly what it's
supposed to be doing in this case. The Sky Is Falling, etc.

-Jeremy.
[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: Wed Oct 08 18:13:53 PDT 2025

Total time taken to generate the page: 0.00446 seconds