Unit test with random data for PointIsolationAlg. More...
#include <boost/test/unit_test.hpp>#include "larexamples/Algorithms/RemoveIsolatedSpacePoints/PointIsolationAlg.h"#include "larcorealg/TestUtils/StopWatch.h"#include "cetlib/pow.h"#include <array>#include <random>#include <chrono>#include <ratio>#include <iostream>#include <algorithm>Go to the source code of this file.
Classes | |
| struct | ArgsFixture |
Macros | |
| #define | BOOST_TEST_MODULE ( PointIsolationAlg_test ) |
Functions | |
| template<typename Engine , typename Coord = float> | |
| void | PointIsolationTest (Engine &generator, unsigned int nPoints, std::vector< Coord > const &radii) |
| BOOST_FIXTURE_TEST_CASE (PointIsolationTestCase, ArgsFixture) | |
Unit test with random data for PointIsolationAlg.
This test populate datasets with random data and tests the isolation algorithm with them.
The test accepts one optional argument:
PointIsolationAlg_test [seed]
to set the random seed to a particular value.
Definition in file PointIsolationAlgRandom_test.cc.
| #define BOOST_TEST_MODULE ( PointIsolationAlg_test ) |
Definition at line 21 of file PointIsolationAlgRandom_test.cc.
| BOOST_FIXTURE_TEST_CASE | ( | PointIsolationTestCase | , |
| ArgsFixture | |||
| ) |
Definition at line 156 of file PointIsolationAlgRandom_test.cc.
| void PointIsolationTest | ( | Engine & | generator, |
| unsigned int | nPoints, | ||
| std::vector< Coord > const & | radii | ||
| ) |
Definition at line 57 of file PointIsolationAlgRandom_test.cc.
1.8.5