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.paimon.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.paimon.metrics.DescriptiveStatisticsHistogram.CircularDoubleArray histogramValues)
public DescriptiveStatisticsHistogramStatistics(double[] values)
public double getQuantile(double quantile)
HistogramStatisticsgetQuantile in class HistogramStatisticsquantile - Quantile to calculate the value forpublic long[] getValues()
HistogramStatisticsgetValues in class HistogramStatisticspublic int size()
HistogramStatisticssize in class HistogramStatisticspublic double getMean()
HistogramStatisticsgetMean in class HistogramStatisticspublic double getStdDev()
HistogramStatisticsgetStdDev in class HistogramStatisticspublic long getMax()
HistogramStatisticsgetMax in class HistogramStatisticspublic long getMin()
HistogramStatisticsgetMin in class HistogramStatisticsCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.