Open GoogleCodeExporter opened 8 years ago
Hello, i have the same problem.
It could be that the problem comes from rounding inaccuracy. Covariances matrix
could
end up in very low values (like 0,000000....1) which will be rounded to zero by
your
computer and throws this exception.
from the collected vectors it is not directly possible to gain information
about in
which matrix those values will end up...!? i'm not sure about it, but this is
the
only way i could find to get around this problem. How about removing
if ((d = m[j][j] - d) <= 0.)
throw new IllegalArgumentException("Matrix is not positive defined");
from "SimpleMatrix.java:256"? I know, this check is done for a later
formular... but
collected vector should not end up in values <=0 anyways...?
(i have not checked it in my example yet, this is only an idea so far!)
Original comment by vamos.be...@gmail.com
on 27 May 2010 at 10:30
edit: watch out: there is an initialization in the if clause! You still need
"d = m[j][j] - d;" there...
Original comment by vamos.be...@gmail.com
on 27 May 2010 at 10:35
Is Comment 1 the only solution? Is there a better way to get around this error?
Original comment by zephyre...@gmail.com
on 17 Jul 2012 at 10:32
Has anyone a working fix for the "Matrix not positive defined" error?!
Original comment by dallas0...@gmail.com
on 5 Feb 2013 at 3:17
I regularized the covariance matrix (given as an argument to
OpdfMultiGaussian). Worked out in my case!
Original comment by jensen....@gmail.com
on 9 Aug 2013 at 1:44
[deleted comment]
Hello,
does anybody have a fix for that?
if so please reply here.
Thank you.
Original comment by chris.mi...@gmail.com
on 12 Aug 2014 at 5:25
Original issue reported on code.google.com by
alvaroka...@gmail.com
on 12 Aug 2009 at 9:45