|
||||||||||
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.linear.EigenDecompositionImplTest
public class EigenDecompositionImplTest
Constructor Summary | |
---|---|
EigenDecompositionImplTest(String name)
|
Method Summary | |
---|---|
protected void |
checkEigenValues(double[] targetValues,
org.apache.commons.math.linear.EigenDecomposition ed,
double tolerance)
Verifies that the given EigenDecomposition has eigenvalues equivalent to the targetValues, ignoring the order of the values and allowing values to differ by tolerance. |
protected void |
checkEigenVector(double[] eigenVector,
org.apache.commons.math.linear.EigenDecomposition ed,
double tolerance)
Returns true iff eigenVector is a scalar multiple of one of the columns of ed.getV(). |
static org.apache.commons.math.linear.RealMatrix |
createDiagonalMatrix(double[] diagonal,
int rows,
int columns)
|
static org.apache.commons.math.linear.RealMatrix |
createOrthogonalMatrix(Random r,
int size)
|
void |
setUp()
|
static junit.framework.Test |
suite()
|
void |
tearDown()
|
void |
testAEqualVDVt()
test A = VDVt |
void |
testBigMatrix()
test eigenvalues for a big matrix. |
void |
testDiagonal()
test diagonal matrix |
void |
testDimension1()
|
void |
testDimension2()
|
void |
testDimension3()
|
void |
testDimension4WithoutSplit()
|
void |
testDimension4WithSplit()
|
void |
testDimensions()
test dimensions |
void |
testDistinctEigenvalues()
Matrix with eigenvalues {2, 0, 12} |
void |
testEigenvalues()
test eigenvalues |
void |
testEigenvectors()
test eigenvectors |
void |
testRepeatedEigenvalue()
Matrix with eigenvalues {8, -1, -1} |
void |
testTridiagonal()
test a matrix already in tridiagonal form. |
void |
testVOrthogonal()
test that V is orthogonal |
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 EigenDecompositionImplTest(String name)
Method Detail |
---|
public static junit.framework.Test suite()
public void testDimension1()
public void testDimension2()
public void testDimension3()
public void testDimension4WithSplit()
public void testDimension4WithoutSplit()
public void testTridiagonal()
public void testDimensions()
public void testEigenvalues()
public void testBigMatrix()
public void testEigenvectors()
public void testAEqualVDVt()
public void testVOrthogonal()
public void testDiagonal()
public void testRepeatedEigenvalue()
public void testDistinctEigenvalues()
protected void checkEigenValues(double[] targetValues, org.apache.commons.math.linear.EigenDecomposition ed, double tolerance)
protected void checkEigenVector(double[] eigenVector, org.apache.commons.math.linear.EigenDecomposition ed, double tolerance)
public void setUp()
setUp
in class junit.framework.TestCase
public void tearDown()
tearDown
in class junit.framework.TestCase
public static org.apache.commons.math.linear.RealMatrix createOrthogonalMatrix(Random r, int size)
public static org.apache.commons.math.linear.RealMatrix createDiagonalMatrix(double[] diagonal, int rows, int columns)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |