From cff6acbdd2770c395791e0635030ec9df54647b1 Mon Sep 17 00:00:00 2001 From: Benedikt Zoennchen Date: Tue, 3 Jul 2018 11:55:32 +0200 Subject: [PATCH] increase the nTrail for the seating test since it is a test that involves probability therefore a larger sample is necessary. --- .../org/vadere/simulator/models/seating/TestChooseSeat.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VadereSimulator/tests/org/vadere/simulator/models/seating/TestChooseSeat.java b/VadereSimulator/tests/org/vadere/simulator/models/seating/TestChooseSeat.java index 5f08e5de8..d3488afcb 100644 --- a/VadereSimulator/tests/org/vadere/simulator/models/seating/TestChooseSeat.java +++ b/VadereSimulator/tests/org/vadere/simulator/models/seating/TestChooseSeat.java @@ -42,7 +42,7 @@ public class TestChooseSeat { @StatisticalTestCase @Test public void testChooseSeat0() { - final int nTrials = 1000; + final int nTrials = 10000; TallySheet tallySheet = runChooseSeat(nTrials); final Map probabilities = FractionProbabilityNormalization.normalize(new AttributesSeating().getSeatChoice0()); @@ -65,7 +65,7 @@ public class TestChooseSeat { public void testChooseSeat1() { final int[] diagonallyOppositeSeatIndexes = { 3, 2, 1, 0 }; for (int i = 0; i < 4; i++) { - final int nTrials = 1000; + final int nTrials = 10000; clearSeatGroup(seatGroup); fillSeatGroup(seatGroup, i); @@ -81,7 +81,7 @@ public class TestChooseSeat { @StatisticalTestCase @Test public void testChooseSeat2Both() { - final int nTrials = 1000; + final int nTrials = 10000; fillSeatGroup(seatGroup, 0, 3); final TallySheet tallySheet = runChooseSeat(nTrials); -- GitLab