QGpCompatibility/CompatFunctionList.h
Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 **  This file is part of QGpCompatibility.
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-06-10
00021 **  Authors:
00022 **    Marc Wathelet
00023 **    Marc Wathelet (ULg, Liège, Belgium)
00024 **    Marc Wathelet (LGIT, Grenoble, France)
00025 **
00026 ***************************************************************************/
00027 
00028 #ifndef COMPATFunctionList_H
00029 #define COMPATFunctionList_H
00030 
00031 #include "CompatFunction.h"
00032 #include "QGpCompatibilityDLLExport.h"
00033 
00034 namespace QGpCompatibility {
00035 
00036 class QGPCOMPATIBILITY_EXPORT CompatFunctionList :  public QList<CompatFunction *>
00037 {
00038 public:
00039   CompatFunctionList();
00040   CompatFunctionList (const CompatFunctionList& o);
00041   ~CompatFunctionList();
00042   void deleteVectors();
00043   void clear();
00044 
00045   CompatFunctionList& operator=(const CompatFunctionList& o);
00046 
00047   int modesCount(bool multiMode, QString baseName, const QStringList& curveNames, int startAt);
00048   void addXSamples(CompatFunction& xModel, bool addInvalidY, double invalidValue);
00049   void sameSamplingForCurves(CompatFunction& xModel,bool interpole, double invalidValue);
00050   void inverseX();
00051   void average(int iMode,int i, double& average, double& averageStddev,
00052                int& hitsCount, double invalidValue, bool logStat);
00053   int cleanupAverage();
00054 protected:
00055   // For resampling of multi mode ensemble of curves, list of selected curves by mode
00056   QList< QList<CompatFunction *> * > * _selected;
00057 };
00058 
00059 } // namespace QGpCompatibility
00060 
00061 #endif // COMPATFUNCTIONLIST_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines