octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #65714] "hist" throws error when input numbers


From: Hartmut
Subject: [Octave-bug-tracker] [bug #65714] "hist" throws error when input numbers are very close
Date: Fri, 10 May 2024 03:24:24 -0400 (EDT)

Follow-up Comment #5, bug #65714 (group octave):

I have just succesfully tested Nicholas' patch from comment #4:

* My original "bug code" (comment #0) does not throw an error any more.
* All tests in hist.m pass (also the 2 new tests from the patch).

I can also follow Nicholas' reasoning for this solution: Since, for small
differences between data points, we cannot perfectly mimic Matlab's behavior
(and Matlab's behavior is not beautiful in this case either), the best we can
do is to not error out and to present some useful histogram figure to the user
of our hist.m. Both is now done with this patch.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65714>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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