File indexing completed on 2024-04-28 03:48:21

0001 /*
0002     File                 : NSLDiffTest.h
0003     Project              : LabPlot
0004     Description          : NSL Tests for smoothing
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2019 Stefan Gerlach <stefan.gerlach@uni.kn>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 #ifndef NSLSMOOTHTEST_H
0011 #define NSLSMOOTHTEST_H
0012 
0013 #include "../NSLTest.h"
0014 
0015 class NSLSmoothTest : public NSLTest {
0016     Q_OBJECT
0017 
0018 private Q_SLOTS:
0019     // moving average tests
0020     void testMA_padnone();
0021     void testMA_padmirror();
0022     void testMA_padnearest();
0023     void testMA_padconstant();
0024     void testMA_padperiodic();
0025     // lagged moving average tests
0026     void testMAL_padnone();
0027     void testMAL_padmirror();
0028     void testMAL_padnearest();
0029     void testMAL_padconstant();
0030     void testMAL_padperiodic();
0031     // percentile tests
0032     void testPercentile_padnone();
0033     void testPercentile_padmirror();
0034     void testPercentile_padnearest();
0035     void testPercentile_padconstant();
0036     void testPercentile_padperiodic();
0037     // Savivitzky-Golay coeff tests
0038     void testSG_coeff31();
0039     void testSG_coeff51();
0040     void testSG_coeff53();
0041     void testSG_coeff73();
0042     void testSG_coeff74();
0043     void testSG_coeff92();
0044     void testSG_coeff94();
0045 
0046     // Savivitzky-Golay modes
0047     void testSG_mode_interp();
0048     void testSG_mode_mirror();
0049     void testSG_mode_nearest();
0050     void testSG_mode_constant();
0051     void testSG_mode_periodic();
0052 
0053     // performance
0054     void testPerformance_interp();
0055     void testPerformance_mirror();
0056     void testPerformance_nearest();
0057     void testPerformance_constant();
0058     void testPerformance_periodic();
0059 };
0060 #endif