File indexing completed on 2024-05-05 16:00:20

0001 /***************************************************************************
0002     File                 : NSLDiffTest.h
0003     Project              : LabPlot
0004     Description          : NSL Tests for numerical differentiation
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 NSLDIFFTEST_H
0028 #define NSLDIFFTEST_H
0029 
0030 #include "../NSLTest.h"
0031 
0032 class NSLDiffTest : public NSLTest {
0033     Q_OBJECT
0034 
0035 private slots:
0036     // first derivative
0037     void testFirst_order2();
0038     void testFirst_order4();
0039     void testFirst_avg();
0040     // second derivative
0041     void testSecond_order1();
0042     void testSecond_order2();
0043     void testSecond_order3();
0044     // higher derivative
0045     void testThird_order2();
0046     void testFourth_order1();
0047     void testFourth_order3();
0048     void testFifth_order2();
0049     void testSixth_order1();
0050     // performance
0051     void testPerformance_first();
0052     void testPerformance_second();
0053     void testPerformance_third();
0054 private:
0055     QString m_dataDir;
0056 };
0057 #endif