public class Average extends Object
| Constructor and Description |
|---|
Average() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V extends Number> |
meanValue(PTable<K,V> table)
Calculate the mean average value by key for a table with numeric values.
|
public static <K,V extends Number> PTable<K,Double> meanValue(PTable<K,V> table)
K - Key type, can be any typeV - Value type, must be numeric (ie. extend java.lang.Number)table - PTable of (key, value) pairs to operate onCopyright © 2016 The Apache Software Foundation. All rights reserved.