icb-stats API icb-stats-31 (20120309094430)

edu.cornell.med.icb.stat
Class SensitivityCalculator

java.lang.Object
  extended by edu.cornell.med.icb.stat.PredictionStatisticCalculator
      extended by edu.cornell.med.icb.stat.SensitivityCalculator

public class SensitivityCalculator
extends PredictionStatisticCalculator

Calculates the specificity of predictions.

Author:
Fabien Campagne Date: Apr 23, 2008 Time: 3:23:25 PM

Field Summary
 
Fields inherited from class edu.cornell.med.icb.stat.PredictionStatisticCalculator
highestStatisticIsBest, optimalThreshold, statistic, zero
 
Constructor Summary
SensitivityCalculator()
           
 
Method Summary
 double evaluateSensitivity(double threshold, double[] decisionValues, double[] labels)
          Evaluate the sensitivity of predictions at a given decision function threshold.
 double evaluateStatisticAtThreshold(double threshold, double[] decisionValues, double[] labels)
          Evaluate the statistic for a given decision function threshold.
 String getMeasureName()
           
 
Methods inherited from class edu.cornell.med.icb.stat.PredictionStatisticCalculator
evaluateContingencyTable, evaluateStatisticAtThreshold, predictivePotential, thresholdIndependentStatistic, thresholdIndependentStatistic, thresholdIndependentStatisticStd, thresholdIndependentStatisticSte
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SensitivityCalculator

public SensitivityCalculator()
Method Detail

getMeasureName

public String getMeasureName()
Specified by:
getMeasureName in class PredictionStatisticCalculator

evaluateSensitivity

public double evaluateSensitivity(double threshold,
                                  double[] decisionValues,
                                  double[] labels)
Evaluate the sensitivity of predictions at a given decision function threshold.

Parameters:
threshold -
decisionValues -
labels -
Returns:
sensitivity of the prediction at threshold.

evaluateStatisticAtThreshold

public double evaluateStatisticAtThreshold(double threshold,
                                           double[] decisionValues,
                                           double[] labels)
Description copied from class: PredictionStatisticCalculator
Evaluate the statistic for a given decision function threshold.

Specified by:
evaluateStatisticAtThreshold in class PredictionStatisticCalculator

icb-stats API icb-stats-31 (20120309094430)

Copyright © 2008-2012 Institute for Computational Biomedicine, All Rights Reserved.