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

This class implements the forward calculation for a 1D isotropic MT model. More...

#include <Iso1DMTObjective.h>

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

Public Member Functions

 Iso1DMTObjective (const MTStation &LocalMTData)
 
Iso1DMTObjective & operator= (const Iso1DMTObjective &source)
 
 Iso1DMTObjective (const Iso1DMTObjective &Old)
 
virtual ~Iso1DMTObjective ()
 
virtual Iso1DMTObjective * clone () const
 clone clones the current object, derived from GeneralObjective 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...
 
- Public Member Functions inherited from gplib::C1DMTObjective
void SetFitParameters (const datafuncvector_t TheDataV, const datafuncvector_t TheErrorV, const std::vector< double > TheErrLevel)
 function to set the parameters that determine the type of fit More...
 
void AppendFitParameters (const datafunc_t TheDataFunc, const datafunc_t TheErrorFunc, const double TheErrLevel)
 
virtual void SafeParallel (const ttranscribed &member)
 Calc misfit for a model given by member. More...
 
virtual double PostParallel (const ttranscribed &member)
 All calculation has been done in SafeParallel we only return the stored result. More...
 
const datafuncvector_t & GetErrorFunctions () const
 return a vector with pointers to the functions used to calculate the errors More...
 
 C1DMTObjective (const MTStation &LocalMTData)
 We need data to fit for any objective function, so we want it as constructor parameter, but no implicit conversion. More...
 
 C1DMTObjective (const C1DMTObjective &Old)
 
virtual ~C1DMTObjective ()
 
C1DMTObjective & operator= (const C1DMTObjective &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

- Public Types inherited from gplib::C1DMTObjective
typedef boost::function
< double(const MTTensor *const )> 
datafunc_t
 A function that returns a real valued quantity calculated from an MT impedance tensor. More...
 
typedef std::vector< datafunc_t > datafuncvector_t
 A vector of MT data functions. This is used to store the types of data to fit. More...
 
- 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)
 

Detailed Description

This class implements the forward calculation for a 1D isotropic MT model.

Here we implement the specific calls to generate data for a 1D isotropic model, the misfit and the type of data to fit are all set and calculated in the base class C1DMTObjective

Definition at line 13 of file Iso1DMTObjective.h.

Constructor & Destructor Documentation

gplib::Iso1DMTObjective::Iso1DMTObjective ( const MTStation &  LocalMTData)
explicit

Definition at line 6 of file Iso1DMTObjective.cpp.

Referenced by clone().

gplib::Iso1DMTObjective::Iso1DMTObjective ( const Iso1DMTObjective &  Old)

Definition at line 21 of file Iso1DMTObjective.cpp.

gplib::Iso1DMTObjective::~Iso1DMTObjective ( )
virtual

Definition at line 27 of file Iso1DMTObjective.cpp.

Member Function Documentation

virtual Iso1DMTObjective* gplib::Iso1DMTObjective::clone ( ) const
inlinevirtual

clone clones the current object, derived from GeneralObjective

Implements gplib::GeneralObjective.

Definition at line 33 of file Iso1DMTObjective.h.

References Iso1DMTObjective().

Iso1DMTObjective & gplib::Iso1DMTObjective::operator= ( const Iso1DMTObjective &  source)

Definition at line 11 of file Iso1DMTObjective.cpp.

References gplib::C1DMTObjective::operator=().

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

Write current data to a file.

Implements gplib::C1DMTObjective.

Definition at line 48 of file Iso1DMTObjective.h.

References gplib::MTStation::WriteAsMtt().

Referenced by main().

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

write the current model to a file

Implements gplib::C1DMTObjective.

Definition at line 38 of file Iso1DMTObjective.h.

References gplib::C1DMTSynthData::WriteModel().

Referenced by main().

virtual void gplib::Iso1DMTObjective::WritePlot ( const std::string &  filename)
inlinevirtual

write the current model for plotting to a file

Implements gplib::C1DMTObjective.

Definition at line 43 of file Iso1DMTObjective.h.

References gplib::C1DMTSynthData::WritePlot().

Referenced by main().


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