GPLIB++
Aniso1DMTObjective.h
Go to the documentation of this file.
1 #ifndef ANISO1DMTOBJECTIVE_H_
2 #define ANISO1DMTOBJECTIVE_H_
3 #include "C1DMTObjective.h"
4 #include "C1DAnisoMTSynthData.h"
5 
6 namespace gplib
7  {
9  {
10  private:
11  virtual void CalcSynthData(const ttranscribed &member);
12  C1DAnisoMTSynthData AnisoMTSynth;
13  virtual MTStation &GetMTSynth()
14  {
15  return AnisoMTSynth;
16  }
17  public:
20  explicit Aniso1DMTObjective(const MTStation &LocalMTData);
21  virtual ~Aniso1DMTObjective();
22  virtual Aniso1DMTObjective *clone() const
23  {
24  return new Aniso1DMTObjective(*this);
25  }
26  //! write the current model to a file
27  virtual void WriteModel(const std::string &filename)
28  {
29  AnisoMTSynth.WriteModel(filename);
30  }
31  //! write the current model for plotting to a file
32  virtual void WritePlot(const std::string &filename)
33  {
34  AnisoMTSynth.WritePlot(filename);
35  }
36  //! Write current data to a file
37  virtual void WriteData(const std::string &filename)
38  {
39  AnisoMTSynth.WriteAsMtt(filename);
40  }
41  };
42  }
43 #endif /*ANISO1DMTOBJECTIVE_H_*/
void WritePlot(std::string filename)
ublas::vector< double > ttranscribed
Definition: gentypes.h:21
virtual void WritePlot(const std::string &filename)
write the current model for plotting to a file
void WriteModel(std::string filename)
virtual void WriteModel(const std::string &filename)
write the current model to a file
Aniso1DMTObjective(const Aniso1DMTObjective &Old)
Calculate response of a 1D anisotropic model, code is based on Pek and Santos fortran code...
virtual Aniso1DMTObjective * clone() const
We need clone and create for building an array of derived objects, see FAQ lite 20.8, the return type depends on the derived class.
Aniso1DMTObjective & operator=(const Aniso1DMTObjective &source)
The class MTStation is used to store the transfer functions and related information for a MT-site...
Definition: MTStation.h:17
void WriteAsMtt(const std::string filename)
Write data in goettingen .mtt format.
Definition: MTStation.cpp:681
C1DMTObjective is the base class for MT misfit calculations from 1D models, it provides common functi...
virtual void WriteData(const std::string &filename)
Write current data to a file.