edu.mit.util.stats
Class ResultTracker

java.lang.Object
  extended by edu.mit.util.stats.Results
      extended by edu.mit.util.stats.ResultTracker

public class ResultTracker
extends Results

Tracks SegmentResults across multiple runs or trials or whatever...

Version:
1.0
Author:
Jacob Eisenstein

Field Summary
 
Fields inherited from class edu.mit.util.stats.Results
ACCURACY, false_negatives, false_positives, FMEASURE, true_negatives, true_positives
 
Constructor Summary
ResultTracker()
           
 
Method Summary
 double[] all_accuracy()
           
 double[] all_falseAlarm()
           
 double[] all_fMeasure()
           
 double[] all_precision()
           
 double[] all_recall()
           
 Results averageRepeatedMeasures()
           
 void combine(Results r)
           
 void combine(ResultTracker r)
           
protected  String getString(ArrayList<Double> v)
           
static void main(String[] argv)
           
protected  double[] makeDoubleArray(ArrayList<Double> v)
           
 String matlabString()
           
 double mean(double[] data)
           
static double pairedTTest(ResultTracker x, ResultTracker y)
          outputs t-score that the distributions of fmeasures are different.
 int size()
           
static double[] toDoubleArray(ArrayList<Double> v)
           
 String toString()
           
 double variance(double[] data)
           
 
Methods inherited from class edu.mit.util.stats.Results
accuracy, combine, falseAlarm, fMeasure, precision, recall, score, total
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultTracker

public ResultTracker()
Method Detail

combine

public void combine(Results r)
Overrides:
combine in class Results

combine

public void combine(ResultTracker r)

averageRepeatedMeasures

public Results averageRepeatedMeasures()

all_accuracy

public double[] all_accuracy()

all_fMeasure

public double[] all_fMeasure()

all_recall

public double[] all_recall()

all_precision

public double[] all_precision()

all_falseAlarm

public double[] all_falseAlarm()

size

public int size()

toDoubleArray

public static double[] toDoubleArray(ArrayList<Double> v)

matlabString

public String matlabString()

mean

public double mean(double[] data)

variance

public double variance(double[] data)

pairedTTest

public static double pairedTTest(ResultTracker x,
                                 ResultTracker y)
outputs t-score that the distributions of fmeasures are different. These results check out with those produced at the website: http://www.physics.csbsju.edu/cgi-bin/stats/Paired_t-test

Parameters:
x - A set of results
y - A set of results
Returns:
t-score that the distributions of fmeasures are different

makeDoubleArray

protected double[] makeDoubleArray(ArrayList<Double> v)

getString

protected String getString(ArrayList<Double> v)

toString

public String toString()
Overrides:
toString in class Results

main

public static void main(String[] argv)


Copyright © 2008 MIT. All Rights Reserved.