本文整理了Java中htsjdk.samtools.util.Histogram.getMedianAbsoluteDeviation()
方法的一些代码示例,展示了Histogram.getMedianAbsoluteDeviation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Histogram.getMedianAbsoluteDeviation()
方法的具体详情如下:
包路径:htsjdk.samtools.util.Histogram
类名称:Histogram
方法名:getMedianAbsoluteDeviation
[英]Gets the median absolute deviation of the distribution.
[中]获取分布的中位数绝对偏差。
代码示例来源:origin: com.github.samtools/htsjdk
/**
* Returns a value that is intended to estimate the mean of the distribution, if the distribution is
* essentially normal, by using the median absolute deviation to remove the effect of
* erroneous massive outliers.
*/
public double estimateSdViaMad() {
return 1.4826 * getMedianAbsoluteDeviation();
}
代码示例来源:origin: org.seqdoop/htsjdk
/**
* Returns a value that is intended to estimate the mean of the distribution, if the distribution is
* essentially normal, by using the median absolute deviation to remove the effect of
* erroneous massive outliers.
*/
public double estimateSdViaMad() {
return 1.4826 * getMedianAbsoluteDeviation();
}
代码示例来源:origin: samtools/htsjdk
/**
* Returns a value that is intended to estimate the mean of the distribution, if the distribution is
* essentially normal, by using the median absolute deviation to remove the effect of
* erroneous massive outliers.
*/
public double estimateSdViaMad() {
return 1.4826 * getMedianAbsoluteDeviation();
}
代码示例来源:origin: samtools/htsjdk
@Test
public void testMad() {
final int[] is = {4,4,4,4,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8};
final Histogram<Integer> histo = new Histogram<>();
for (final int i : is) histo.increment(i);
Assert.assertEquals(7d, histo.getMedian());
Assert.assertEquals(1d, histo.getMedianAbsoluteDeviation());
Assert.assertTrue(abs(histo.estimateSdViaMad() - 1.4826) < 0.0001);
}
代码示例来源:origin: broadinstitute/picard
metrics.MEDIAN_INSERT_SIZE = histogram.getMedian();
metrics.MODE_INSERT_SIZE = histogram.getMode();
metrics.MEDIAN_ABSOLUTE_DEVIATION = histogram.getMedianAbsoluteDeviation();
代码示例来源:origin: com.github.broadinstitute/picard
metrics.MEDIAN_INSERT_SIZE = histogram.getMedian();
metrics.MODE_INSERT_SIZE = histogram.getMode();
metrics.MEDIAN_ABSOLUTE_DEVIATION = histogram.getMedianAbsoluteDeviation();
代码示例来源:origin: broadinstitute/picard
SD_COVERAGE = highQualityDepthHistogram.getStandardDeviation();
MEDIAN_COVERAGE = highQualityDepthHistogram.getMedian();
MAD_COVERAGE = highQualityDepthHistogram.getMedianAbsoluteDeviation();
代码示例来源:origin: com.github.broadinstitute/picard
SD_COVERAGE = highQualityDepthHistogram.getStandardDeviation();
MEDIAN_COVERAGE = highQualityDepthHistogram.getMedian();
MAD_COVERAGE = highQualityDepthHistogram.getMedianAbsoluteDeviation();
内容来源于网络,如有侵权,请联系作者删除!