patchGNU Octave - Patches: patch #7439, statistics/base/skewness.m

 
 

patch #7439: statistics/base/skewness.m

Submitter:  Pascal Dupuis <cdemills>
Submitted:  Mon 17 Jan 2011 08:34:46 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Bug Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 17 Jan 2011 10:12:57 PM UTC, comment #1: 

I'd like to keep the patch tracker for patches which add new
features. If you have a patch to submit that fixes a bug, it
would be better to use the bug tracker.

When you submit this to the bug tracker, please be sure to submit
enough information along with the patch for someone else to
understand the nature of the bug.  We are unlikely to apply a
patch without understanding the problem it is intended to fix.

John W. Eaton <jwe>
Group administrator
Mon 17 Jan 2011 08:34:46 PM UTC, original submission:  

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

Pascal Dupuis <cdemills>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by cdemills (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-17 jwe StatusNone Bug
        Open/ClosedOpen Closed
    2011-01-17 cdemills Attached File- Added skewness.pat, #22430

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code