octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45518] randsample not implemented (implementa


From: Richard Lane
Subject: [Octave-bug-tracker] [bug #45518] randsample not implemented (implementation supplied)
Date: Thu, 28 Jun 2018 11:13:23 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #5, bug #45518 (project octave):

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

This causes gmdistribution.random to fail if obj.NumVariables ~=
obj.NumComponents.

Reproduce the error:
x = rand(100,2);
gmm = fitgmdist(x,5);
gmm.random(1)

Solution:
line 233: obj.NumVariables should be obj.NumComponents

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45518>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]