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

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

[Octave-bug-tracker] [bug #32168] [octave forge] (dataframe) support for


From: Julien Bect
Subject: [Octave-bug-tracker] [bug #32168] [octave forge] (dataframe) support for skewness, kurtosis
Date: Tue, 29 May 2018 09:08:19 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #9, bug #32168 (project octave):

Just tested with Octave 4.4 and dataframe 1.2.0:

```
>> pkg load dataframe

>> x = dataframe (rand (5, 1))
x = dataframe with 5 rows and 1 columns
_1        X
Nr   double
 1 0.471887
 2 0.431165
 3 0.268632
 4 0.573827
 5 0.031409

>> skewness (x.data)
ans = -0.65315

>> skewness (x)
ans = dataframe with 1 rows and 1 columns
_1        X
Nr   double
 1 -0.65315

>> kurtosis (x.data)
ans =  2.1050

>> kurtosis (x)
ans = dataframe with 1 rows and 1 columns
_1      X
Nr double
 1 2.1050
```

So, the problem with "zeros: invalid data type specified"  seems to be gone
;-)

The case of zero std is still not handled properly, however:

```
>> x = dataframe (zeros (5, 1))
x = dataframe with 5 rows and 1 columns
_1      X
Nr double
 1      0
 2      0
 3      0
 4      0
 5      0

>> skewness (x.data)
ans =  NaN

>> skewness (x)
error: x(1): out of bound 0
error: called from
    df_mapper>@<anonymous> at line 28 column 30
    df_mapper at line 28 column 15
    power at line 22 column 8
    skewness at line 120 column 10

>> kurtosis (x.data)
ans =  NaN

>> kurtosis (x)
error: x(1): out of bound 0
error: called from
    df_mapper>@<anonymous> at line 28 column 30
    df_mapper at line 28 column 15
    power at line 22 column 8
    kurtosis at line 123 column 10
```

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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