public class RandomBaselineSMEAnalysis extends Object implements AnalysisResult
Modifier and Type | Field and Description |
---|---|
int[][] |
correct
The correct clustering
|
int[][] |
estimated
The estimation
|
RandomBaselineClusterAnalysis<FScoreAnalysis> |
fscore
F-Score
|
RandomBaselineClusterAnalysis<PurityAnalysis> |
purity
A measure of how pure each cluster is.
|
RandomBaselineClusterAnalysis<RandomIndexAnalysis> |
randIndex |
ClusterStatsAnalysis |
stats
General statistics
|
Constructor and Description |
---|
RandomBaselineSMEAnalysis(int[][] correct,
int[][] estimated)
Construct with the correct assignments and estimated assignments.
|
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. |
String |
toString() |
public RandomBaselineClusterAnalysis<PurityAnalysis> purity
P = 1/N Sigma_k max_j | w_k AND c_j |
Count the true classes of all the elements in a class, make a count of the largest group from each cluster, divide by number of elements in all clusters.
High means: most of the clusters had a high number of a single class Low means: most of the clusters had a roughly equal spread of all the classes
public RandomBaselineClusterAnalysis<FScoreAnalysis> fscore
public RandomBaselineClusterAnalysis<RandomIndexAnalysis> randIndex
public ClusterStatsAnalysis stats
public int[][] correct
public int[][] estimated
public RandomBaselineSMEAnalysis(int[][] correct, int[][] estimated)
correct
- estimated
- 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 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