Benjamin Krogh created MATH-1488:
------------------------------------
Summary: 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
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)