GPLIB++
CombinedRoughness.h
Go to the documentation of this file.
1 #ifndef _CCOMBINEDROUGHNESS_H_
2 #define _CCOMBINEDROUGHNESS_H_
3 #include "GeneralObjective.h"
4 
5 namespace gplib
6  {
7  //! CombinedRoughness calculates the roughness of a joint MT- receiver functions model without consideration for different parameter ranges
9  {
10  private:
11  double refcond;
12  double refvel;
13  public:
14  //! Clone the object
15  virtual CombinedRoughness *clone() const
16  {
17  return new CombinedRoughness(*this);
18  }
19  //! Set reference conductivity for roughness calculation, changes weighting between velocity and conductivity
20  void SetRefCond(const double cond)
21  {
22  refcond = cond;
23  }
24  //! Set reference velcoity for roughness calculation, changes weighting between velocity and conductivity
25  void SetRefVel(const double vel)
26  {
27  refvel = vel;
28  }
29  virtual void SafeParallel(const ttranscribed &member);
30  virtual double PostParallel(const ttranscribed &member);
34  virtual ~CombinedRoughness();
35  };
36  }
37 #endif /*_CCOMBINEDROUGHNESS_H_*/
ublas::vector< double > ttranscribed
Definition: gentypes.h:21
CombinedRoughness & operator=(const CombinedRoughness &source)
We have to copy the base class and the local data.
CombinedRoughness calculates the roughness of a joint MT- receiver functions model without considerat...
void SetRefCond(const double cond)
Set reference conductivity for roughness calculation, changes weighting between velocity and conducti...
virtual double PostParallel(const ttranscribed &member)
Some operations cannot be done in parallel, these are done after, returns the misfit value...
virtual void SafeParallel(const ttranscribed &member)
Calculate the roughness of the model given by the parameter member.
The basic object for any objective function, mainly an interface class and some storage.
virtual CombinedRoughness * clone() const
Clone the object.
void SetRefVel(const double vel)
Set reference velcoity for roughness calculation, changes weighting between velocity and conductivity...