public class DescriptiveStatisticsHistogramStatistics extends HistogramStatistics implements Serializable
DescriptiveStatisticsHistogram
.
The statistics takes a point-in-time snapshot of a DescriptiveStatistics
instance and
allows optimised metrics retrieval from this.
Constructor and Description |
---|
DescriptiveStatisticsHistogramStatistics(org.apache.flink.runtime.metrics.DescriptiveStatisticsHistogram.CircularDoubleArray histogramValues) |
DescriptiveStatisticsHistogramStatistics(double[] values) |
Modifier and Type | Method and Description |
---|---|
long |
getMax()
Returns the maximum value of the histogram.
|
double |
getMean()
Returns the mean of the histogram values.
|
long |
getMin()
Returns the minimum value of the histogram.
|
double |
getQuantile(double quantile)
Returns the value for the given quantile based on the represented histogram statistics.
|
double |
getStdDev()
Returns the standard deviation of the distribution reflected by the histogram statistics.
|
long[] |
getValues()
Returns the elements of the statistics' sample.
|
int |
size()
Returns the size of the statistics' sample.
|
public DescriptiveStatisticsHistogramStatistics(org.apache.flink.runtime.metrics.DescriptiveStatisticsHistogram.CircularDoubleArray histogramValues)
public DescriptiveStatisticsHistogramStatistics(double[] values)
public double getQuantile(double quantile)
HistogramStatistics
getQuantile
in class HistogramStatistics
quantile
- Quantile to calculate the value forpublic long[] getValues()
HistogramStatistics
getValues
in class HistogramStatistics
public int size()
HistogramStatistics
size
in class HistogramStatistics
public double getMean()
HistogramStatistics
getMean
in class HistogramStatistics
public double getStdDev()
HistogramStatistics
getStdDev
in class HistogramStatistics
public long getMax()
HistogramStatistics
getMax
in class HistogramStatistics
public long getMin()
HistogramStatistics
getMin
in class HistogramStatistics
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.