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

 
 

bug #32394: mean doesn't work with booleans

Submitted by:  Michael Creel <mcreel>
Submitted on:  Wed 09 Feb 2011 09:36:32 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Michael CreelOpen/Closed: Closed
Release: 3.4.0Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

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

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 10 Feb 2011 09:30:18 PM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 09 Feb 2011 09:36:32 AM UTCmcreelCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1