本文整理了Java中javax.media.jai.Histogram.getMean()
方法的一些代码示例,展示了Histogram.getMean()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Histogram.getMean()
方法的具体详情如下:
包路径:javax.media.jai.Histogram
类名称:Histogram
方法名:getMean
暂无
代码示例来源:origin: org.geotools/gt2-gtopo30
p.print((int) Max[0]);
p.print(" ");
p.print(hist.getMean()[0]);
p.print(" ");
p.print(hist.getStandardDeviation()[0]);
outZ.write(new Integer((int) Max[0]).toString().getBytes());
outZ.write(" ".getBytes());
outZ.write(new Double(hist.getMean()[0]).toString().getBytes());
outZ.write(" ".getBytes());
outZ.write(new Double(hist.getStandardDeviation()[0]).toString()
代码示例来源:origin: bcdev/beam
this.median = maximum;
} else {
this.mean = Double.isNaN(mean) ? histogramScaling.scaleInverse(histogram.getMean()[0]) : mean;
this.standardDeviation = Double.isNaN(standardDeviation) ? histogramScaling.scaleInverse(histogram.getStandardDeviation()[0]) : standardDeviation;
this.median = histogramScaling.scaleInverse(StxFactory.computeMedian(histogram, this.sampleCount));
代码示例来源:origin: senbox-org/snap-desktop
statistics.put("maximum", histogram.getHighValue(0));
statistics.put("median", histogram.getPTileThreshold(0.5)[0]);
statistics.put("average", histogram.getMean()[0]);
statistics.put("sigma", histogram.getStandardDeviation()[0]);
statistics.put("p90", histogram.getPTileThreshold(0.9)[0]);
代码示例来源:origin: bcdev/beam
statistics.put("maximum", histogram.getHighValue(0));
statistics.put("median", histogram.getPTileThreshold(0.5)[0]);
statistics.put("average", histogram.getMean()[0]);
statistics.put("sigma", histogram.getStandardDeviation()[0]);
statistics.put("p90", histogram.getPTileThreshold(0.9)[0]);
代码示例来源:origin: senbox-org/snap-desktop
statistics.put("maximum", histogram.getHighValue(0));
statistics.put("median", histogram.getPTileThreshold(0.5)[0]);
statistics.put("average", histogram.getMean()[0]);
statistics.put("sigma", histogram.getStandardDeviation()[0]);
statistics.put("p90_threshold", histogram.getPTileThreshold(0.9)[0]);
代码示例来源:origin: bcdev/beam
statistics.put("maximum", histogram.getHighValue(0));
statistics.put("median", histogram.getPTileThreshold(0.5)[0]);
statistics.put("average", histogram.getMean()[0]);
statistics.put("sigma", histogram.getStandardDeviation()[0]);
statistics.put("p90_threshold", histogram.getPTileThreshold(0.9)[0]);
代码示例来源:origin: Audiveris/audiveris
System.out.println("getHighValue: " + Arrays.toString(res));
res = hist.getMean();
System.out.println("getMean: " + Arrays.toString(res));
代码示例来源:origin: bcdev/beam
@Test
public void testMinMaxBinsLogHistogram() throws Exception {
StxFactory factory = new StxFactory();
factory
.withMinimum(0.1)
.withMaximum(10)
.withLogHistogram(true)
.withHistogramBins(new int[]{1, 2, 3, 6, 6, 3, 2, 1});
Stx stx = factory.create();
assertNotNull(stx.getHistogram());
assertEquals(1, stx.getHistogram().getNumBands());
assertEquals(8, stx.getHistogram().getNumBins()[0]);
assertEquals(0.1, stx.getMinimum(), 1e-10);
assertEquals(10, stx.getMaximum(), 1e-10);
assertEquals(Math.pow(10.0, stx.getHistogram().getMean()[0]), stx.getMean(), 1e-3);
assertEquals(Math.pow(10.0, 0), stx.getMedian(), 1e-3);
assertEquals(-1.0, stx.getHistogram().getLowValue(0), 1e-10);
assertEquals(1.0, stx.getHistogram().getHighValue(0), 1e-10);
assertArrayEquals(new int[]{1, 2, 3, 6, 6, 3, 2, 1}, stx.getHistogramBins());
}
内容来源于网络,如有侵权,请联系作者删除!