edu.umbc.cs.maple.utils
Class PairedTTester

java.lang.Object
  extended by org.apache.commons.math.stat.inference.TTestImpl
      extended by edu.umbc.cs.maple.utils.PairedTTester
All Implemented Interfaces:
org.apache.commons.math.stat.inference.TTest

public class PairedTTester
extends org.apache.commons.math.stat.inference.TTestImpl

A class to perform a statistical paired T-test on a set of data.

Copyright (c) 2008 Eric Eaton

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Version:
0.1
Author:
Eric Eaton (EricEaton@umbc.edu)
University of Maryland Baltimore County

Constructor Summary
PairedTTester()
           
 
Method Summary
 void addSample(double sample1value, double sample2value)
          Adds a matched pair of values.
 void addSample1(double value)
          Adds the first number of a pair of values.
 void addSample2(double value)
          Adds the second number of a pair of values.
 double pairedTTest()
          Returns the significance level of a paired t-test of the two samples
 
Methods inherited from class org.apache.commons.math.stat.inference.TTestImpl
df, getDistributionFactory, homoscedasticT, homoscedasticT, homoscedasticT, homoscedasticTTest, homoscedasticTTest, homoscedasticTTest, homoscedasticTTest, pairedT, pairedTTest, pairedTTest, t, t, t, t, t, t, tTest, tTest, tTest, tTest, tTest, tTest, tTest, tTest, tTest, tTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PairedTTester

public PairedTTester()
Method Detail

addSample1

public void addSample1(double value)
Adds the first number of a pair of values. Each pair must be added in the same order using a matched pair of addSample1() and addSample2() function calls.

Parameters:
value -

addSample2

public void addSample2(double value)
Adds the second number of a pair of values. Each pair must be added in the same order using a matched pair of addSample1() and addSample2() function calls.

Parameters:
value -

addSample

public void addSample(double sample1value,
                      double sample2value)
Adds a matched pair of values.

Parameters:
sample1value -
sample2value -

pairedTTest

public double pairedTTest()
                   throws org.apache.commons.math.MathException
Returns the significance level of a paired t-test of the two samples

Returns:
the significance level of the paired t-test of the two samples
Throws:
org.apache.commons.math.MathException