Engauge Digitizer  2
TestCorrelation.h
1 #ifndef TEST_CORRELATION_H
2 #define TEST_CORRELATION_H
3 
4 #include <QObject>
5 
7 class TestCorrelation : public QObject
8 {
9  Q_OBJECT
10 public:
12  explicit TestCorrelation(QObject *parent = 0);
13 
14 signals:
15 
16 private slots:
17  void cleanupTestCase ();
18  void initTestCase ();
19  void loadSinusoid (double function [],
20  int n,
21  int center) const;
22  void loadThreeTriangles (double function [],
23  int n,
24  int center) const;
25 
26  void testShiftSinusoidNonPowerOf2 ();
27  void testShiftSinusoidPowerOf2 ();
28  void testShiftThreeTrianglesNonPowerOf2 ();
29  void testShiftThreeTrianglesPowerOf2 ();
30 
31 private:
32 
33 };
34 
35 #endif // TEST_CORRELATION_H
Unit tests of fast correlation algorithm.
TestCorrelation(QObject *parent=0)
Single constructor.