00001 #ifndef TEST_FITTING_H
00002 #define TEST_FITTING_H
00003
00004 #include <QObject>
00005
00007 class TestFitting : public QObject
00008 {
00009 Q_OBJECT
00010 public:
00012 explicit TestFitting(QObject *parent = 0);
00013
00014 private slots:
00015 void cleanupTestCase ();
00016 void initTestCase ();
00017
00018
00019 void testExactFit01 ();
00020 void testExactFit12 ();
00021 void testExactFit23 ();
00022 void testExactFit34 ();
00023
00024
00025 void testOverfit11 ();
00026 void testOverfit22 ();
00027 void testOverfit33 ();
00028 void testOverfit44 ();
00029
00030
00031 void testUnderfit02 ();
00032 void testUnderfit13 ();
00033 void testUnderfit24 ();
00034 void testUnderfit35 ();
00035
00036 private:
00037 bool generalTest (int order,
00038 int numPoints) const;
00039 };
00040
00041 #endif // TEST_FITTING_H