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

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

[Octave-bug-tracker] [bug #45455] quantile returns sorted vector when ca


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #45455] quantile returns sorted vector when called on singleton dimension
Date: Wed, 01 Jul 2015 13:05:38 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?45455>

                 Summary: quantile  returns sorted vector when called on
singleton dimension
                 Project: GNU Octave
            Submitted by: lachlan
            Submitted on: Wed 01 Jul 2015 01:05:36 PM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Lachlan
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I get

octave:1> quantile ([1 3 2], 0.5, 1)
ans =

   1   2   3

instead of
octave:1> quantile ([1 3 2], 0.5, 1)
ans =

   1   3   2

The attached patch fixes this.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 01 Jul 2015 01:05:36 PM GMT  Name: quantile_sort_patch.txt  Size:
336B   By: lachlan

<http://savannah.gnu.org/bugs/download.php?file_id=34354>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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