org.gcube.dataanalysis.ecoengine.evaluation
Class DistributionQualityAnalysis
java.lang.Object
org.gcube.dataanalysis.ecoengine.interfaces.DataAnalysis
org.gcube.dataanalysis.ecoengine.evaluation.DistributionQualityAnalysis
- All Implemented Interfaces:
- ComputationalAgent, Evaluator
public class DistributionQualityAnalysis
- extends DataAnalysis
Method Summary |
HashMap<String,String> |
analyze()
|
double |
calculateAccuracy(int TP,
int TN,
int FP,
int FN)
|
double |
calculateAUC(double[] scoresOnPresence,
double[] scoresOnAbsence,
boolean produceChart)
|
double |
calculateOmissionRate(int TP,
int FN)
|
double |
calculateSensitivity(int TP,
int FN)
|
double |
calculateSpecificity(int TN,
int FP)
|
String |
getDescription()
|
List<StatisticalType> |
getInputParameters()
|
StatisticalType |
getOutput()
|
List<String> |
getOutputParameters()
|
static void |
main(String[] args)
|
static void |
visualizeResults(HashMap<String,String> results)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistributionQualityAnalysis
public DistributionQualityAnalysis()
getInputParameters
public List<StatisticalType> getInputParameters()
getOutputParameters
public List<String> getOutputParameters()
analyze
public HashMap<String,String> analyze()
throws Exception
- Specified by:
analyze
in class DataAnalysis
- Throws:
Exception
calculateSensitivity
public double calculateSensitivity(int TP,
int FN)
calculateOmissionRate
public double calculateOmissionRate(int TP,
int FN)
calculateSpecificity
public double calculateSpecificity(int TN,
int FP)
calculateAccuracy
public double calculateAccuracy(int TP,
int TN,
int FP,
int FN)
calculateAUC
public double calculateAUC(double[] scoresOnPresence,
double[] scoresOnAbsence,
boolean produceChart)
visualizeResults
public static void visualizeResults(HashMap<String,String> results)
main
public static void main(String[] args)
getOutput
public StatisticalType getOutput()
- Specified by:
getOutput
in interface ComputationalAgent
- Overrides:
getOutput
in class DataAnalysis
getDescription
public String getDescription()
Copyright © 2012. All Rights Reserved.