|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.experiment.PairedStats
A class for storing stats on a paired comparison (t-test and correlation)
Field Summary | |
double |
correlation
The correlation coefficient |
double |
count
The number of data points seen |
double |
differencesProbability
The probability of obtaining the observed differences |
int |
differencesSignificance
A significance indicator: 0 if the differences are not significant > 0 if x significantly greater than y < 0 if x significantly less than y |
Stats |
differencesStats
The stats associated with the paired differences |
double |
sigLevel
The significance level for comparisons |
Stats |
xStats
The stats associated with the data in column 1 |
double |
xySum
The sum of the products |
Stats |
yStats
The stats associated with the data in column 2 |
Constructor Summary | |
PairedStats(double sig)
Creates a new PairedStats object with the supplied significance level. |
Method Summary | |
void |
add(double value1,
double value2)
Add an observed pair of values. |
void |
calculateDerived()
Calculates the derived statistics (significance etc). |
static void |
main(java.lang.String[] args)
Tests the paired stats object from the command line. |
void |
subtract(double value1,
double value2)
Removes an observed pair of values. |
java.lang.String |
toString()
Returns statistics on the paired comparison. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public Stats xStats
public Stats yStats
public Stats differencesStats
public double differencesProbability
public double correlation
public double xySum
public double count
public int differencesSignificance
public double sigLevel
Constructor Detail |
public PairedStats(double sig)
sig
- the significance level for comparisonsMethod Detail |
public void add(double value1, double value2)
value1
- the value from column 1value2
- the value from column 2public void subtract(double value1, double value2)
value1
- the value from column 1value2
- the value from column 2public void calculateDerived()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
args
- ignored.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London