commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <>
Subject [jira] [Commented] (MATH-798) stalls
Date Wed, 04 Jul 2012 12:58:35 GMT


Gilles commented on MATH-798:

Your use-case had already been included in the unit test suite (albeit in the "CurveFitterTest"
class because I initially wanted to remove the "PolynomialFitter" class).

MATH-799 discusses that the problem you reported here happens because the default tolerances
were much too small. This has been solved (cf. unit test method "testMath798" in "CurveFitterTest").

However, since the mistake of setting the tolerances at too low values could still happen,
I'm going to add a new (overridden) method in "PolynomialFitter", where you can explicitly
set the number of allowed evaluations of the polynomial during the fit process. This will
make it fail early instead of running "forever" (not really: the default number of evaluation
is "Integer.MAX_VALUE").

> stalls
> -----------------------------
>                 Key: MATH-798
>                 URL:
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.0
>         Environment: Mac OS 10.6 and Win XP
>            Reporter: Kurt Pernstich
>         Attachments:
> Hi, in certain cases I ran into the problem that the method stalls,
meaning that it does not return, nor throw an Exception (even if it runs for 90 min). Is there
a way to tell the PolynomialFitter to iterate only N-times to ensure that my program does
not stall?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message