source: src/Fragmentation/Exporters/unittests/SphericalPointDistributionUnitTest.hpp@ a2f8a9

Last change on this file since a2f8a9 was a2f8a9, checked in by Frederik Heber <heber@…>, 11 years ago

Added calculation of center of minimum distance by bisection.

  • this will give us a unique a definite point independent of the (rotational) position of the point set on the unit sphere.
  • added unit test.
  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[11cc05]1/*
2 * SphericalPointDistributionUnitTest.hpp
3 *
4 * Created on: May 29, 2014
5 * Author: heber
6 */
7
8#ifndef SPHERICALPOINTDISTRIBUTIONUNITTEST_HPP_
9#define SPHERICALPOINTDISTRIBUTIONUNITTEST_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16
17#include <cppunit/extensions/HelperMacros.h>
18
19/********************************************** Test classes **************************************/
20
21class SphericalPointDistributionTest : public CppUnit::TestFixture
22{
23 CPPUNIT_TEST_SUITE( SphericalPointDistributionTest) ;
[a2f8a9]24 CPPUNIT_TEST( calculateCenterOfMinimumDistanceTest );
[3da643]25 CPPUNIT_TEST ( areEqualToWithinBoundsTest );
[1ae9aa]26 CPPUNIT_TEST ( joinPointsTest );
[11cc05]27 CPPUNIT_TEST ( matchSphericalPointDistributionsTest_2 );
28 CPPUNIT_TEST ( matchSphericalPointDistributionsTest_3 );
[d734ff]29 CPPUNIT_TEST ( matchSphericalPointDistributionsTest_4 );
30 CPPUNIT_TEST ( matchSphericalPointDistributionsTest_5 );
31 CPPUNIT_TEST ( matchSphericalPointDistributionsTest_6 );
32 CPPUNIT_TEST ( matchSphericalPointDistributionsTest_7 );
33 CPPUNIT_TEST ( matchSphericalPointDistributionsTest_8 );
[23c605]34 CPPUNIT_TEST ( matchSphericalPointDistributionsTest_multiple );
[11cc05]35 CPPUNIT_TEST_SUITE_END();
36
37public:
38 void setUp();
39 void tearDown();
[a2f8a9]40 void calculateCenterOfMinimumDistanceTest();
[3da643]41 void areEqualToWithinBoundsTest();
[1ae9aa]42 void joinPointsTest();
[11cc05]43 void matchSphericalPointDistributionsTest_2();
44 void matchSphericalPointDistributionsTest_3();
[d734ff]45 void matchSphericalPointDistributionsTest_4();
46 void matchSphericalPointDistributionsTest_5();
47 void matchSphericalPointDistributionsTest_6();
48 void matchSphericalPointDistributionsTest_7();
49 void matchSphericalPointDistributionsTest_8();
[23c605]50 void matchSphericalPointDistributionsTest_multiple();
[11cc05]51
52private:
53};
54
55#endif /* SPHERICALPOINTDISTRIBUTIONUNITTEST_HPP_ */
Note: See TracBrowser for help on using the repository browser.