htsjdk.samtools.util.Histogram.getMedianAbsoluteDeviation()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中htsjdk.samtools.util.Histogram.getMedianAbsoluteDeviation()方法的一些代码示例,展示了Histogram.getMedianAbsoluteDeviation()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Histogram.getMedianAbsoluteDeviation()方法的具体详情如下:
包路径:htsjdk.samtools.util.Histogram
类名称:Histogram
方法名:getMedianAbsoluteDeviation

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();

相关文章