[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #7439] statistics/base/skewness.m
From: |
Pascal Dupuis |
Subject: |
[Octave-patch-tracker] [patch #7439] statistics/base/skewness.m |
Date: |
Mon, 17 Jan 2011 20:34:47 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.13) Gecko/20110103 Fedora/3.6.13-1.fc14 Firefox/3.6.13 |
URL:
<http://savannah.gnu.org/patch/?7439>
Summary: statistics/base/skewness.m
Project: GNU Octave
Submitted by: cdemills
Submitted on: lun 17 jan 2011 20:34:46 GMT
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
This version initialize the outputs corresponding to inputs whose std is 0
as
ind = (s > 0);
retval = zeros(sz, class(x));
But this fails for a user-defined class, exept is the zero function is
overloaded too. But for a dataframe, this doens't make sense, as all the
meta-info would not be transmitted. OTOH, by properly overloading functions
like 'sum', this meta-inf is kept during the processing. I enclose a patch
where, if the input is an object, data which should be nulled are set from
standard assignment. This is less efficient, but permits to keep the
meta-inf.
Regards
Pascal
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: lun 17 jan 2011 20:34:46 GMT Name: skewness.pat Size: 660 o By:
cdemills
<http://savannah.gnu.org/patch/download.php?file_id=22430>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?7439>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
- [Octave-patch-tracker] [patch #7439] statistics/base/skewness.m,
Pascal Dupuis <=