Tests the classes in StatCollector.h. More...
#include <array>#include <valarray>#include <utility>#include <memory>#include <initializer_list>#include <tuple>#include <stdexcept>#include <boost/test/unit_test.hpp>#include "lardataalg/Utilities/StatCollector.h"Go to the source code of this file.
Macros | |
| #define | BOOST_TEST_MODULE ( StatCollector_test ) |
Functions | |
| template<typename T , typename W > | |
| void | CheckStats (lar::util::StatCollector< T, W > const &stats, int n, W weights, W sum, W sumsq, W rms) |
| template<typename T , typename W > | |
| void | CheckStats (lar::util::StatCollector2D< T, W > const &stats, int n, W weights, W sumX, W sumsqX, W rmsX, W sumY, W sumsqY, W rmsY, W sumXY, W cov, W lin_corr) |
| template<typename T , typename W = T> | |
| void | StatCollectorTest () |
| Tests StatCollector object with a known input. More... | |
| template<typename T , typename W = T> | |
| void | StatCollector2DTest () |
| Tests StatCollector2D object with a known input. More... | |
| template<typename T > | |
| void | MinMaxCollectorTest () |
| Tests MinMaxCollector object with a known input. More... | |
| BOOST_AUTO_TEST_CASE (StatCollectorPureIntegerTest) | |
| BOOST_AUTO_TEST_CASE (StatCollectorIntegerTest) | |
| BOOST_AUTO_TEST_CASE (StatCollectorIntegerWeightsTest) | |
| BOOST_AUTO_TEST_CASE (StatCollectorRealTest) | |
| BOOST_AUTO_TEST_CASE (StatCollector2DPureIntegerTest) | |
| BOOST_AUTO_TEST_CASE (StatCollector2DIntegerTest) | |
| BOOST_AUTO_TEST_CASE (StatCollector2DIntegerWeightsTest) | |
| BOOST_AUTO_TEST_CASE (StatCollector2DRealTest) | |
| BOOST_AUTO_TEST_CASE (MinMaxCollectorIntegerTest) | |
| BOOST_AUTO_TEST_CASE (MinMaxCollectorRealTest) | |
Tests the classes in StatCollector.h.
See http://www.boost.org/libs/test for the Boost test library home page.
Timing: not given yet
Definition in file StatCollector_test.cc.
| #define BOOST_TEST_MODULE ( StatCollector_test ) |
Definition at line 34 of file StatCollector_test.cc.
| BOOST_AUTO_TEST_CASE | ( | StatCollectorPureIntegerTest | ) |
Definition at line 548 of file StatCollector_test.cc.
| BOOST_AUTO_TEST_CASE | ( | StatCollectorIntegerTest | ) |
Definition at line 552 of file StatCollector_test.cc.
| BOOST_AUTO_TEST_CASE | ( | StatCollectorIntegerWeightsTest | ) |
Definition at line 556 of file StatCollector_test.cc.
| BOOST_AUTO_TEST_CASE | ( | StatCollectorRealTest | ) |
Definition at line 560 of file StatCollector_test.cc.
| BOOST_AUTO_TEST_CASE | ( | StatCollector2DPureIntegerTest | ) |
Definition at line 568 of file StatCollector_test.cc.
| BOOST_AUTO_TEST_CASE | ( | StatCollector2DIntegerTest | ) |
Definition at line 572 of file StatCollector_test.cc.
| BOOST_AUTO_TEST_CASE | ( | StatCollector2DIntegerWeightsTest | ) |
Definition at line 576 of file StatCollector_test.cc.
| BOOST_AUTO_TEST_CASE | ( | StatCollector2DRealTest | ) |
Definition at line 580 of file StatCollector_test.cc.
| BOOST_AUTO_TEST_CASE | ( | MinMaxCollectorIntegerTest | ) |
Definition at line 588 of file StatCollector_test.cc.
| BOOST_AUTO_TEST_CASE | ( | MinMaxCollectorRealTest | ) |
Definition at line 592 of file StatCollector_test.cc.
| void CheckStats | ( | lar::util::StatCollector< T, W > const & | stats, |
| int | n, | ||
| W | weights, | ||
| W | sum, | ||
| W | sumsq, | ||
| W | rms | ||
| ) |
Definition at line 48 of file StatCollector_test.cc.
| void CheckStats | ( | lar::util::StatCollector2D< T, W > const & | stats, |
| int | n, | ||
| W | weights, | ||
| W | sumX, | ||
| W | sumsqX, | ||
| W | rmsX, | ||
| W | sumY, | ||
| W | sumsqY, | ||
| W | rmsY, | ||
| W | sumXY, | ||
| W | cov, | ||
| W | lin_corr | ||
| ) |
Definition at line 88 of file StatCollector_test.cc.
| void MinMaxCollectorTest | ( | ) |
Tests MinMaxCollector object with a known input.
Definition at line 446 of file StatCollector_test.cc.
| void StatCollector2DTest | ( | ) |
Tests StatCollector2D object with a known input.
| T | type of the stat collector data |
| W | type of the stat collector weight |
Definition at line 270 of file StatCollector_test.cc.
| void StatCollectorTest | ( | ) |
Tests StatCollector object with a known input.
| T | type of the stat collector data |
| W | type of the stat collector weight |
Definition at line 160 of file StatCollector_test.cc.
1.8.11