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

Home » Public Forums » archive » Re: Histogram: Normalised Occurrence Frequency
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: Normalised Occurrence Frequency [message #59009] Thu, 28 February 2008 07:50 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
hazel wrote:
> Hi All,
>
> I want to plot a histogram where the number of samples in each bin are
> normalised by the total number of samples across all bins.
>
> Currently I use David's 'HISTOPLOT' and the REVERSE_INDICIES keyword
> to get the indicies in each bin. Then Jaco's HISTOBIN to count these
> for each bin.
n_elements(your_input) is the total number of samples (unless you have
NANs as missing elements, in that case you may have to use the finite
function to find out
the number of non-NANs)

Paolo
>
> Then I normalise the bin totals and have to plot number of bins vs.
> normalised values using Plot and Psym=10.
>
> Is there an easier way to do this? Also how would I use HISTOPLOT to
> replot this normalised hist as I can't seem to get it to work.
>
> Thanks,
>
>
> Hazel
[Message index]
 
Read Message
Read Message
Previous Topic: Histogram: Normalised Occurrence Frequency
Next Topic: Regarding the Fit_Ellipse Program

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

Current Time: Fri Oct 10 00:02:00 PDT 2025

Total time taken to generate the page: 1.04453 seconds