GPLIB++
Public Member Functions | List of all members
gplib::PTensor1DMTObjective Class Reference

This is a special objective function to fit phase tensor MT data. More...

#include <PTensor1DMTObjective.h>

Inheritance diagram for gplib::PTensor1DMTObjective:
Inheritance graph
[legend]

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 PTensor1DMTObjectiveclone () 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 ()
 
PTensor1DMTObjectiveoperator= (const PTensor1DMTObjective &source)
 
- Public Member Functions inherited from gplib::PlottableObjective
 PlottableObjective ()
 
 PlottableObjective (const PlottableObjective &Old)
 
PlottableObjectiveoperator= (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 tmisfitGetMisfit ()
 Return the misfit vector. More...
 
const tdataGetSynthData ()
 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)
 
GeneralObjectiveoperator= (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)
 
tmisfitSetMisfit ()
 Only derived classes can write access the Misfit. More...
 
void SetMisfit (const tmisfit &LocalMisfit)
 
tdataSetSynthData ()
 Only derived classes can write access the Synthetic data. More...
 
void SetSynthData (const tdata &LocalSynthData)
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

gplib::PTensor1DMTObjective::~PTensor1DMTObjective ( )
virtual

Definition at line 16 of file PTensor1DMTObjective.cpp.

Member Function Documentation

virtual PTensor1DMTObjective* gplib::PTensor1DMTObjective::clone ( ) const
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=().

double gplib::PTensor1DMTObjective::PostParallel ( const ttranscribed member)
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().

void gplib::PTensor1DMTObjective::SafeParallel ( const ttranscribed member)
virtual
void gplib::PTensor1DMTObjective::SetErrorLevel ( const double  e)
inline

Set the minimum relative error.

Definition at line 24 of file PTensor1DMTObjective.h.

virtual void gplib::PTensor1DMTObjective::WriteData ( const std::string &  filename)
inlinevirtual

Write current data to a file.

Reimplemented from gplib::PlottableObjective.

Definition at line 42 of file PTensor1DMTObjective.h.

References gplib::MTStation::WriteAsMtt().

virtual void gplib::PTensor1DMTObjective::WriteModel ( const std::string &  filename)
inlinevirtual

write the current model to a file

Reimplemented from gplib::PlottableObjective.

Definition at line 32 of file PTensor1DMTObjective.h.

References gplib::C1DAnisoMTSynthData::WriteModel().

virtual void gplib::PTensor1DMTObjective::WritePlot ( const std::string &  filename)
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().


The documentation for this class was generated from the following files: