[
https://issues.apache.org/jira/browse/MATH-1488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16862103#comment-16862103
]
Gilles commented on MATH-1488:
------------------------------
The {{geometry}} package of "Commons Math" is being refactored and moved to a
new ["Commons Geometry"
library|http://commons.apache.org/proper/commons-geometry/].
Please check out the [source
code|https://gitbox.apache.org/repos/asf?p=commons-geometry.git].
If the bug is still present, please file a report in the [corresponding JIRA
project|https://issues.apache.org/jira/projects/GEOMETRY] (with a link to this
report).
> WelzlEncloser throws MathInternalError
> --------------------------------------
>
> Key: MATH-1488
> URL: https://issues.apache.org/jira/browse/MATH-1488
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 3.6.1
> Environment: java 1.8, Windows 10 x64, idea
> Reporter: Benjamin Krogh
> Priority: Critical
>
> The following code snippets throws a MathInternalError when trying to
> calculate the enclosing ball of the given points.
> {noformat}
> @Test
> public void encloserTest() {
> final List<Vector2D> points = Arrays.asList(
> new Vector2D(271.59, 57.282),
> new Vector2D(269.145, 57.063),
> new Vector2D(309.117, 77.187),
> new Vector2D(316.989, 34.835),
> new Vector2D(323.101, 53.972)
> );
> double tolerance = 1;
> WelzlEncloser<Euclidean2D, Vector2D> encloser = new
> WelzlEncloser<>(tolerance, new DiskGenerator());
> encloser.enclose(points);
> }{noformat}
> Interestingly, if tolerance is set lower than 0.965 or higher than 1.100, it
> suceeds. I was not able to find any tolerance value between 0.965 and 1.100
> that succeeds.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)