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