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

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

[Octave-bug-tracker] [bug #54567] median(uint8) gives bad results


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #54567] median(uint8) gives bad results
Date: Tue, 28 Feb 2023 15:35:53 -0500 (EST)

Update of bug #54567 (project octave):

                  Status:         Patch Submitted => In Progress            
         Planned Release:                    None => 9.1.0 (current default)
              Depends on:                         => patch #10314           

    _______________________________________________________

Follow-up Comment #17:

The statistics package has released a new version 1.5.4 with mean and median
that are both matlab compatible and include fixes for this bug. plan is to
patch them back into core shortly over at patch #10314. that fix borrowed
tests from rik's patch and Dan's one-line logical array method to do the int
sum for either same or different signed int values for median.  For mean it
addresses both overflow and loss of accuracy from processing large (u)int64
values as doubles using a separate codepath for those.  

Assuming there aren't problems with that implementation, it'll solve this bug
once it pushes to core. Setting this as dependent and will mark this as
complete once it does.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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