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: Rik
Subject: [Octave-bug-tracker] [bug #54567] median(uint8) gives bad results
Date: Sat, 25 Aug 2018 14:03:16 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Follow-up Comment #8, bug #54567 (project octave):

Even though it makes for clear code to call mean(), we should not do it.  This
is the mean of only two numbers and the overhead involved in calling an Octave
function is significant.  For core Octave we do prioritize speed and
efficiency to some degree over readability of code.  So the calculation should
be be done in median.m, and probably needs an exception case for (u)int64
values.  I can review any amended changeset.

    _______________________________________________________

Reply to this item at:

  <http://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]