testing.physicsEngine
Class LinearAlgebraTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by testing.physicsEngine.LinearAlgebraTest
All Implemented Interfaces:
junit.framework.Test

public class LinearAlgebraTest
extends junit.framework.TestCase

Tests whether the physics engine's internal linear algebra is implemented correclty.

Author:
Peng Shi

Constructor Summary
LinearAlgebraTest()
           
 
Method Summary
 void testPCA()
          Check if we can compute a 2-D Principal Component Analysis correctly
 void testPCARigorous()
          More rigorous test of the PCA code
 void testVector2f()
          Check if we implemented Vector2f correctly
 
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

LinearAlgebraTest

public LinearAlgebraTest()
Method Detail

testVector2f

public void testVector2f()
Check if we implemented Vector2f correctly


testPCA

public void testPCA()
Check if we can compute a 2-D Principal Component Analysis correctly


testPCARigorous

public void testPCARigorous()
More rigorous test of the PCA code