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

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

[Octave-bug-tracker] [bug #60492] [octave forge] (signal) error in clust


From: Juan Pablo Carbajal
Subject: [Octave-bug-tracker] [bug #60492] [octave forge] (signal) error in clustersegment with input not strictly 0s and 1s
Date: Wed, 16 Jun 2021 18:42:37 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0

Follow-up Comment #2, bug #60492 (project octave):

If I understood correctly the desire is that the function works even if the
input data is not just 1s and 0s.

What is then the natural (low surprise) way to convert the input data to
logical? 

Doing 'logical(x)' implicitly assumes all non-zero values are 1, but for float
numbers we have numerical issues.

What about making the function more strict and failing if the contents is not
just 0s and 1s and provide a good message for it?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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