|
||||||||||
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
org.apache.commons.math.stat.correlation.SpearmansRankCorrelationTest
public class SpearmansRankCorrelationTest
Test cases for Spearman's rank correlation
Field Summary |
---|
Fields inherited from class org.apache.commons.math.stat.correlation.PearsonsCorrelationTest |
---|
longleyData, swissData |
Constructor Summary | |
---|---|
SpearmansRankCorrelationTest()
|
Method Summary | |
---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
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 |
testSwiss()
Test R swiss fertility dataset. |
Methods inherited from class org.apache.commons.math.stat.correlation.PearsonsCorrelationTest |
---|
createLowerTriangularRealMatrix, createRealMatrix, fillUpper, testSwissFertility |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
Constructor Detail |
---|
public SpearmansRankCorrelationTest()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public void testLongly() throws Exception
testLongly
in class PearsonsCorrelationTest
Exception
public void testSwiss() throws Exception
Exception
public void testConstant()
testConstant
in class PearsonsCorrelationTest
public void testInsufficientData()
testInsufficientData
in class PearsonsCorrelationTest
public void testConsistency()
testConsistency
in class PearsonsCorrelationTest
public void testStdErrorConsistency() throws Exception
PearsonsCorrelationTest
testStdErrorConsistency
in class PearsonsCorrelationTest
Exception
public void testCovarianceConsistency() throws Exception
PearsonsCorrelationTest
testCovarianceConsistency
in class PearsonsCorrelationTest
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |