6 #include "CLevanisoConf.h"
8 #include <boost/bind.hpp>
10 #include <boost/shared_ptr.hpp>
14 using namespace gplib;
21 const int nlayers = abs(*m) / 4;
22 const int nparam = nlayers * 4;
24 for (
int i = 0; i < nparam; ++i)
37 void init(
int* nd,
float* ranges)
47 cerr << e.what() << endl;
54 boost::shared_ptr<PTensor1DMTObjective> PTObjective(
62 boost::shared_ptr<Aniso1DMTObjective> AnisoObjective(
69 const int nparams = nlayers * 4;
75 mtmember.begin() + nlayers);
77 mtmember.begin() + 2 * nlayers);
79 mtmember.begin() + 3 * nlayers);
82 for (
int i = 0; i < nlayers; ++i)
87 for (
int i = 0; i < nlayers; ++i)
90 ranges[2 * i + 2 * nlayers + 1] =
Configuration.maxthick.at(i);
92 for (
int i = 0; i < nlayers; ++i)
95 ranges[2 * i + 4 * nlayers + 1] =
Configuration.maxaniso.at(i);
97 for (
int i = 0; i < nlayers; ++i)
100 ranges[2 * i + 6 * nlayers + 1] =
Configuration.maxstrike.at(i);
102 cout <<
"Init finished ! " << endl;
void SetupMTFitParameters(const tConfObject &Configuration, C1DMTObjective &Objective)
ublas::vector< double > ttranscribed
This is a special objective function to fit phase tensor MT data.
void misfit(float *p, float *misfit, int *m)
These two functions provide the interface between the C++ implementation and the C interfacea of CADI...
virtual void GetData(const std::string filename)
read in data from file, determines format by ending
boost::shared_ptr< PlottableObjective > MTObjective
void init(int *nd, float *ranges)
The class MTStation is used to store the transfer functions and related information for a MT-site...
void GetData(const std::string &filename)
CLevanisoConf Configuration
The basic exception class for all errors that arise in gplib.