bugGNU Octave - Bugs: bug #54279, [octave forge] (statistics)...

 
 

bug #54279: [octave forge] (statistics) gmdistribution.fit error when using optional arguments

Submitter:  Richard Lane <richardlane>
Submitted:  Tue 10 Jul 2018 10:02:52 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  lostbard
Originator Name:  Open/Closed:  * Closed
Release:  * 4.4.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 11 Jul 2018 05:01:13 PM UTC, comment #2: 

Closing as fixed

John Donoghue <lostbard>
Group Member
Tue 10 Jul 2018 01:19:03 PM UTC, comment #1: 

Thanks for the bug report and solution!

Change made in repo:

https://sourceforge.net/p/octave/statistics/ci/6c8f2dcb6f5f71f9b2ce5b72200da408cfa99709/


so it will appear in the next release of the package

John Donoghue <lostbard>
Group Member
Tue 10 Jul 2018 10:02:52 AM UTC, original submission:  

There is a bug on line 265 of gmdistribution.m in statistics-1.4.0, octave-4.4.0.

An error "Invalid call to fitgmdist" is produced when using optional arguments to gmdistribution.fit that isn't produced when calling fitgmdist directly.

Reproduce the error:

x = rand(100,2);
gmm1 = fitgmdist(x,5,'Regularize',0.01); % no error
gmm2 = gmdistribution.fit(x,5,'Regularize',0.01) % error


The solution is to change line 265 from:

c = fitgmdist (X,k,varargin)

to:

c = fitgmdist (X,k,varargin{:})


Richard Lane <richardlane>

 

(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 mtmiller (Updated the item)
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by richardlane (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-07-11 lostbard StatusNone Fixed
        Open/ClosedOpen Closed
    2018-07-10 mtmiller Summarygmdistribution.fit error when using optional arguments [octave forge] (statistics) gmdistribution.fit error when using optional arguments
    2018-07-10 lostbard Assigned toNone lostbard
    2018-07-10 rik5 CategoryLibraries Octave Package

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code