Faulty search for minimal value in SplineDeterminator class
The method getMinimumSplineForSetAndPoints
initializes the variable minDist
with Double.MAX_VALUE
but its content is never overwritten when a smaller value is found. Consequently, the comparison in line 188 evaluates to true
with every iteration and the method always returns the last element in the given set and not neccessarily the correct one.