QGpCompatibility/CompatDispersionData.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-05-19
00021 **  Authors:
00022 **    Marc Wathelet
00023 **    Marc Wathelet (ULg, Liège, Belgium)
00024 **    Marc Wathelet (LGIT, Grenoble, France)
00025 **
00026 ***************************************************************************/
00027 
00028 #ifndef DISPERSIONDATA_H
00029 #define DISPERSIONDATA_H
00030 
00031 #include "QGpCompatibilityDLLExport.h"
00032 #include "CompatDispersion.h"
00033 #include "CompatMultiModalData.h"
00034 
00035 namespace QGpCompatibility {
00036 
00037 class QGPCOMPATIBILITY_EXPORT CompatDispersionData : public CompatDispersion, public CompatMultiModalData
00038 {
00039 public:
00041   CompatDispersionData():
00042   CompatDispersion(), CompatMultiModalData() {}
00044   CompatDispersionData(int modesCount,int omegasCount):
00045       CompatDispersion(modesCount, omegasCount),
00046   CompatMultiModalData(modesCount, omegasCount) {}
00048   CompatDispersionData(const CompatDispersionData * o,int modesCount):
00049       CompatDispersion(o, modesCount),
00050   CompatMultiModalData(o, modesCount,0) {}
00052   CompatDispersionData(const CompatMultiModalCurves * o):
00053       CompatDispersion(o),
00054   CompatMultiModalData(o) {}
00055   void valuesToData() {CompatMultiModalData::valuesToData(this);}
00056   void valuesToData(CompatMultiModalCurves * o)
00057   {CompatMultiModalData::valuesToData(o);}
00058   // Compatibility with new framework
00059   ModalCurve curve(int iMode);
00062   double misfit(int iMin, int iMax, FILE * flog);
00064   double misfit(FILE * flog)
00065   {
00066     return misfit(0,CompatMultiModalFrequency::_omegasCount-1,flog);
00067   }
00070   double closestModeMisfit(bool strictModeJumping, FILE * flog);
00075   //void loadHerrmann(char * filename);
00077   //void saveHerrmann(char * fileName);
00078   void convertStddev();
00079   double minDataFrequency();
00080   double maxDataFrequency();
00081   QVector<double> * groupSlowness(int iMode);
00082 /*protected:
00083   virtual const QString& xml_tagName() const {return xmlDispersionDataTag;}
00084   static const QString xmlDispersionDataTag;
00085   virtual void xml_writeProperties(XML_WRITEPROPERTIES_ARGS) const;
00086   virtual bool xml_setProperty(CompatStringSection& propertyName,
00087                                CompatStringSection& content);*/
00088 };
00089 
00090 } // namespace QGpCompatibility
00091 
00092 #endif // COMPATDISPERSIONDATA_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines