OpendTect-6_4  6.4
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
PolyTrend Class Reference

Polynomial trend with order 0 (mean), 1 (linear) or 2 (parabolic) The trend is derived from a set of values with positions and can be applied thereafter on any other position. More...

Public Types

enum  Order { None, Order0, Order1, Order2 }
 

Public Member Functions

 PolyTrend ()
 
bool operator== (const PolyTrend &) const
 
 mDeclareEnumUtils (Order) static const char *sKeyOrder()
 
void setOrder (PolyTrend::Order t)
 
template<class IDXABLE >
bool set (const TypeSet< Coord > &, const IDXABLE &valuelistj)
 
Order getOrder () const
 
template<class T >
void apply (const Coord &pos, bool dir, T &) const
 

Static Public Member Functions

static bool getOrder (int nrpoints, Order &, uiString *=0)
 

Protected Member Functions

void initOrder0 (const TypeSet< double > &)
 
void initOrder1 (const TypeSet< Coord > &, const TypeSet< double > &)
 
void initOrder2 (const TypeSet< Coord > &, const TypeSet< double > &)
 
void initCenter (const TypeSet< Coord > &)
 

Protected Attributes

Order order_
 
double f0_
 
double f1_
 
double f2_
 
double f11_
 
double f12_
 
double f22_
 
Coord posc_
 

Private Member Functions

 mODTextTranslationClass (PolyTrend)
 

Detailed Description

Polynomial trend with order 0 (mean), 1 (linear) or 2 (parabolic) The trend is derived from a set of values with positions and can be applied thereafter on any other position.

Member Enumeration Documentation

Enumerator
None 
Order0 
Order1 
Order2 

Constructor & Destructor Documentation

PolyTrend::PolyTrend ( )

Member Function Documentation

template<class T >
void PolyTrend::apply ( const Coord pos,
bool  dir,
T &  val 
) const
inline

Applies the trend to a value tied to a position

Parameters
dirtrue for detrend, false for restore
static bool PolyTrend::getOrder ( int  nrpoints,
Order ,
uiString = 0 
)
static
Order PolyTrend::getOrder ( ) const
inline
void PolyTrend::initCenter ( const TypeSet< Coord > &  )
protected
void PolyTrend::initOrder0 ( const TypeSet< double > &  )
protected
void PolyTrend::initOrder1 ( const TypeSet< Coord > &  ,
const TypeSet< double > &   
)
protected
void PolyTrend::initOrder2 ( const TypeSet< Coord > &  ,
const TypeSet< double > &   
)
protected
PolyTrend::mDeclareEnumUtils ( Order  ) const
inline
PolyTrend::mODTextTranslationClass ( PolyTrend  )
private
bool PolyTrend::operator== ( const PolyTrend ) const
template<class IDXABLE >
bool PolyTrend::set ( const TypeSet< Coord > &  poslist,
const IDXABLE &  valuelistj 
)
inline

Use after the order is set! Sets the trend from a list of values tied to a list of coordinates

void PolyTrend::setOrder ( PolyTrend::Order  t)
inline

Member Data Documentation

double PolyTrend::f0_
protected
double PolyTrend::f11_
protected
double PolyTrend::f12_
protected
double PolyTrend::f1_
protected
double PolyTrend::f22_
protected
double PolyTrend::f2_
protected
Order PolyTrend::order_
protected
Coord PolyTrend::posc_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019