public class AreaUnderCurve
extends Object
Constructor and Description |
---|
AreaUnderCurve() |
public static double of(RDD<scala.Tuple2<Object,Object>> curve)
curve
- a 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