00001 /*************************************************************************** 00002 ** 00003 ** This file is part of MonoStation. 00004 ** 00005 ** This file may be distributed and/or modified under the terms of the 00006 ** GNU General Public License version 2 or 3 as published by the Free 00007 ** Software Foundation and appearing in the file LICENSE.GPL included 00008 ** in the packaging of this file. 00009 ** 00010 ** This file is distributed in the hope that it will be useful, but WITHOUT 00011 ** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 ** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00013 ** more details. 00014 ** 00015 ** You should have received a copy of the GNU General Public License 00016 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 00017 ** 00018 ** See http://www.geopsy.org for more information. 00019 ** 00020 ** Created : 2003-12-12 00021 ** Authors: 00022 ** Marc Wathelet 00023 ** Marc Wathelet (ULg, Liège, Belgium) 00024 ** Marc Wathelet (LGIT, Grenoble, France) 00025 ** 00026 ***************************************************************************/ 00027 00028 #ifndef STATISTICRESULTS_H 00029 #define STATISTICRESULTS_H 00030 00031 #include <SciFigs.h> 00032 00033 namespace MonoStation { 00034 00035 class StationResults; 00036 00037 class StatisticResults : public GraphicSheetMenu 00038 { 00039 public: 00040 StatisticResults(QWidget* parent=0); 00041 ~StatisticResults(); 00042 00043 void createObjects(QStringList& graphTitles); 00044 void setStatPlot(int graphIndex); 00045 void setStatPlot(int graphIndex, 00046 const Curve<Point2D>& curve0, 00047 const Curve<Point2D>& curve1, 00048 const Curve<Point2D>& curve2); 00049 inline ParallelBands * frequencyLayer(int graphIndex) const; 00050 inline LineLayer * averageLayer(int graphIndex) const; 00051 00052 void setBandsPlot(int graphIndex, ParallelBands * b); 00053 void setWindowTitle(QString t); 00054 00055 static void studentTest(const StationResults * ref, const StationResults * other, double significance, 00056 const QString& makeUp=QString::null); 00057 protected: 00058 virtual void closeEvent (QCloseEvent * e); 00059 private: 00060 QVector<ParallelBands *> _frequencyLayers; 00061 QVector<LineLayer *> _averageLayers; 00062 }; 00063 00064 inline ParallelBands * StatisticResults::frequencyLayer(int graphIndex) const 00065 { 00066 TRACE; 00067 return _frequencyLayers.at(graphIndex); 00068 } 00069 00070 inline LineLayer * StatisticResults::averageLayer(int graphIndex) const 00071 { 00072 TRACE; 00073 return _averageLayers.at(graphIndex); 00074 } 00075 00076 } // namespace MonoStation 00077 00078 #endif