Konstruktor falsch aufgerufen, somit sind alle Tests fehlgeschlagen. Konstruktor angepasst.
This commit is contained in:
parent
c352ed6a64
commit
24126e8676
|
@ -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(){
|
||||
|
|
|
@ -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 {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue