|
|||||||||
| 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.akutan.correlations.test.SpecDecompTest
public class SpecDecompTest
These are the test cases from the paper "The Most General Way to Create a Valid Correlation Matrix for Risk Management and Option Pricing Purposes" by Rebonato and Jaekel, 1999. http://www.quarchome.org/correlationmatrix.pdf
| Constructor Summary | |
|---|---|
SpecDecompTest()
|
|
| Method Summary | |
|---|---|
void |
assertEquals(cern.colt.matrix.DoubleMatrix2D soln,
cern.colt.matrix.DoubleMatrix2D test,
double epsilon)
Helper method to do a cell by cell comparison vs epsilon |
void |
test12x12()
The more complicated 12x12 test case. |
void |
testDecomposition()
The simple 3x3 test case from the paper, note that we agree with all but one of the values. |
void |
testGood()
Here we operate on a known good matrix, we want to make sure we don't change it. |
| 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 |
| Constructor Detail |
|---|
public SpecDecompTest()
| Method Detail |
|---|
public void assertEquals(cern.colt.matrix.DoubleMatrix2D soln,
cern.colt.matrix.DoubleMatrix2D test,
double epsilon)
throws junit.framework.AssertionFailedError
soln - test - epsilon -
junit.framework.AssertionFailedError
public void testGood()
throws java.lang.Exception
java.lang.Exception
public void testDecomposition()
throws java.lang.Exception
java.lang.Exception
public void test12x12()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||