public class RocCurve extends BaseCurve
DEFAULT_FORMAT_PREC| Constructor and Description |
|---|
RocCurve(double[] threshold,
double[] fpr,
double[] tpr) |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateAUC()
Calculate and return the area under ROC curve
|
static RocCurve |
fromJson(String json) |
static RocCurve |
fromYaml(String yaml) |
double |
getFalsePositiveRate(int i) |
double |
getThreshold(int i) |
String |
getTitle() |
double |
getTruePositiveRate(int i) |
double[] |
getX() |
double[] |
getY() |
int |
numPoints() |
calculateArea, calculateArea, format, fromJson, fromYaml, toJson, toYamlpublic int numPoints()
public String getTitle()
public double getThreshold(int i)
i - Point number, 0 to numPoints()-1 inclusivepublic double getTruePositiveRate(int i)
i - Point number, 0 to numPoints()-1 inclusivepublic double getFalsePositiveRate(int i)
i - Point number, 0 to numPoints()-1 inclusivepublic double calculateAUC()
Copyright © 2018. All rights reserved.