Konstruktor falsch aufgerufen, somit sind alle Tests fehlgeschlagen. Konstruktor angepasst.

This commit is contained in:
Armin Wolf 2017-06-16 18:44:00 +02:00
parent c352ed6a64
commit 24126e8676
2 changed files with 4 additions and 6 deletions

View File

@ -53,7 +53,7 @@ public class LeastMedianOfSquaresEstimator extends Observable implements Algorit
}
public LeastMedianOfSquaresEstimator(LinkedList<Line> set, LinkedList<Point> intersections) {
new LeastMedianOfSquaresEstimator(set, intersections, null);
this(set, intersections, null);
}
public void printResult(){

View File

@ -3,6 +3,7 @@ package Presenter.Algorithms;
import Model.Line;
import Model.Point;
import Model.Slab;
import org.junit.Before;
import org.junit.Test;
@ -94,7 +95,7 @@ public class LeastMedianOfSquaresEstimatorTest {
lms.setkMinus(3);
lms.setHeightsigmaMin(500);
lms.setSigmaMin(new Line(0,0,0,0));
lms.setN(5);
Line expected = new Line(5,5,146,210);
lms.upperBound(5d);
@ -111,14 +112,11 @@ public class LeastMedianOfSquaresEstimatorTest {
Double[] expectedBeta = {2d,4d,4d,2d,1d};
lms.setHeightsigmaMin(500);
LeastMedianOfSquaresEstimator.Slab slab = new LeastMedianOfSquaresEstimator.Slab(-2,0);
Slab slab = new Slab(-2,0);
lms.lowerBound(slab);
assertTrue(slab.getActivity());
}
@Test
public void planeSweep() throws Exception {
}
}