File indexing completed on 2024-04-28 15:14:12
0001 /*************************************************************************** 0002 File : NSLDiffTest.h 0003 Project : LabPlot 0004 Description : NSL Tests for smoothing 0005 -------------------------------------------------------------------- 0006 Copyright : (C) 2019 Stefan Gerlach (stefan.gerlach@uni.kn) 0007 ***************************************************************************/ 0008 0009 /*************************************************************************** 0010 * * 0011 * This program is free software; you can redistribute it and/or modify * 0012 * it under the terms of the GNU General Public License as published by * 0013 * the Free Software Foundation; either version 2 of the License, or * 0014 * (at your option) any later version. * 0015 * * 0016 * This program is distributed in the hope that it will be useful, * 0017 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0019 * GNU General Public License for more details. * 0020 * * 0021 * You should have received a copy of the GNU General Public License * 0022 * along with this program; if not, write to the Free Software * 0023 * Foundation, Inc., 51 Franklin Street, Fifth Floor, * 0024 * Boston, MA 02110-1301 USA * 0025 * * 0026 ***************************************************************************/ 0027 #ifndef NSLSMOOTHTEST_H 0028 #define NSLSMOOTHTEST_H 0029 0030 #include "../NSLTest.h" 0031 0032 class NSLSmoothTest : public NSLTest { 0033 Q_OBJECT 0034 0035 private slots: 0036 // moving average tests 0037 void testMA_padnone(); 0038 void testMA_padmirror(); 0039 void testMA_padnearest(); 0040 void testMA_padconstant(); 0041 void testMA_padperiodic(); 0042 // lagged moving average tests 0043 void testMAL_padnone(); 0044 void testMAL_padmirror(); 0045 void testMAL_padnearest(); 0046 void testMAL_padconstant(); 0047 void testMAL_padperiodic(); 0048 // percentile tests 0049 void testPercentile_padnone(); 0050 void testPercentile_padmirror(); 0051 void testPercentile_padnearest(); 0052 void testPercentile_padconstant(); 0053 void testPercentile_padperiodic(); 0054 // Savivitzky-Golay coeff tests 0055 void testSG_coeff31(); 0056 void testSG_coeff51(); 0057 void testSG_coeff53(); 0058 void testSG_coeff73(); 0059 void testSG_coeff74(); 0060 void testSG_coeff92(); 0061 void testSG_coeff94(); 0062 0063 // Savivitzky-Golay modes 0064 void testSG_mode_interp(); 0065 void testSG_mode_mirror(); 0066 void testSG_mode_nearest(); 0067 void testSG_mode_constant(); 0068 void testSG_mode_periodic(); 0069 0070 // performance 0071 void testPerformance_interp(); 0072 void testPerformance_mirror(); 0073 void testPerformance_nearest(); 0074 void testPerformance_constant(); 0075 void testPerformance_periodic(); 0076 private: 0077 QString m_dataDir; 0078 }; 0079 #endif