commons-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/MATH-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13406491#comment-13406491
] 

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").

                
> PolynomialFitter.fit() stalls
> -----------------------------
>
>                 Key: MATH-798
>                 URL: https://issues.apache.org/jira/browse/MATH-798
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.0
>         Environment: Mac OS 10.6 and Win XP
>            Reporter: Kurt Pernstich
>         Attachments: PolynomialFitterTest.java
>
>
> Hi, in certain cases I ran into the problem that the PolynomialFitter.fit() 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message