de.jstacs.classifiers.performanceMeasures
Class MaximumCorrelationCoefficient

java.lang.Object
  extended by de.jstacs.parameters.ParameterSet
      extended by de.jstacs.classifiers.performanceMeasures.AbstractPerformanceMeasure
          extended by de.jstacs.classifiers.performanceMeasures.AbstractTwoClassPerformanceMeasure
              extended by de.jstacs.classifiers.performanceMeasures.AbstractNumericalTwoClassPerformanceMeasure
                  extended by de.jstacs.classifiers.performanceMeasures.MaximumNumericalTwoClassMeasure
                      extended by de.jstacs.classifiers.performanceMeasures.MaximumCorrelationCoefficient
All Implemented Interfaces:
NumericalPerformanceMeasure, PerformanceMeasure, GalaxyConvertible, Storable, Cloneable

public class MaximumCorrelationCoefficient
extends MaximumNumericalTwoClassMeasure
implements NumericalPerformanceMeasure

This class implements the maximum of the correlation coefficient $\frac{ TP*TN - FN*FP }{ \sqrt{ (TP+FN)*(TN+FP)*(TP+FP)*(TN+FN) } }$.

Author:
Jan Grau, Jens Keilwagen

Nested Class Summary
 
Nested classes/interfaces inherited from class de.jstacs.parameters.ParameterSet
ParameterSet.ParameterList
 
Field Summary
 
Fields inherited from class de.jstacs.parameters.ParameterSet
errorMessage, parameters, parent
 
Constructor Summary
MaximumCorrelationCoefficient()
          Constructs a new instance of the performance measure MaximumCorrelationCoefficient.
MaximumCorrelationCoefficient(StringBuffer xml)
          The standard constructor for the interface Storable.
 
Method Summary
protected  double getMeasure(double tp, double fp, double fn, double tn)
          This measure compute the measure for a given confusion matrix
protected  String getMeasureName()
          This method returns a short name of the measure without any parameters.
protected  String getSpecificName()
          This method returns a specific name of the measure including any parameters.
 
Methods inherited from class de.jstacs.classifiers.performanceMeasures.MaximumNumericalTwoClassMeasure
compute, getName
 
Methods inherited from class de.jstacs.classifiers.performanceMeasures.AbstractNumericalTwoClassPerformanceMeasure
compute, compute, compute
 
Methods inherited from class de.jstacs.classifiers.performanceMeasures.AbstractTwoClassPerformanceMeasure
getAllowedNumberOfClasses
 
Methods inherited from class de.jstacs.classifiers.performanceMeasures.AbstractPerformanceMeasure
findSplitIndex, findThreshold, getCollectionOfAllMeasures, getWeight, simpleWeights
 
Methods inherited from class de.jstacs.parameters.ParameterSet
clone, fromGalaxy, fromXML, getAllParameterNames, getComment, getComment, getErrorMessage, getIndex, getName, getName, getNumberOfParameters, getParameterAt, getParameterForName, getParent, hasDefaultOrIsSet, initParameterList, initParameterList, isAtomic, isComparable, parametersLoaded, reset, setParent, toGalaxy, toXML
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.jstacs.classifiers.performanceMeasures.NumericalPerformanceMeasure
compute, compute, compute, compute
 
Methods inherited from interface de.jstacs.classifiers.performanceMeasures.PerformanceMeasure
getAllowedNumberOfClasses, getName
 

Constructor Detail

MaximumCorrelationCoefficient

public MaximumCorrelationCoefficient()
Constructs a new instance of the performance measure MaximumCorrelationCoefficient.


MaximumCorrelationCoefficient

public MaximumCorrelationCoefficient(StringBuffer xml)
                              throws NonParsableException
The standard constructor for the interface Storable. Constructs a MaximumCorrelationCoefficient out of an XML representation.

Parameters:
xml - the XML representation as StringBuffer
Throws:
NonParsableException - if the MaximumCorrelationCoefficient could not be reconstructed out of the StringBuffer xml
Method Detail

getMeasureName

protected String getMeasureName()
Description copied from class: MaximumNumericalTwoClassMeasure
This method returns a short name of the measure without any parameters.

Specified by:
getMeasureName in class MaximumNumericalTwoClassMeasure
Returns:
a short name of the measure without any parameters

getSpecificName

protected String getSpecificName()
Description copied from class: MaximumNumericalTwoClassMeasure
This method returns a specific name of the measure including any parameters.

Specified by:
getSpecificName in class MaximumNumericalTwoClassMeasure
Returns:
a specific name of the measure including any parameters

getMeasure

protected double getMeasure(double tp,
                            double fp,
                            double fn,
                            double tn)
Description copied from class: MaximumNumericalTwoClassMeasure
This measure compute the measure for a given confusion matrix

Specified by:
getMeasure in class MaximumNumericalTwoClassMeasure
Parameters:
tp - true positives
fp - false positives
fn - false negatives
tn - true negative
Returns:
the value of the measure