bugGNU Octave - Bugs: bug #36597, prctile crash when P ommitted

 
 

bug #36597: prctile crash when P ommitted

Submitter:  None
Submitted:  Tue 05 Jun 2012 10:32:19 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.1
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 05 Jun 2012 11:22:12 PM UTC, comment #1: 

Thanks for noticing this.  I applied a patch to the stable branch of Octave here (http://hg.savannah.gnu.org/hgweb/octave/rev/c50cc3c50890).  The fix will be available in version 3.6.3, if there is one, or in 3.8.0.  If you need an immediate fix you can build from development sources.

Rik <rik5>
Group administrator
Tue 05 Jun 2012 10:32:19 PM UTC, original submission:  

According to the help page for prctile(X, P):

Function File: Q = prctile (X)
Function File: Q = prctile (X, P)
If P is unspecified, return the quantiles for `[0 25 50 75 100]'.

But that doesn't seem to be the case:

octave:47> prctile([1:10]')
error: `dim' undefined near line 71 column 21
error: evaluating argument list element number 1
error: called from:
error:   C:\Octave\Octave3.6.1_gcc4.6.2\share\octave\3.6.1\m\statistics\base\prctile.m at line 71, column 5


prctile([1:10]', []) does seem to work, as it returns the stated percentiles.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (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 group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-06-05 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code