Class AreaUnderCurve

Object
org.apache.spark.mllib.evaluation.AreaUnderCurve

public class AreaUnderCurve extends Object
Computes the area under the curve (AUC) using the trapezoidal rule.
  • Constructor Details

    • AreaUnderCurve

      public AreaUnderCurve()
  • Method Details

    • of

      public static double of(RDD<scala.Tuple2<Object,Object>> curve)
      Returns the area under the given curve.

      Parameters:
      curve - an RDD of ordered 2D points stored in pairs representing a curve
      Returns:
      (undocumented)
    • of

      public static double of(scala.collection.Iterable<scala.Tuple2<Object,Object>> curve)
      Returns the area under the given curve.

      Parameters:
      curve - an iterator over ordered 2D points stored in pairs representing a curve
      Returns:
      (undocumented)