|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectevaluation.networkperformance.ROCCurveHandler
public class ROCCurveHandler
Contains static functions for writing ROC curves to files and creating actual plots from the ROC curves using Gnuplot or the JFreeChart library.
Constructor Summary | |
---|---|
ROCCurveHandler()
|
Method Summary | |
---|---|
static org.jfree.chart.JFreeChart |
generateChart(List<ROCCurve> rocCurves,
List<String> names)
Creates a line diagram as a JFreeChart from a given list of ROC curves. |
static void |
writeToFile(ROCCurve rocCurve,
File outFile)
Writes the data of a ROC curve to a file. |
static void |
writeToFile(ROCCurve rocCurve,
String outFile)
Writes the data of a ROC curve to a file. |
static void |
writeToStream(ROCCurve rocCurve,
OutputStream stream)
Write the data of a ROC curve to an output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ROCCurveHandler()
Method Detail |
---|
public static void writeToFile(ROCCurve rocCurve, String outFile) throws FileNotFoundException
rocCurve
- ROC curve to be written outoutFile
- output file
FileNotFoundException
- if the file could not be openedpublic static void writeToFile(ROCCurve rocCurve, File outFile) throws FileNotFoundException
rocCurve
- ROC curve to be written outoutFile
- output file
FileNotFoundException
- if the file could not be openedpublic static void writeToStream(ROCCurve rocCurve, OutputStream stream)
rocCurve
- ROC curve to be written outstream
- output stream the data will be written topublic static org.jfree.chart.JFreeChart generateChart(List<ROCCurve> rocCurves, List<String> names)
rocCurves
- list of ROC curvesnames
- list of names for the ROC curves to be used in the diagram
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |