[bug #32168] [octave forge] (dataframe) skewness, kurtosis not properly handling data with stdev=0

Vasyl Vavrychuk <[email protected]> Fri, 12 Jun 2026 12:09:24 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

Follow-up Comment #13, bug #32168 (group octave):

testing on octave 11.1.0 with dataframe 1.2.0:

octave:2> pkg load dataframe
octave:3> x = dataframe(rand(5,1))
warning: genvarname is obsolete; use matlab.lang.makeValidName or
matlab.lang.makeUniqueStrings instead
x = dataframe with 5 rows and 1 columns
_1        X
Nr   double
 1 0.703077
 2 0.122404
 3 0.910425
 4 0.226781
 5 0.032951
octave:4>
octave:4> skewness (x.data)
ans = 0.4215
octave:5> skewness (x)
error: invalid conversion from class to double
error: called from
    mean at line 557 column 7
    center at line 114 column 3


Is this expecte?


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Повідомлення надіслано через Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaiwvNAAKCRCqLAuaBUf3
TqVyAP9Je8SXzTyLFXauRaTqm4XSlogRGDKDflNluCYMekQrKQD/Upqv3K4ZLEm/
fk4mK95qZpJ8Xxt7018sZEkKFpFRaAE=
=9g7A
-----END PGP SIGNATURE-----