Java 什么是;偏袒;“中的平均值”;“指标”;直方图
Codahale的“指标”收到的一个属性是“有偏差的”。Java 什么是;偏袒;“中的平均值”;“指标”;直方图,java,metrics,Java,Metrics,Codahale的“指标”收到的一个属性是“有偏差的”。 有人能解释一下这是什么意思吗 public Histogram newHistogram(Class<?> klass, String name, boolean biased) Creates a new Histogram and registers it under the given class and name. Parameters
有人能解释一下这是什么意思吗
public Histogram newHistogram(Class<?> klass,
String name,
boolean biased)
Creates a new Histogram and registers it under the given class and name.
Parameters:
klass - the class which owns the metric
name - the name of the metric
biased - whether or not the histogram should be biased
Returns:
a new Histogram
公共直方图新直方图(klass类,
字符串名,
布尔偏差)
创建一个新的直方图,并将其注册到给定的类和名称下。
参数:
klass-拥有度量的类
名称-度量的名称
偏置-直方图是否应偏置
返回:
新直方图
如有疑问,请查看来源:
/**
* Uses an exponentially decaying sample of 1028 elements, which offers a 99.9% confidence
* level with a 5% margin of error assuming a normal distribution, and an alpha factor of
* 0.015, which heavily biases the sample to the past 5 minutes of measurements.
*/
BIASED {
@Override
public Sample newSample() {
return new ExponentiallyDecayingSample(DEFAULT_SAMPLE_SIZE, DEFAULT_ALPHA);
}
};
有偏直方图是一种为最近的测量提供更多权重的直方图