use of org.jfree.data.xy.CategoryTableXYDataset in project hmftools by hartwigmedical.
the class CopyNumberChartsTest method testUpperBoundary.
@Test
public void testUpperBoundary() {
CategoryTableXYDataset dataset = minorAllele(newArrayList(createCopyNumber(0, 5)));
assertEquals(5, dataset.getX(0, 0).doubleValue(), EPSILON);
assertEquals(10, dataset.getY(0, 0).doubleValue(), EPSILON);
dataset = minorAllele(newArrayList(createCopyNumber(0, 6)));
assertEquals(5, dataset.getX(0, 0).doubleValue(), EPSILON);
assertEquals(10, dataset.getY(0, 0).doubleValue(), EPSILON);
}
use of org.jfree.data.xy.CategoryTableXYDataset in project hmftools by hartwigmedical.
the class CopyNumberChartsTest method testNegativeMinorBafs.
@Test
public void testNegativeMinorBafs() {
CategoryTableXYDataset dataset = minorAllele(newArrayList(createCopyNumber(1.1, 1)));
assertEquals(-0.1, dataset.getX(0, 0).doubleValue(), EPSILON);
assertEquals(10, dataset.getY(0, 0).doubleValue(), EPSILON);
dataset = minorAllele(newArrayList(createCopyNumber(1.7, 1)));
assertEquals(-0.7, dataset.getX(0, 0).doubleValue(), EPSILON);
assertEquals(10, dataset.getY(0, 0).doubleValue(), EPSILON);
}
Aggregations