File indexing completed on 2024-12-01 12:27:01

0001 /***************************************************************************
0002     File                 : CorrelationTest.h
0003     Project              : LabPlot
0004     Description          : Tests for data correlation
0005     --------------------------------------------------------------------
0006     Copyright            : (C) 2018 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 CORRELATIONTEST_H
0028 #define CORRELATIONTEST_H
0029 
0030 #include <../AnalysisTest.h>
0031 
0032 class CorrelationTest : public AnalysisTest {
0033     Q_OBJECT
0034 
0035 private slots:
0036     // linear tests
0037     void testLinear();
0038     void testLinear2();
0039     void testLinear_noX();
0040     void testLinear_swapped();
0041 
0042     // circular tests
0043     void testCircular();
0044     void testCircular2();
0045 
0046     // norm
0047     void testLinear_biased();
0048     void testLinear2_biased();
0049     void testLinear_unbiased();
0050     void testLinear2_unbiased();
0051     void testLinear_coeff();
0052     void testLinear2_coeff();
0053     void testCircular_coeff();
0054     void testCircular2_coeff();
0055 
0056     // sampling interval
0057     void testLinear_samplingInterval();
0058     void testLinear2_samplingInterval();
0059     void testCircular_samplingInterval();
0060     void testCircular2_samplingInterval();
0061 
0062     void testPerformance();
0063 };
0064 #endif