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

This class is used to model several receiver functions simultaneously. More...

#include <Multi1DRecObjective.h>

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

Public Member Functions

virtual Multi1DRecObjectiveclone () const
 return a pointer to a copy of the current object More...
 
void SetTimeWindow (const double start, const double end)
 Set the start and end time in s for the part we want to fit. More...
 
void SetPoisson (const double ratio)
 Set Poisson's ratio to calculate P velocities from S-Velocities. More...
 
void AddRecFunction (boost::shared_ptr< const SeismicDataComp > TheRecData, int myshift, double mysigma, double myc, double myslowness, RecCalc::trfmethod method, double errorlevel, bool normalized, ResPkModel::WaveType InWave)
 Add another reciever function to fit. More...
 
void AddAbsVelFunction (boost::shared_ptr< const SeismicDataComp > TheRecData, SurfaceWaveData &AbsVel, const int myshift, const double mysigma, const double myc, const double myslowness, const RecCalc::trfmethod method, const double errorlevel, const bool normalized, const double absvelweight, const double recweight)
 Add another receiver function with absolute velocity transformation. More...
 
virtual void PreParallel (const ttranscribed &member)
 The operations that have to be done before the parallel part. More...
 
virtual double PostParallel (const ttranscribed &member)
 The operations that have to be done after the parallel part. More...
 
virtual void SafeParallel (const ttranscribed &member)
 The operations that safely can be done in parallel. More...
 
virtual void WriteData (const std::string &filename)
 Write out all the data, endings will be appended automatically. More...
 
void WriteModel (const std::string &filename)
 Write the current model to ascii file for calculations. More...
 
void WritePlot (const std::string &filename)
 Write the current model to ascii file for plotting. More...
 
 Multi1DRecObjective (const Multi1DRecObjective &Old)
 
Multi1DRecObjectiveoperator= (const Multi1DRecObjective &source)
 
 Multi1DRecObjective ()
 
virtual ~Multi1DRecObjective ()
 
- 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...
 
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 class is used to model several receiver functions simultaneously.

Definition at line 13 of file Multi1DRecObjective.h.

Constructor & Destructor Documentation

gplib::Multi1DRecObjective::Multi1DRecObjective ( const Multi1DRecObjective Old)

Definition at line 129 of file Multi1DRecObjective.cpp.

gplib::Multi1DRecObjective::Multi1DRecObjective ( )

Definition at line 121 of file Multi1DRecObjective.cpp.

Referenced by clone().

gplib::Multi1DRecObjective::~Multi1DRecObjective ( )
virtual

Definition at line 125 of file Multi1DRecObjective.cpp.

Member Function Documentation

void gplib::Multi1DRecObjective::AddAbsVelFunction ( boost::shared_ptr< const SeismicDataComp TheRecData,
SurfaceWaveData AbsVel,
const int  myshift,
const double  mysigma,
const double  myc,
const double  myslowness,
const RecCalc::trfmethod  method,
const double  errorlevel,
const bool  normalized,
const double  absvelweight,
const double  recweight 
)

Add another receiver function with absolute velocity transformation.

Definition at line 39 of file Multi1DRecObjective.cpp.

Referenced by SetupRecObjective().

void gplib::Multi1DRecObjective::AddRecFunction ( boost::shared_ptr< const SeismicDataComp TheRecData,
int  myshift,
double  mysigma,
double  myc,
double  myslowness,
RecCalc::trfmethod  method,
double  errorlevel,
bool  normalized,
ResPkModel::WaveType  InWave 
)

Add another reciever function to fit.

Definition at line 26 of file Multi1DRecObjective.cpp.

Referenced by SetupRecObjective().

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

return a pointer to a copy of the current object

Implements gplib::GeneralObjective.

Definition at line 19 of file Multi1DRecObjective.h.

References Multi1DRecObjective().

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

Definition at line 141 of file Multi1DRecObjective.cpp.

double gplib::Multi1DRecObjective::PostParallel ( const ttranscribed member)
virtual

The operations that have to be done after the parallel part.

Implements gplib::GeneralObjective.

Definition at line 69 of file Multi1DRecObjective.cpp.

void gplib::Multi1DRecObjective::PreParallel ( const ttranscribed member)
virtual

The operations that have to be done before the parallel part.

Reimplemented from gplib::GeneralObjective.

Definition at line 55 of file Multi1DRecObjective.cpp.

void gplib::Multi1DRecObjective::SafeParallel ( const ttranscribed member)
virtual

The operations that safely can be done in parallel.

Reimplemented from gplib::GeneralObjective.

Definition at line 87 of file Multi1DRecObjective.cpp.

void gplib::Multi1DRecObjective::SetPoisson ( const double  ratio)

Set Poisson's ratio to calculate P velocities from S-Velocities.

Definition at line 20 of file Multi1DRecObjective.cpp.

void gplib::Multi1DRecObjective::SetTimeWindow ( const double  start,
const double  end 
)

Set the start and end time in s for the part we want to fit.

Definition at line 13 of file Multi1DRecObjective.cpp.

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

Write out all the data, endings will be appended automatically.

Reimplemented from gplib::PlottableObjective.

Definition at line 99 of file Multi1DRecObjective.cpp.

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

Write the current model to ascii file for calculations.

Reimplemented from gplib::PlottableObjective.

Definition at line 111 of file Multi1DRecObjective.cpp.

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

Write the current model to ascii file for plotting.

Reimplemented from gplib::PlottableObjective.

Definition at line 116 of file Multi1DRecObjective.cpp.


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