本文整理了Java中htsjdk.samtools.util.Histogram.trimByWidth()
方法的一些代码示例,展示了Histogram.trimByWidth()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Histogram.trimByWidth()
方法的具体详情如下:
包路径:htsjdk.samtools.util.Histogram
类名称:Histogram
方法名:trimByWidth
[英]Trims the histogram so that only bins
[中]修剪柱状图,使其仅包含垃圾箱
代码示例来源:origin: samtools/htsjdk
@Test(dataProvider = "histogramData")
public void testHistogramFunctions(final int[] values, final double mean, final double stdev, final Integer trimByWidth) {
final Histogram<Integer> histo = new Histogram<>();
for (int value : values) {
histo.increment(value);
}
if (trimByWidth != null) histo.trimByWidth(trimByWidth);
final double m = histo.getMean();
final double sd = histo.getStandardDeviation();
Assert.assertEquals(round(mean), round(m), "Means are not equal");
Assert.assertEquals(round(stdev), round(sd), "Stdevs are not equal");
}
代码示例来源:origin: broadinstitute/picard
trimmedHistogram.trimByWidth(getWidthToTrimTo(metrics));
代码示例来源:origin: com.github.broadinstitute/picard
trimmedHistogram.trimByWidth(getWidthToTrimTo(metrics));
内容来源于网络,如有侵权,请联系作者删除!