use of de.dagere.peass.measurement.statistics.bimodal.BimodalityTester in project peass by DaGeRe.
the class TestBimodalChange method testIsUnimodalChange.
@Test
public void testIsUnimodalChange() {
List<Result> before = BimodalTestUtil.buildValues(50, 50);
List<Result> after = BimodalTestUtil.buildValues(51, 51.5);
CompareData data = new CompareData(before, after);
final BimodalityTester tester = new BimodalityTester(data);
Assert.assertFalse(tester.isBimodal());
Assert.assertTrue(tester.isTChange(0.001));
}
use of de.dagere.peass.measurement.statistics.bimodal.BimodalityTester in project peass by DaGeRe.
the class TestBimodalChange method testIsUnimodalEqual.
@Test
public void testIsUnimodalEqual() {
List<Result> before = BimodalTestUtil.buildValues(50, 50);
List<Result> after = BimodalTestUtil.buildValues(50, 50.001);
CompareData data = new CompareData(before, after);
final BimodalityTester tester = new BimodalityTester(data);
Assert.assertFalse(tester.isBimodal());
Assert.assertFalse(tester.isTChange(0.001));
}
use of de.dagere.peass.measurement.statistics.bimodal.BimodalityTester in project peass by DaGeRe.
the class TestBimodalChange method testIsBimodalEqual.
@Test
public void testIsBimodalEqual() {
List<Result> before = BimodalTestUtil.buildValues(50, 100);
List<Result> after = BimodalTestUtil.buildValues(50, 100.5);
CompareData data = new CompareData(before, after);
final BimodalityTester tester = new BimodalityTester(data);
Assert.assertTrue(tester.isBimodal());
Assert.assertFalse(tester.isTChange(0.001));
}
use of de.dagere.peass.measurement.statistics.bimodal.BimodalityTester in project peass by DaGeRe.
the class TestBimodalChange method testIsBimodalChange.
@Test
public void testIsBimodalChange() {
List<Result> before = BimodalTestUtil.buildValues(50, 100);
List<Result> after = BimodalTestUtil.buildValues(51, 101);
CompareData data = new CompareData(before, after);
final BimodalityTester tester = new BimodalityTester(data);
Assert.assertTrue(tester.isBimodal());
Assert.assertTrue(tester.isTChange(0.001));
}
use of de.dagere.peass.measurement.statistics.bimodal.BimodalityTester in project peass by DaGeRe.
the class StatisticUtil method isBimodal.
public static boolean isBimodal(final List<Result> valuesPrev, final List<Result> valuesVersion) {
CompareData data = new CompareData(valuesPrev, valuesVersion);
final BimodalityTester tester = new BimodalityTester(data);
return tester.isBimodal();
}
Aggregations