public class MathUtils extends Object
Modifier and Type | Method and Description |
---|---|
static double |
sum(Iterable<org.apache.hadoop.io.DoubleWritable> values)
Sums up a sequence of double values
|
static double |
sum(Iterator<org.apache.hadoop.io.DoubleWritable> values)
Sums up a sequence of double values
|
public static double sum(Iterable<org.apache.hadoop.io.DoubleWritable> values)
values
- double valuespublic static double sum(Iterator<org.apache.hadoop.io.DoubleWritable> values)
values
- double valuesCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.