sugr.test
Class ElementTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bysugr.test.ElementTest
All Implemented Interfaces:
junit.framework.Test

public class ElementTest
extends junit.framework.TestCase

Author:
Bastian Oehler

Field Summary
static int MAXITER
          int MAXITER determines how many iterations there are for calculation of the statstic parts.
static double PRECISION
          double PRECISION for testing statistics.
 
Constructor Summary
ElementTest(java.lang.String arg0)
          Constructor for ElementTest.
 
Method Summary
 void testChangeNullspace()
          Test for void changeNullspace()
 void testCheckCovDim()
          Test for void checkCovDim(Matrix,int)
 void testCheckElement()
          Test for void checkElement(Vector,int) try checkElement and throw an IllegalArgumentException if tests in checkElement fail.
 void testClone()
          Test for Object clone()
 void testNormalizeSphere()
          Test for non-statistic part of void normalizeSphere()
 void testNormalizeSphereComparable()
          Test for non-statistic part of void normalizeSphereComparable()
 void testNormalizeSphereComparableStatistics()
          Test for error propagation of void normalizeSphereComparable()
 void testNormalizeSphereStatistics()
          Test for error propagation of void normalizeSphere()
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAXITER

public static int MAXITER
int MAXITER determines how many iterations there are for calculation of the statstic parts. It should be around 1 000 000 for good results, but this may mean much work for your maschine and some coffee for you, if you are waiting for the results. If MAXITER is set to 1 000 000, it may happen in an 'Out of Memory'-Error!


PRECISION

public static double PRECISION
double PRECISION for testing statistics.

Constructor Detail

ElementTest

public ElementTest(java.lang.String arg0)
Constructor for ElementTest.

Parameters:
arg0 -
Method Detail

testNormalizeSphere

public void testNormalizeSphere()
Test for non-statistic part of void normalizeSphere()


testNormalizeSphereStatistics

public void testNormalizeSphereStatistics()
Test for error propagation of void normalizeSphere()


testNormalizeSphereComparable

public void testNormalizeSphereComparable()
Test for non-statistic part of void normalizeSphereComparable()


testNormalizeSphereComparableStatistics

public void testNormalizeSphereComparableStatistics()
Test for error propagation of void normalizeSphereComparable()


testChangeNullspace

public void testChangeNullspace()
Test for void changeNullspace()


testCheckCovDim

public void testCheckCovDim()
Test for void checkCovDim(Matrix,int)


testCheckElement

public void testCheckElement()
Test for void checkElement(Vector,int) try checkElement and throw an IllegalArgumentException if tests in checkElement fail.


testClone

public void testClone()
Test for Object clone()