public void addIlluminaMetricCounts(final IlluminaMetricCounts counts) { this.tileToClusterHistogram.addHistogram(counts.tileToClusterHistogram); this.tileToPfClusterHistogram.addHistogram(counts.tileToPfClusterHistogram); } }
public void addIlluminaMetricCounts(final IlluminaMetricCounts counts) { this.tileToClusterHistogram.addHistogram(counts.tileToClusterHistogram); this.tileToPfClusterHistogram.addHistogram(counts.tileToPfClusterHistogram); } }
highQualityDepthHistogram.addHistogram(otherMetric.highQualityDepthHistogram); unfilteredDepthHistogram.addHistogram(otherMetric.unfilteredDepthHistogram); if (unfilteredBaseQHistogram != null && otherMetric.unfilteredBaseQHistogram != null) unfilteredBaseQHistogram.addHistogram(otherMetric.unfilteredBaseQHistogram); return this;
highQualityDepthHistogram.addHistogram(otherMetric.highQualityDepthHistogram); unfilteredDepthHistogram.addHistogram(otherMetric.unfilteredDepthHistogram); if (unfilteredBaseQHistogram != null && otherMetric.unfilteredBaseQHistogram != null) unfilteredBaseQHistogram.addHistogram(otherMetric.unfilteredBaseQHistogram); return this;
@Test public void testAddHistogram() { final int[] is1 = {4,4,5,5,5}; final Histogram<Integer> histo1 = new Histogram<>(); Assert.assertTrue(histo1.isEmpty()); for (final int i : is1) histo1.increment(i); Assert.assertFalse(histo1.isEmpty()); final int[] is2 = {5,5, 6,6,6,6}; final Histogram<Integer> histo2 = new Histogram<>(); for (final int i : is2) histo2.increment(i); Assert.assertEquals(histo1.get(4).getValue(), 2.0); Assert.assertEquals(histo1.get(5).getValue(), 3.0); Assert.assertEquals(histo1.get(6), null); histo1.addHistogram(histo2); Assert.assertEquals(histo1.get(4).getValue(), 2.0); Assert.assertEquals(histo1.get(5).getValue(), 5.0); Assert.assertEquals(histo1.get(6).getValue(), 4.0); }