Search in sources :

Example 1 with BimodalityTester

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));
}
Also used : CompareData(de.dagere.peass.measurement.statistics.bimodal.CompareData) Result(de.dagere.kopeme.generated.Result) BimodalityTester(de.dagere.peass.measurement.statistics.bimodal.BimodalityTester) Test(org.junit.Test)

Example 2 with BimodalityTester

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));
}
Also used : CompareData(de.dagere.peass.measurement.statistics.bimodal.CompareData) Result(de.dagere.kopeme.generated.Result) BimodalityTester(de.dagere.peass.measurement.statistics.bimodal.BimodalityTester) Test(org.junit.Test)

Example 3 with BimodalityTester

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));
}
Also used : CompareData(de.dagere.peass.measurement.statistics.bimodal.CompareData) Result(de.dagere.kopeme.generated.Result) BimodalityTester(de.dagere.peass.measurement.statistics.bimodal.BimodalityTester) Test(org.junit.Test)

Example 4 with BimodalityTester

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));
}
Also used : CompareData(de.dagere.peass.measurement.statistics.bimodal.CompareData) Result(de.dagere.kopeme.generated.Result) BimodalityTester(de.dagere.peass.measurement.statistics.bimodal.BimodalityTester) Test(org.junit.Test)

Example 5 with BimodalityTester

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();
}
Also used : CompareData(de.dagere.peass.measurement.statistics.bimodal.CompareData) BimodalityTester(de.dagere.peass.measurement.statistics.bimodal.BimodalityTester)

Aggregations

BimodalityTester (de.dagere.peass.measurement.statistics.bimodal.BimodalityTester)5 CompareData (de.dagere.peass.measurement.statistics.bimodal.CompareData)5 Result (de.dagere.kopeme.generated.Result)4 Test (org.junit.Test)4