public class DecisionAnalysis extends Object implements AnalysisResult
Modifier and Type | Field and Description |
---|---|
long |
FN
The total number of pairs in different clusters which belong to the same class
|
long |
FP
The total number of pairs in a cluster which do not belong to the same class
|
long |
TN
The total number of pairs in different clusters which belong to different classes
|
long |
TP
The total number of pairs in a cluster which belong to the same class
|
Constructor and Description |
---|
DecisionAnalysis() |
Modifier and Type | Method and Description |
---|---|
String |
getDetailReport()
Get a
String detailing the result. |
net.sf.jasperreports.engine.JasperPrint |
getDetailReport(String title,
String info)
Get a
JasperPrint detailing the result. |
String |
getSummaryReport()
Get a
String summarising the result. |
net.sf.jasperreports.engine.JasperPrint |
getSummaryReport(String title,
String info)
Get a
JasperPrint summarising the result. |
double |
precision() |
double |
recall() |
String |
toString() |
public long TP
public long FP
public long TN
public long FN
public DecisionAnalysis()
public net.sf.jasperreports.engine.JasperPrint getSummaryReport(String title, String info) throws net.sf.jasperreports.engine.JRException
AnalysisResult
JasperPrint
summarising the result.getSummaryReport
in interface AnalysisResult
title
- a title to add to the reportinfo
- information to print at the beginning of the reportString
summarising the resultnet.sf.jasperreports.engine.JRException
public net.sf.jasperreports.engine.JasperPrint getDetailReport(String title, String info) throws net.sf.jasperreports.engine.JRException
AnalysisResult
JasperPrint
detailing the result.getDetailReport
in interface AnalysisResult
title
- a title to add to the reportinfo
- information to print at the beginning of the reportJasperPrint
detailing the result.net.sf.jasperreports.engine.JRException
public String getSummaryReport()
AnalysisResult
String
summarising the result.getSummaryReport
in interface AnalysisResult
String
summarising the resultpublic String getDetailReport()
AnalysisResult
String
detailing the result.getDetailReport
in interface AnalysisResult
String
detailing the resultpublic double precision()
public double recall()