Menu

#645 Polynomial fit extrema determination exception

Defect
closed-fixed
None
9
2020-05-09
2018-12-08
David Benn
No

Reported by Tom Calderwood in https://www.aavso.org/bug-reports#comment-62491

In ApacheCommonsDerivativeBasedExtremaFinder.java, line 105 is suspect:

int lastIndex = minDerivIndex < obs.size() ? minDerivIndex + 1
                    : minDerivIndex;

The condition should I think be:

minDerivIndex < obs.size()-1

Discussion

  • David Benn

    David Benn - 2019-02-26
     
  • David Benn

    David Benn - 2019-02-26

    Fixed as per above solution.

     
  • David Benn

    David Benn - 2020-05-09
    • status: open --> closed-fixed
     

Log in to post a comment.