[Top][All Lists]

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

[Octave-bug-tracker] [bug #53199] hist returns different results dependi

From: Rik
Subject: [Octave-bug-tracker] [bug #53199] hist returns different results depending on 2nd 1:n/n input argument
Date: Thu, 22 Feb 2018 01:34:35 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Update of bug #53199 (project octave):

                  Status:            Works For Me => Confirmed              


Follow-up Comment #6:

This is due to round-off error.  If I subtract the bin centers generated by
Matlab from those generated by Octave the difference is usually 0. 
Occasionally, however, there are differences on the order of a few eps.  In
the worst case, there is a difference of 8 eps or 1.8e-15.  It's pretty small,
but that is the cause of the problem.

I think there must be a better way within hist to calculate the bin centers
without getting so much round-off error.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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