evaluation.networkperformance
Class ROCCurve

java.lang.Object
  extended by evaluation.networkperformance.ROCCurve
All Implemented Interfaces:
Iterable<ROCPoint>

public class ROCCurve
extends Object
implements Iterable<ROCPoint>

An immutable list of ROC points, result of a ROC curve calculation


Constructor Summary
ROCCurve(List<ROCPoint> data)
          Constructor which initializes the ROC curve with a given list of points
 
Method Summary
 List<ROCPoint> getData()
          Returns the list of ROCPoint objects in this curve.
 Iterator<ROCPoint> iterator()
          Returns an iterator over the points in this curve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ROCCurve

public ROCCurve(List<ROCPoint> data)
Constructor which initializes the ROC curve with a given list of points

Parameters:
data - list of ROCPoint objects
Method Detail

getData

public List<ROCPoint> getData()
Returns the list of ROCPoint objects in this curve. Note: This method returns the original object, changes to that list will also affect the ROC curve.

Returns:
list of ROCPoint objects which make up the ROC curve

iterator

public Iterator<ROCPoint> iterator()
Returns an iterator over the points in this curve

Specified by:
iterator in interface Iterable<ROCPoint>