help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in empirical_pdf?


From: Luke15153
Subject: Re: Bug in empirical_pdf?
Date: Wed, 19 Jun 2013 07:25:26 -0700 (PDT)

Hello Juan Pablo,

thanks for your reply.

The bug should be located in discrete_pdf, which is used by empirical_pdf. I
submitted a bug to the Octave bugtracker (
http://savannah.gnu.org/bugs/?39280 <http://savannah.gnu.org/bugs/?39280>  )

This workaround works for me:

pdf = histc(data, uniqe(data));
pdf = pdf/length(data);

histc just counts the occurances and thus has to be normalized (
/length(data)).

Regards,

Lutz



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Bug-in-empirical-pdf-tp4654443p4654479.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]