sugr.test
Class Plane_3DTest

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

public class Plane_3DTest
extends junit.framework.TestCase

Tests for class Plane_3D. Most important are the constructors which construct a plane out of other entities. The rest is quite similar to tests for Point_3D. Uses: TestStatistics.class and TestTools.class.

Author:
Achim Königs

Field Summary
static int MAXITER
          int MAXITER determines how many iterations there are for calculation of the statstic parts.
 
Constructor Summary
Plane_3DTest(java.lang.String arg0)
          Constructor for Plane_3DTest.
 
Method Summary
 boolean helpPlane_3DLine_3DLine_3DStatistics(Line_3D line1, Line_3D line2, double sigma)
          Method to test the statistic reasoning of a plane out of two uncertain lines.
 boolean helpPlane_3DLine_3DPoint_3DStatistics(Line_3D line, Point_3D point, double sigma)
          Method to test the statistic reasoning of a plane out of an uncertain line and an uncertain point.
 boolean helpPlane_3DPoint_3DLine_3DStatistics(Point_3D point, Line_3D line, double sigma)
          Method to test the statistic reasoning of a plane out of an uncertain line and an uncertain point.
 boolean helpPlane_3DPoint_3DPoint_3DPoint_3DStatistics(Point_3D point1, Point_3D point2, Point_3D point3, double sigma)
          Method to test the statistic reasoning of a plane out of three uncertain points.
 void testCopy()
          Test for copy() Copys plane and then changes original, to secure that it is a real copy not only reference.
 void testGetDegreesOfFreedom()
          Test for getDegreesOfFreedom.
 void testGetDimension()
          Test for getDimension.
 void testGetDistance()
          Test for getDistance Tests the Distance between a point and a plane one million times.
 void testGetDistanceToOrigin()
          Test for getDistanceToOrigin Test the distance to origin for one million different planes.
 void testGetDofOfRelation()
          Test for getDofOfRelation Only one plane, because value doesn't base on values of that plane
 void testGetEuclideanPart()
          Test for getEuclideanPart
 void testGetHomogeneousPart()
          Test for getHomogeneousPart()
 void testGetJacobianOfRelationClassClass()
          Test for Matrix getJacobianOfRelation(Class, Class) First tests if the jacobians are right with some planes, lines and points using the constraint f(firstEntity)*secondEntity=g(secondEntity)*firstEntity=0 then tests all jacobian matrices value for value.
 void testNormalizeEuclidean()
          Test of normalizeEuclidean First test the calculation of sure values over one million different points.
 void testPi()
          Test for Matrix Pi()
 void testPiDual()
          Test for Matrix PiDual()
 void testPiDualVector()
          Test for Matrix PiDual(Vector)
 void testPiVector()
          Test for Matrix Pi(Vector)
 void testPlane_3D()
          Test for void Plane_3D()
 void testPlane_3Ddoubledoubledouble()
          Test for void Plane_3D(double, double, double)
 void testPlane_3Ddoubledoubledoubledouble()
          Test for void Plane_3D(double, double, double, double)
 void testPlane_3DdoubledoubledoubledoubleMatrix()
          Test for void Plane_3D(double, double, double, double, Matrix)
 void testPlane_3DdoubledoubledoubleMatrix()
          Test for void Plane_3D(double, double, double, Matrix)
 void testPlane_3DLine_3DPoint_3D()
          Test for void Plane_3D(Line_3D, Point_3D) Tests the reasoning of a plane out of a point and a line with help of TestStatistics.
 void testPlane_3DPoint_3DLine_3D()
          Test for void Plane_3D(Point_3D, Line_3D) Tests the reasoning of a plane out of a point and a line with help of TestStatistics.
 void testPlane_3DPoint_3DPoint_3DPoint_3D()
          Test for void Plane_3D(Point_3D, Point_3D, Point_3D) Tests the geometric reasoning of a plane out of three points
 void testPlane_3DVectorMatrix()
          Test for void Plane_3D(Vector, Matrix)
 
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 100 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.

Constructor Detail

Plane_3DTest

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

Parameters:
arg0 -
Method Detail

helpPlane_3DPoint_3DLine_3DStatistics

public boolean helpPlane_3DPoint_3DLine_3DStatistics(Point_3D point,
                                                     Line_3D line,
                                                     double sigma)
Method to test the statistic reasoning of a plane out of an uncertain line and an uncertain point.

Parameters:
point - - the point
line - - the line to be connected to the point
Returns:
- true if test is successful

helpPlane_3DLine_3DPoint_3DStatistics

