public static class QuantilesFloatsAPI.FloatsPartitionBoundaries extends Object
Modifier and Type | Field and Description |
---|---|
float[] |
boundaries
The partition boundaries as quantiles.
|
long |
N
The total number of items presented to the sketch.
|
double[] |
ranks
The normalized ranks that correspond to the returned boundaries.
|
Constructor and Description |
---|
FloatsPartitionBoundaries() |
public long N
To compute the weight or density of a specific partition i where i varies from 1 to m partitions:
long N = getN();
double[] ranks = getRanks();
long weight = Math.round((ranks[i] - ranks[i - 1]) * N);
public double[] ranks
public float[] boundaries
getMinItem()
, and index m is always
getMaxItem()
.Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.