public class AreaUnderCurve
extends Object
| Constructor and Description | 
|---|
AreaUnderCurve()  | 
| Modifier and Type | Method and Description | 
|---|---|
static double | 
of(scala.collection.Iterable<scala.Tuple2<Object,Object>> curve)
Returns the area under the given curve. 
 | 
static double | 
of(RDD<scala.Tuple2<Object,Object>> curve)
Returns the area under the given curve. 
 | 
public static double of(RDD<scala.Tuple2<Object,Object>> curve)
curve - an RDD of ordered 2D points stored in pairs representing a curvepublic static double of(scala.collection.Iterable<scala.Tuple2<Object,Object>> curve)
curve - an iterator over ordered 2D points stored in pairs representing a curve