public boolean helpPlane_3DLine_3DPoint_3DStatistics(Line_3D line,
                                                     Point_3D point,
                                                     double sigma)
Method to test the statistic reasoning of a plane out of an uncertain line and an uncertain point.

Parameters:
line - - the line to be connected to the point
point - - the point
Returns:
- true if test is successful

helpPlane_3DLine_3DLine_3DStatistics

public boolean helpPlane_3DLine_3DLine_3DStatistics(Line_3D line1,
                                                    Line_3D line2,
                                                    double sigma)
Method to test the statistic reasoning of a plane out of two uncertain lines.

Parameters:
line1 - - first line to be crossed with second line
line2 - - second line
Returns:
- true if test is successful

helpPlane_3DPoint_3DPoint_3DPoint_3DStatistics

public boolean helpPlane_3DPoint_3DPoint_3DPoint_3DStatistics(Point_3D point1,
                                                              Point_3D point2,
                                                              Point_3D point3,
                                                              double sigma)
Method to test the statistic reasoning of a plane out of three uncertain points.

Parameters:
point1 - - the first point
point2 - - the second point
point3 - - the third point
Returns:
- true if test is successful

testGetDegreesOfFreedom

public void testGetDegreesOfFreedom()
Test for getDegreesOfFreedom.


testGetDimension

public void testGetDimension()
Test for getDimension.


testGetEuclideanPart

public void testGetEuclideanPart()
Test for getEuclideanPart


testGetHomogeneousPart

public void testGetHomogeneousPart()
Test for getHomogeneousPart()


testGetJacobianOfRelationClassClass

public void testGetJacobianOfRelationClassClass()
Test for Matrix getJacobianOfRelation(Class, Class) First tests if the jacobians are right with some planes, lines and points using the constraint f(firstEntity)*secondEntity=g(secondEntity)*firstEntity=0 then tests all jacobian matrices value for value.


testGetDofOfRelation

public void testGetDofOfRelation()
Test for getDofOfRelation Only one plane, because value doesn't base on values of that plane


testNormalizeEuclidean

public void testNormalizeEuclidean()
Test of normalizeEuclidean First test the calculation of sure values over one million different points. Then test the calculation of covariances with help of iteration for some points.


testGetDistance

public void testGetDistance()
Test for getDistance Tests the Distance between a point and a plane one million times.


testPlane_3DVectorMatrix

public void testPlane_3DVectorMatrix()
Test for void Plane_3D(Vector, Matrix)


testPlane_3Ddoubledoubledoubledouble

public void testPlane_3Ddoubledoubledoubledouble()
Test for void Plane_3D(double, double, double, double)


testPlane_3DdoubledoubledoubledoubleMatrix

public void testPlane_3DdoubledoubledoubledoubleMatrix()
Test for void Plane_3D(double, double, double, double, Matrix)


testPlane_3Ddoubledoubledouble

public void testPlane_3Ddoubledoubledouble()
Test for void Plane_3D(double, double, double)


testPlane_3DdoubledoubledoubleMatrix

public void testPlane_3DdoubledoubledoubleMatrix()
Test for void Plane_3D(double, double, double, Matrix)


testPlane_3DPoint_3DLine_3D

public void testPlane_3DPoint_3DLine_3D()
Test for void Plane_3D(Point_3D, Line_3D) Tests the reasoning of a plane out of a point and a line with help of TestStatistics.


testPlane_3DLine_3DPoint_3D

public void testPlane_3DLine_3DPoint_3D()
Test for void Plane_3D(Line_3D, Point_3D) Tests the reasoning of a plane out of a point and a line with help of TestStatistics.


testPlane_3DPoint_3DPoint_3DPoint_3D

public void testPlane_3DPoint_3DPoint_3DPoint_3D()
Test for void Plane_3D(Point_3D, Point_3D, Point_3D) Tests the geometric reasoning of a plane out of three points


testPlane_3D

public void testPlane_3D()
Test for void Plane_3D()


testCopy

public void testCopy()
Test for copy() Copys plane and then changes original, to secure that it is a real copy not only reference.


testPi

public void testPi()
Test for Matrix Pi()


testPiVector

public void testPiVector()
Test for Matrix Pi(Vector)


testPiDual

public void testPiDual()
Test for Matrix PiDual()


testPiDualVector

public void testPiDualVector()
Test for Matrix PiDual(Vector)


testGetDistanceToOrigin

public void testGetDistanceToOrigin()
Test for getDistanceToOrigin Test the distance to origin for one million different planes.