org.gcube.dataanalysis.ecoengine.evaluation
Class DistributionQualityAnalysis

java.lang.Object
  extended by org.gcube.dataanalysis.ecoengine.interfaces.DataAnalysis
      extended by org.gcube.dataanalysis.ecoengine.evaluation.DistributionQualityAnalysis
All Implemented Interfaces:
ComputationalAgent, Evaluator

public class DistributionQualityAnalysis
extends DataAnalysis


Field Summary
 
Fields inherited from class org.gcube.dataanalysis.ecoengine.interfaces.DataAnalysis
config, connection, processedRecords, resourceManager, status
 
Constructor Summary
DistributionQualityAnalysis()
           
 
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 org.gcube.dataanalysis.ecoengine.interfaces.DataAnalysis
compute, getInfrastructure, getResourceLoad, getResources, getStatus, init, setConfiguration, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributionQualityAnalysis

public DistributionQualityAnalysis()
Method Detail

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.