1 #ifndef C1DRECOBJECTIVE_H
2 #define C1DRECOBJECTIVE_H
6 #include <boost/shared_ptr.hpp>
47 boost::shared_ptr<const SeismicDataComp> ObservedData;
65 const double recmaxamp = *std::max_element(ObservedData->GetData().begin(),
66 ObservedData->GetData().end());
70 errorvalue = errorlevel * recmaxamp;
110 C1DRecObjective(boost::shared_ptr<const SeismicDataComp> TheRecData,
int myshift,
119 #endif // C1DRECOBJECTIVE_H
trfmethod
There are several ways to calculate receiver functions.
This class is used to calculate receiver functions from seismic data.
ublas::vector< double > ttranscribed
virtual double PostParallel(const ttranscribed &member)
We also clean up files serially.
void WritePlot(const std::string &filename)
Write out an ascii file for plotting with xmgrace etc.
This only adds a few plotting functions to GeneralObjective to define a common interface.
void WritePlot(const std::string &filename)
Write the current model to ascii file for plotting.
C1DRecObjective(const C1DRecObjective &Old)
virtual C1DRecObjective * clone() const
return a pointer to a copy of the current object
void SetErrorLevel(const double level)
Set the errorlevel for fit, this is relative to the maximum amplitude, not for each individual data p...
virtual void WriteData(const std::string &filename)
Write the synthetic data to a sac file with name filename, makes only sense after calculating the mis...
virtual ~C1DRecObjective()
const SeismicDataComp & GetObservedData()
virtual void SafeParallel(const ttranscribed &member)
Calculate the misfit between the data calculated from model vector member and measured data given in ...
void WriteModel(const std::string &filename)
Write the current model to ascii file for calculations.
This objective function calculates the weighted misfit for a receiver function and the corresponding ...
void SetPoisson(const double ratio)
Set poisson's ratio, at the moment the same for all layers, used for calculating P-velocity.
virtual void PreParallel(const ttranscribed &member)
We have to write runfiles before parallel execution.
virtual void WriteModel(const std::string filename)
Write the model in its native format to a file.
Calculate the misfit between observed receiver function for a given 1D model by calculating a synthet...
C1DRecObjective & operator=(const C1DRecObjective &source)
void SetTimeWindow(const double start, const double end)
Set the time window used for misfit calculations, start and end are in seconds.
This class stores and writes model for the respktn 1D seismic code that we use for receiver function ...
int WriteAsSac(const std::string &filename) const
Write the data in sac binary format.