[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64555] corr produces input validation error w
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #64555] corr produces input validation error with two inputs having different number of columns |
Date: |
Wed, 16 Aug 2023 09:28:59 -0400 (EDT) |
Follow-up Comment #3, bug #64555 (project octave):
ok, the input check in corr is wrong. a size check was put in mainly to catch
mixed row/column vector inputs which should error in corr but won't in cov.
it should be a row count comparison (which will also catch the mixed vector
orientation)
however, just changing the input check to:
if (rows (x) != rows (y))
error ("corr: X and Y must have the same number of rows");
endif
the same inputs now produce a cov error:
>> cov(rand(13,4),rand(13,1))
error: cov: X and Y must have the same number of observations
error: called from
cov at line 191 column 9
that cov behavior _is_ matlab compatible. so will need to figure out how to
modify corr to pass something with unequal column count to cov and extract the
right results.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64555>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #64555] stepwisefit from statistics package version 1.6.0 is not working any longer with changed corr function, anonymous, 2023/08/15
- Message not available
- [Octave-bug-tracker] [bug #64555] stepwisefit from statistics package version 1.6.0 is not working any longer with changed corr function, anonymous, 2023/08/15
- Message not available
- [Octave-bug-tracker] [bug #64555] corr produces input validation error with two inputs having different number of columns, Nicholas Jankowski, 2023/08/16
- [Octave-bug-tracker] [bug #64555] corr produces input validation error with two inputs having different number of columns,
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #64555] corr produces input validation error with two inputs having different number of columns, Nicholas Jankowski, 2023/08/16
- [Octave-bug-tracker] [bug #64555] corr produces input validation error with two inputs having different number of columns, Nicholas Jankowski, 2023/08/16
- [Octave-bug-tracker] [bug #64555] corr produces input validation error with two inputs having different number of columns, Nicholas Jankowski, 2023/08/17
- [Octave-bug-tracker] [bug #64555] corr produces input validation error with two inputs having different number of columns, Dmitri A. Sergatskov, 2023/08/17
- [Octave-bug-tracker] [bug #64555] corr produces input validation error with two inputs having different number of columns, Nicholas Jankowski, 2023/08/17