Commit cff6acbd authored by Benedikt Zoennchen's avatar Benedikt Zoennchen

increase the nTrail for the seating test since it is a test that involves...

increase the nTrail for the seating test since it is a test that involves probability therefore a larger sample is necessary.
parent bb7e35d0
Pipeline #59632 passed with stage
in 49 seconds
...@@ -42,7 +42,7 @@ public class TestChooseSeat { ...@@ -42,7 +42,7 @@ public class TestChooseSeat {
@StatisticalTestCase @StatisticalTestCase
@Test @Test
public void testChooseSeat0() { public void testChooseSeat0() {
final int nTrials = 1000; final int nTrials = 10000;
TallySheet<Seat> tallySheet = runChooseSeat(nTrials); TallySheet<Seat> tallySheet = runChooseSeat(nTrials);
final Map<SeatPosition, Double> probabilities = FractionProbabilityNormalization.normalize(new AttributesSeating().getSeatChoice0()); final Map<SeatPosition, Double> probabilities = FractionProbabilityNormalization.normalize(new AttributesSeating().getSeatChoice0());
...@@ -65,7 +65,7 @@ public class TestChooseSeat { ...@@ -65,7 +65,7 @@ public class TestChooseSeat {
public void testChooseSeat1() { public void testChooseSeat1() {
final int[] diagonallyOppositeSeatIndexes = { 3, 2, 1, 0 }; final int[] diagonallyOppositeSeatIndexes = { 3, 2, 1, 0 };
for (int i = 0; i < 4; i++) { for (int i = 0; i < 4; i++) {
final int nTrials = 1000; final int nTrials = 10000;
clearSeatGroup(seatGroup); clearSeatGroup(seatGroup);
fillSeatGroup(seatGroup, i); fillSeatGroup(seatGroup, i);
...@@ -81,7 +81,7 @@ public class TestChooseSeat { ...@@ -81,7 +81,7 @@ public class TestChooseSeat {
@StatisticalTestCase @StatisticalTestCase
@Test @Test
public void testChooseSeat2Both() { public void testChooseSeat2Both() {
final int nTrials = 1000; final int nTrials = 10000;
fillSeatGroup(seatGroup, 0, 3); fillSeatGroup(seatGroup, 0, 3);
final TallySheet<Seat> tallySheet = runChooseSeat(nTrials); final TallySheet<Seat> tallySheet = runChooseSeat(nTrials);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment