public class Quantiles extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Quantiles.Result<V>
Output type for storing the results of a Quantiles computation
|
Constructor and Description |
---|
Quantiles() |
Modifier and Type | Method and Description |
---|---|
static <K,V extends Number> |
distributed(PTable<K,V> table,
double p1,
double... pn)
Calculate a set of quantiles for each key in a numerically-valued table.
|
static <K,V extends Comparable> |
inMemory(PTable<K,V> table,
double p1,
double... pn)
Calculate a set of quantiles for each key in a numerically-valued table.
|
public static <K,V extends Number> PTable<K,Quantiles.Result<V>> distributed(PTable<K,V> table, double p1, double... pn)
K
- Key type of the tableV
- Value type of the table (must extends java.lang.Number)table
- numerically-valued PTablep1
- First quantile (in the range 0.0 - 1.0)pn
- More quantiles (in the range 0.0 - 1.0)public static <K,V extends Comparable> PTable<K,Quantiles.Result<V>> inMemory(PTable<K,V> table, double p1, double... pn)
K
- Key type of the tableV
- Value type of the table (must extends java.lang.Number)table
- numerically-valued PTablep1
- First quantile (in the range 0.0 - 1.0)pn
- More quantiles (in the range 0.0 - 1.0)Copyright © 2016 The Apache Software Foundation. All rights reserved.