bugGNU Octave - Bugs: bug #32394, mean doesn't work with booleans

 
 

bug #32394: mean doesn't work with booleans

Submitter:  Michael Creel <mcreel>
Submitted:  Wed 09 Feb 2011 09:36:32 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Michael Creel Open/Closed:  * Closed
Release:  * 3.4.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 10 Feb 2011 09:30:18 PM UTC, comment #1: 

I checked in the following changeset for the default and release-3-4-x branches:

http://hg.savannah.gnu.org/hgweb/octave/rev/0f21f258aa17

John W. Eaton <jwe>
Group administrator
Wed 09 Feb 2011 09:36:32 AM UTC, original submission:  

On 3.4.0, mean(a) gives an error message if a is a vector of booleans. This used to work with 3.2.4.


octave:1> a = rand(10,1) > 0.5;
octave:2> mean(a)
error: mean: X must be a numeric vector or matrix
error: called from:
error:   /home/michael/Desktop/octave-3.4.0/scripts/statistics/base/mean.m at line 69, column 5
octave:2> sum(a)
ans =  5
octave:3>

Michael Creel <mcreel>

 

(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 jwe (Posted a comment)
  • -email is unavailable- added by mcreel (Submitted the item)
  • -email is unavailable- added by mcreel
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-02-10 jwe StatusNone Fixed
        Open/ClosedOpen Closed
    2011-02-09 mcreel Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code