GPLIB++
|
This is a special objective function to fit phase tensor MT data. More...
#include <PTensor1DMTObjective.h>
Public Member Functions | |
void | SetErrorLevel (const double e) |
Set the minimum relative error. More... | |
virtual void | SafeParallel (const ttranscribed &member) |
Calc misfit for a model given by member. More... | |
virtual double | PostParallel (const ttranscribed &member) |
Some operations cannot be done in parallel, these are done after, returns the misfit value. More... | |
virtual void | WriteModel (const std::string &filename) |
write the current model to a file More... | |
virtual void | WritePlot (const std::string &filename) |
write the current model for plotting to a file More... | |
virtual void | WriteData (const std::string &filename) |
Write current data to a file. More... | |
virtual PTensor1DMTObjective * | 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. More... | |
PTensor1DMTObjective (const PTensorMTStation &LocalMTData) | |
PTensor1DMTObjective (const PTensor1DMTObjective &Old) | |
virtual | ~PTensor1DMTObjective () |
PTensor1DMTObjective & | operator= (const PTensor1DMTObjective &source) |
Public Member Functions inherited from gplib::PlottableObjective | |
PlottableObjective () | |
PlottableObjective (const PlottableObjective &Old) | |
PlottableObjective & | operator= (const PlottableObjective &source) |
virtual | ~PlottableObjective () |
Public Member Functions inherited from gplib::GeneralObjective | |
void | SetFitExponent (const int x) |
Set the Fit exponent. More... | |
int | GetFitExponent () |
Get the Fit exponent. More... | |
double | GetRMS () |
Get the current RMS. More... | |
const std::string & | GetParallelID () |
Derived classes need to read the ParallelId for their forward calculations. More... | |
void | SetParallelID (const std::string &s) |
We need to set the parallel ID outside the Objective function object. More... | |
const tmisfit & | GetMisfit () |
Return the misfit vector. More... | |
const tdata & | GetSynthData () |
Return the current synthetic data. More... | |
virtual void | PreParallel (const ttranscribed &member) |
Some operations cannot be done in parallel, these are done before. More... | |
double | CalcPerformance (const ttranscribed &member) |
For serial execution CalcPerformance calls the three Parallel functions for more convenient use. More... | |
GeneralObjective () | |
GeneralObjective (const GeneralObjective &Old) | |
GeneralObjective & | operator= (const GeneralObjective &source) |
virtual | ~GeneralObjective () |
Additional Inherited Members | |
Protected Member Functions inherited from gplib::GeneralObjective | |
double | CalcMisfit (const double measured, const double predicted, const double measerror, const double errorlevel, const int index) |
void | SetRMS (const double x) |
tmisfit & | SetMisfit () |
Only derived classes can write access the Misfit. More... | |
void | SetMisfit (const tmisfit &LocalMisfit) |
tdata & | SetSynthData () |
Only derived classes can write access the Synthetic data. More... | |
void | SetSynthData (const tdata &LocalSynthData) |
This is a special objective function to fit phase tensor MT data.
We don't have analytical expression for the error of phase tensor elements yet/ Recalculating them all the time with Jacknife or bootstrap methods is too expensive so we calculate them once for the measured data, store it in a special file and use this objective function to read the file and fit this data.
Definition at line 16 of file PTensor1DMTObjective.h.
gplib::PTensor1DMTObjective::PTensor1DMTObjective | ( | const PTensorMTStation & | LocalMTData | ) |
Definition at line 9 of file PTensor1DMTObjective.cpp.
Referenced by clone().
gplib::PTensor1DMTObjective::PTensor1DMTObjective | ( | const PTensor1DMTObjective & | Old | ) |
Definition at line 20 of file PTensor1DMTObjective.cpp.
|
virtual |
Definition at line 16 of file PTensor1DMTObjective.cpp.
|
inlinevirtual |
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.
Implements gplib::GeneralObjective.
Definition at line 46 of file PTensor1DMTObjective.h.
References PTensor1DMTObjective().
PTensor1DMTObjective & gplib::PTensor1DMTObjective::operator= | ( | const PTensor1DMTObjective & | source | ) |
Definition at line 26 of file PTensor1DMTObjective.cpp.
References gplib::PlottableObjective::operator=().
|
virtual |
Some operations cannot be done in parallel, these are done after, returns the misfit value.
Implements gplib::GeneralObjective.
Definition at line 76 of file PTensor1DMTObjective.cpp.
References gplib::GeneralObjective::GetRMS().
|
virtual |
Calc misfit for a model given by member.
Reimplemented from gplib::GeneralObjective.
Definition at line 38 of file PTensor1DMTObjective.cpp.
References gplib::PTensorMTStation::at(), gplib::MTStation::at(), gplib::GeneralObjective::CalcMisfit(), gplib::C1DAnisoMTSynthData::GetData(), gplib::PTensorMTData::GetdPhi11(), gplib::PTensorMTData::GetdPhi12(), gplib::PTensorMTData::GetdPhi21(), gplib::PTensorMTData::GetdPhi22(), gplib::GeneralObjective::GetFitExponent(), gplib::PTensorMTStation::GetFrequencies(), gplib::MTStation::GetFrequencies(), gplib::PTensorMTData::GetPhi11(), gplib::MTTensor::GetPhi11(), gplib::PTensorMTData::GetPhi12(), gplib::MTTensor::GetPhi12(), gplib::PTensorMTData::GetPhi21(), gplib::MTTensor::GetPhi21(), gplib::PTensorMTData::GetPhi22(), gplib::MTTensor::GetPhi22(), gplib::PTensorMTStation::GetTensor(), gplib::Member2Aniso(), gplib::MTStation::SetFrequencies(), gplib::GeneralObjective::SetMisfit(), gplib::GeneralObjective::SetRMS(), and gplib::GeneralObjective::SetSynthData().
|
inline |
Set the minimum relative error.
Definition at line 24 of file PTensor1DMTObjective.h.
|
inlinevirtual |
Write current data to a file.
Reimplemented from gplib::PlottableObjective.
Definition at line 42 of file PTensor1DMTObjective.h.
References gplib::MTStation::WriteAsMtt().
|
inlinevirtual |
write the current model to a file
Reimplemented from gplib::PlottableObjective.
Definition at line 32 of file PTensor1DMTObjective.h.
References gplib::C1DAnisoMTSynthData::WriteModel().
|
inlinevirtual |
write the current model for plotting to a file
Reimplemented from gplib::PlottableObjective.
Definition at line 37 of file PTensor1DMTObjective.h.
References gplib::C1DAnisoMTSynthData::WritePlot().