本文整理了Java中org.HdrHistogram.Histogram.getStdDeviation()
方法的一些代码示例,展示了Histogram.getStdDeviation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Histogram.getStdDeviation()
方法的具体详情如下:
包路径:org.HdrHistogram.Histogram
类名称:Histogram
方法名:getStdDeviation
暂无
代码示例来源:origin: HdrHistogram/HdrHistogram
@Override
public synchronized double getStdDeviation() {
return super.getStdDeviation();
}
代码示例来源:origin: networknt/light-4j
@Override
public double getStdDev() {
return histogram.getStdDeviation();
}
代码示例来源:origin: apache/storm
public double getLatencyStdDeviation(TimeUnit unit) {
return convert(histo.getStdDeviation(), TimeUnit.NANOSECONDS, unit);
}
代码示例来源:origin: neo4j-contrib/neo4j-apoc-procedures
@UserAggregationResult
public Map<String,Number> result() {
long totalCount = values != null ? values.getTotalCount() : doubles.getTotalCount();
boolean empty = totalCount == 0;
Map<String,Number> result = new LinkedHashMap<>(percentiles.size()+6);
result.put("min",values != null ? (Number)values.getMinValue() : (Number)doubles.getMinValue());
result.put("minNonZero",values != null ? (Number)values.getMinNonZeroValue() : (Number)doubles.getMinNonZeroValue());
result.put("max",values != null ? (Number)values.getMaxValue() : (Number)doubles.getMaxValue());
result.put("total",totalCount);
result.put("mean",values != null ? values.getMean() : doubles.getMean());
result.put("stdev",values != null ? values.getStdDeviation() : doubles.getStdDeviation());
for (Double percentile : percentiles) {
if (percentile != null && !empty) {
if (values != null) {
result.put(percentile.toString(), values.getValueAtPercentile(percentile * 100D));
} else {
result.put(percentile.toString(), doubles.getValueAtPercentile(percentile * 100D));
}
}
}
return result;
}
}
代码示例来源:origin: com.networknt/metrics
@Override
public double getStdDev() {
return histogram.getStdDeviation();
}
代码示例来源:origin: co.paralleluniverse/quasar-core
@Override
public double getStdDev() {
return histogram.getStdDeviation();
}
代码示例来源:origin: org.mpierce.metrics.reservoir/hdrhistogram-metrics-reservoir
@Override
public double getStdDev() {
return histogram.getStdDeviation();
}
代码示例来源:origin: HotelsDotCom/styx
@Override
public double getStdDev() {
return histogram.getStdDeviation();
}
代码示例来源:origin: io.engineblock/eb-api
@Override
public double getStdDev() {
return histogram.getStdDeviation();
}
代码示例来源:origin: org.attribyte/essem-reporter
@Override
public double getStdDev() {
return histogram.getStdDeviation();
}
代码示例来源:origin: com.github.vladimir-bukhtoyarov/rolling-metrics
@Override
public double getStdDev() {
return histogram.getStdDeviation();
}
代码示例来源:origin: org.hdrhistogram/HdrHistogram
@Override
public synchronized double getStdDeviation() {
return super.getStdDeviation();
}
代码示例来源:origin: vladimir-bukhtoyarov/rolling-metrics
@Override
public double getStdDev() {
return histogram.getStdDeviation();
}
代码示例来源:origin: com.hotels.styx/styx-api
@Override
public double getStdDev() {
return histogram.getStdDeviation();
}
代码示例来源:origin: com.datastax.oss/java-driver-core-shaded
private HdrSnapshot(Histogram histogram) {
this.histogram = histogram;
// Cache those values because they rely on HdrHistogram's internal iterators, which are not
// safe if the snapshot is accessed by concurrent reporters.
// In contrast, getMin(), getMax() and getValue() are safe.
this.meanNanos = histogram.getMean() * 1000;
this.stdDevNanos = histogram.getStdDeviation() * 1000;
}
代码示例来源:origin: com.hotels.styx/styx-api
public synchronized double getStdDeviation() {
return getAggregateHistogram().getStdDeviation();
}
代码示例来源:origin: HotelsDotCom/styx
public synchronized double getStdDeviation() {
return getAggregateHistogram().getStdDeviation();
}
代码示例来源:origin: vladimir-bukhtoyarov/rolling-metrics
static Snapshot takeSmartSnapshot(final double[] predefinedQuantiles, Histogram histogram) {
final long max = histogram.getMaxValue();
final long min = histogram.getMinValue();
final double mean = histogram.getMean();
final double median = histogram.getValueAtPercentile(50.0);
final double stdDeviation = histogram.getStdDeviation();
final double[] values = new double[predefinedQuantiles.length];
for (int i = 0; i < predefinedQuantiles.length; i++) {
double quantile = predefinedQuantiles[i];
double percentile = quantile * 100.0;
values[i] = histogram.getValueAtPercentile(percentile);
}
return createSmartSnapshot(predefinedQuantiles, max, min, mean, median, stdDeviation, values);
}
代码示例来源:origin: com.github.vladimir-bukhtoyarov/rolling-metrics
static Snapshot takeSmartSnapshot(final double[] predefinedQuantiles, Histogram histogram) {
final long max = histogram.getMaxValue();
final long min = histogram.getMinValue();
final double mean = histogram.getMean();
final double median = histogram.getValueAtPercentile(50.0);
final double stdDeviation = histogram.getStdDeviation();
final double[] values = new double[predefinedQuantiles.length];
for (int i = 0; i < predefinedQuantiles.length; i++) {
double quantile = predefinedQuantiles[i];
double percentile = quantile * 100.0;
values[i] = histogram.getValueAtPercentile(percentile);
}
return createSmartSnapshot(predefinedQuantiles, max, min, mean, median, stdDeviation, values);
}
代码示例来源:origin: jpos/jPOS
private void dumpPercentiles (PrintStream ps, String indent, String key, Histogram h) {
ps.printf ("%s%s min=%d, max=%d, mean=%.4f stddev=%.4f 90%%=%d, 99%%=%d, 99.9%%=%d, 99.99%%=%d tot=%d size=%d%n",
indent,
key,
h.getMinValue(),
h.getMaxValue(),
h.getMean(),
h.getStdDeviation(),
h.getValueAtPercentile(90.0),
h.getValueAtPercentile(99.0),
h.getValueAtPercentile(99.9),
h.getValueAtPercentile(99.99),
h.getTotalCount(),
h.getEstimatedFootprintInBytes()
);
}
内容来源于网络,如有侵权,请联系作者删除!