|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.math.stat.correlation.PearsonsCorrelationTest
public class PearsonsCorrelationTest
Field Summary | |
---|---|
protected double[] |
longleyData
|
protected double[] |
swissData
|
Constructor Summary | |
---|---|
PearsonsCorrelationTest()
|
Method Summary | |
---|---|
protected org.apache.commons.math.linear.RealMatrix |
createLowerTriangularRealMatrix(double[] data,
int dimension)
|
protected org.apache.commons.math.linear.RealMatrix |
createRealMatrix(double[] data,
int nRows,
int nCols)
|
protected void |
fillUpper(org.apache.commons.math.linear.RealMatrix matrix,
double diagonalValue)
|
void |
testConsistency()
|
void |
testConstant()
Constant column |
void |
testCovarianceConsistency()
Verify that creating correlation from covariance gives same results as direct computation from the original matrix |
void |
testInsufficientData()
Insufficient data |
void |
testLongly()
Test Longley dataset against R. |
void |
testStdErrorConsistency()
Verify that direct t-tests using standard error estimates are consistent with reported p-values |
void |
testSwissFertility()
Test R Swiss fertility dataset against R. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final double[] longleyData
protected final double[] swissData
Constructor Detail |
---|
public PearsonsCorrelationTest()
Method Detail |
---|
public void testLongly() throws Exception
Exception
public void testSwissFertility() throws Exception
Exception
public void testConstant()
public void testInsufficientData()
public void testStdErrorConsistency() throws Exception
Exception
public void testCovarianceConsistency() throws Exception
Exception
public void testConsistency()
protected org.apache.commons.math.linear.RealMatrix createRealMatrix(double[] data, int nRows, int nCols)
protected org.apache.commons.math.linear.RealMatrix createLowerTriangularRealMatrix(double[] data, int dimension)
protected void fillUpper(org.apache.commons.math.linear.RealMatrix matrix, double diagonalValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |