[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54279] gmdistribution.fit error when using op
From: |
Richard Lane |
Subject: |
[Octave-bug-tracker] [bug #54279] gmdistribution.fit error when using optional arguments |
Date: |
Tue, 10 Jul 2018 06:02:54 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
URL:
<http://savannah.gnu.org/bugs/?54279>
Summary: gmdistribution.fit error when using optional
arguments
Project: GNU Octave
Submitted by: richardlane
Submitted on: Tue 10 Jul 2018 10:02:52 AM UTC
Category: Libraries
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.0
Operating System: GNU/Linux
_______________________________________________________
Details:
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{:})
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54279>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54279] gmdistribution.fit error when using optional arguments,
Richard Lane <=