commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Becksfort, Jared" <Jared.Becksf...@STJUDE.ORG>
Subject RE: [Math] Random tests sometimes fail (r1363105)
Date Mon, 23 Jul 2012 01:19:04 GMT
That is a good idea.  I will add that to the multivariate normal distribution unit tests that
I recently sent.
From: Gilles Sadowski []
Sent: Sunday, July 22, 2012 5:44 PM
Subject: [Math] Random tests sometimes fail (r1363105)

Hi Thomas.

I've encountered a failure of one the tests which you introduced in
revision 1363105.  Here is an excerpt of the error:
Time elapsed: 0.044 sec  <<< FAILURE!
java.lang.AssertionError: The norm of (X-Y) is too large
        at org.junit.Assert.assertTrue(
        at org.apache.commons.math3.linear.EigenDecompositionTest.checkUnsymmetricMatrix(
        at org.apache.commons.math3.linear.EigenDecompositionTest.testNormalDistributionUnsymmetricMatrix(
[... etc ...]

For tests that uses a RNG, the conclusion was reached that it is better (for
unit tests) to select a seed for which the test succeeds.


To unsubscribe, e-mail:
For additional commands, e-mail:

Email Disclaimer:
Consultation Disclaimer:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message