public static class QuantilesDoublesAPI.DoublesPartitionBoundaries extends Object
| Modifier and Type | Field and Description |
|---|---|
double[] |
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 |
|---|
DoublesPartitionBoundaries() |
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 double[] boundaries
getMinItem(), and index m is always
getMaxItem().Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.