File indexing completed on 2024-10-13 03:32:28

0001 /*
0002     File                 : ConvolutionTest.h
0003     Project              : LabPlot
0004     Description          : Tests for data convolution
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2018 Stefan Gerlach <stefan.gerlach@uni.kn>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 #ifndef CONVOLUTIONTEST_H
0011 #define CONVOLUTIONTEST_H
0012 
0013 #include <../AnalysisTest.h>
0014 
0015 class ConvolutionTest : public AnalysisTest {
0016     Q_OBJECT
0017 
0018 private Q_SLOTS:
0019     // linear tests
0020     void testLinear();
0021     void testLinear2();
0022     void testLinear_noX();
0023     void testLinear_swapped();
0024     void testLinear_swapped_noX();
0025     void testLinear_norm();
0026     void testLinear_swapped_norm();
0027     void testLinear_wrapMax();
0028     void testLinear_swapped_wrapMax();
0029     void testLinear_wrapCenter();
0030     void testLinear_swapped_wrapCenter();
0031 
0032     // circular tests
0033     void testCircular();
0034     void testCircular2();
0035     void testCircular_noX();
0036     void testCircular_swapped();
0037     void testCircular_swapped_noX();
0038     void testCircular_norm();
0039     void testCircular_swapped_norm();
0040     void testCircular_wrapMax();
0041     void testCircular_swapped_wrapMax();
0042     void testCircular_wrapCenter();
0043     void testCircular_swapped_wrapCenter();
0044 
0045     // deconvolution tests
0046     void testLinearDeconv();
0047     void testLinearDeconv2();
0048     void testLinearDeconv_swapped();
0049     void testLinearDeconv2_swapped();
0050     void testLinearDeconv_norm();
0051     void testCircularDeconv();
0052     void testCircularDeconv2();
0053     void testCircularDeconv_norm();
0054 
0055     void testPerformance();
0056 };
0057 #endif