bugGNU Octave - Bugs: bug #56465, [nn, xx] = hist (double, single...

 
 

bug #56465: [nn, xx] = hist (double, single (N)) returns xx of class single instead of double

Submitter:  Rik <rik5>
Submitted:  Sun 09 Jun 2019 12:38:54 AM UTC
   
 
Category:  Octave Function Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 09 Jun 2019 01:13:14 AM UTC, comment #1: 
Rik <rik5>
Group administrator
Sun 09 Jun 2019 12:38:54 AM UTC, original submission:  

For Matlab compatibility, when the second input to hist (# of bins) is a scalar, then the class of xx follows the class of the input y (single or double).  For example,


[nn, xx] = hist (double (1:10), single ([7]));
class (xx) => 'double'
[nn, xx] = hist (single (1:10), double ([7]));
class (xx) => 'single'


However, when the second input is an actual vector specifying bins then the class of xx is always the class of the second input.

Rik <rik5>
Group administrator

 

(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 (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
    2019-06-09 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code