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

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

[Octave-bug-tracker] [bug #60482] hist() misses error for non-numeric in


From: Rik
Subject: [Octave-bug-tracker] [bug #60482] hist() misses error for non-numeric input
Date: Mon, 3 May 2021 12:39:37 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Safari/537.36

Follow-up Comment #10, bug #60482 (project octave):

Second question depends on the first to some extent.  If we accept "char" data
it would also seem consistent that we accept "char" bin centers.

However, if we do that I think the input validation becomes very hard.  If I
use 'N' for numeric and 'C' for char then these two calling forms are fairly
indistinguishable.


hist (Y, X, NORM)
      N, C, N

hist (Y, PROPERTY, VALUE)
      N, C       , N


On the other hand, if bin centers can only be numeric then the first form is
NNN and can be distinguished from the second.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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