sugr.test
Class EntityTest

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

public class EntityTest
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
EntityTest(java.lang.String arg0)
          Constructor for ElementTest.
 
Method Summary
 void testGetNormOfEuclideanPart()
          Test for double getNormOfEuclideanPart()
 void testGetNormOfHomogeneousPart()
          Test for double getNormOfHomogeneousPart()
 void testNormalizeEuclideanComparable()
          Test for non-statistical part of void normalizeEuclideanComparable()
 void testNormalizeEuclideanComparableStatistics()
          Test for error propagation of void normalizeEuclideanComparable()
 
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

EntityTest

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

Parameters:
arg0 -
Method Detail

testGetNormOfEuclideanPart

public void testGetNormOfEuclideanPart()
Test for double getNormOfEuclideanPart()


testGetNormOfHomogeneousPart

public void testGetNormOfHomogeneousPart()
Test for double getNormOfHomogeneousPart()


testNormalizeEuclideanComparable

public void testNormalizeEuclideanComparable()
Test for non-statistical part of void normalizeEuclideanComparable()


testNormalizeEuclideanComparableStatistics

public void testNormalizeEuclideanComparableStatistics()
Test for error propagation of void normalizeEuclideanComparable()