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

 
 

bug #36597: prctile crash when P ommitted

Submitted by:  None
Submitted on:  Tue 05 Jun 2012 10:32:19 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.1
Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 05 Jun 2012 11:22:12 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1