org.itc.irst.tcc.sre.util
Class StatisticalSignificance

java.lang.Object
  extended by org.itc.irst.tcc.sre.util.StatisticalSignificance

public class StatisticalSignificance
extends java.lang.Object

TO DO

Since:
1.0
Version:
%I%, %G%
Author:
Claudio Giuliano

Field Summary
private  double confidence
           
private  java.text.DecimalFormat formatter
           
private  int iterations
           
(package private) static org.apache.log4j.Logger logger
          Define a static logger variable so that it references the Logger instance named StatisticalSignificance.
 
Constructor Summary
StatisticalSignificance(java.io.File goldFile, java.io.File baselineFile, java.io.File preferredFile, int n, double c)
          Creates a StatisticalSignificance object.
 
Method Summary
private  java.util.List copy(java.util.List in)
           
static void main(java.lang.String[] args)
           
private  java.util.List read(java.io.File f)
           
private  void swap(java.util.List y, java.util.List z, java.util.Random rdm)
           
private  double test(java.util.List baseline, java.util.List preferred, java.util.List gold)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger
Define a static logger variable so that it references the Logger instance named StatisticalSignificance.


iterations

private int iterations

confidence

private double confidence

formatter

private java.text.DecimalFormat formatter
Constructor Detail

StatisticalSignificance

public StatisticalSignificance(java.io.File goldFile,
                               java.io.File baselineFile,
                               java.io.File preferredFile,
                               int n,
                               double c)
                        throws java.io.IOException,
                               java.lang.IndexOutOfBoundsException
Creates a StatisticalSignificance object.

Throws:
java.io.IOException
java.lang.IndexOutOfBoundsException
Method Detail

read

private java.util.List read(java.io.File f)
                     throws java.io.IOException
Throws:
java.io.IOException

copy

private java.util.List copy(java.util.List in)

test

private double test(java.util.List baseline,
                    java.util.List preferred,
                    java.util.List gold)

swap

private void swap(java.util.List y,
                  java.util.List z,
                  java.util.Random rdm)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception