OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ValueSeriesEvFinder< VT, PT > Class Template Reference

Event finder in gate. More...

Public Member Functions

 ValueSeriesEvFinder (const ValueSeries< VT > &v, int maxidx, const SamplingData< PT > &s)
 
ValueSeriesEvent< VT, PT > find (VSEvent::Type, const Interval< PT > &, int occ=1) const
 
bool findEvents (TypeSet< PT > &, Interval< PT >, VSEvent::Type)
 
VSEvent::Type lastFound () const
 Useful when finding Extr or ZC. More...
 
const SamplingData< PT > & samplingData () const
 
const ValueSeries< VT > & valueSeries () const
 

Static Public Member Functions

static ValueSeriesEvent< VT, PT > exactExtreme (VSEvent::Type, int idxminus1, int idx0, int idx1, VT vminus1, VT v0, VT v1, const SamplingData< PT > &)
 

Protected Member Functions

ValueSeriesEvent< VT, PT > getExtreme (const Interval< int > &, int, VSEvent::Type) const
 
ValueSeriesEvent< VT, PT > getGateExtr (const Interval< int > &, bool) const
 
ValueSeriesEvent< VT, PT > getZC (const Interval< int > &, int, VSEvent::Type) const
 

Protected Attributes

VSEvent::Type lastfound_
 
int maxidx_
 
const SamplingData< PT > sd_
 
const ValueSeries< VT > & vs_
 

Detailed Description

template<class VT, class PT>
class ValueSeriesEvFinder< VT, PT >

Event finder in gate.

The gate is absolute. The finder will start at the 'start' and stop at the 'stop'. This is important because the event finding has a direction! Thus, the Interval<PT> you provide can go up or down.

The 'occ' parameter is specifies the occurrence of the event; it is ignored for GateMin and Max.

<>

Constructor & Destructor Documentation

◆ ValueSeriesEvFinder()

template<class VT , class PT >
ValueSeriesEvFinder< VT, PT >::ValueSeriesEvFinder ( const ValueSeries< VT > &  v,
int  maxidx,
const SamplingData< PT > &  s 
)
inline

Member Function Documentation

◆ exactExtreme()

template<class VT , class PT >
ValueSeriesEvent< VT, PT > ValueSeriesEvFinder< VT, PT >::exactExtreme ( VSEvent::Type  evtype,
int  idxminus1,
int  idx0,
int  idx1,
VT  vminus1,
VT  v0,
VT  v1,
const SamplingData< PT > &  sd 
)
inlinestatic

2nd order polynome where values can be separated more than 1 sample

◆ find()

template<class VT , class PT >
ValueSeriesEvent< VT, PT > ValueSeriesEvFinder< VT, PT >::find ( VSEvent::Type  evtype,
const Interval< PT > &  pgin,
int  occ = 1 
) const
inline

◆ findEvents()

template<class VT , class PT >
bool ValueSeriesEvFinder< VT, PT >::findEvents ( TypeSet< PT > &  posset,
Interval< PT >  pg,
VSEvent::Type  evtype 
)
inline

◆ getExtreme()

template<class VT , class PT >
ValueSeriesEvent< VT, PT > ValueSeriesEvFinder< VT, PT >::getExtreme ( const Interval< int > &  sg,
int  occ,
VSEvent::Type  evtype 
) const
inlineprotected

◆ getGateExtr()

template<class VT , class PT >
ValueSeriesEvent< VT, PT > ValueSeriesEvFinder< VT, PT >::getGateExtr ( const Interval< int > &  inpsg,
bool  needmax 
) const
inlineprotected

◆ getZC()

template<class VT , class PT >
ValueSeriesEvent< VT, PT > ValueSeriesEvFinder< VT, PT >::getZC ( const Interval< int > &  sg,
int  occ,
VSEvent::Type  evtype 
) const
inlineprotected

◆ lastFound()

template<class VT , class PT >
VSEvent::Type ValueSeriesEvFinder< VT, PT >::lastFound ( ) const
inline

Useful when finding Extr or ZC.

◆ samplingData()

template<class VT , class PT >
const SamplingData<PT>& ValueSeriesEvFinder< VT, PT >::samplingData ( ) const
inline

◆ valueSeries()

template<class VT , class PT >
const ValueSeries<VT>& ValueSeriesEvFinder< VT, PT >::valueSeries ( ) const
inline

Member Data Documentation

◆ lastfound_

template<class VT , class PT >
VSEvent::Type ValueSeriesEvFinder< VT, PT >::lastfound_
mutableprotected

◆ maxidx_

template<class VT , class PT >
int ValueSeriesEvFinder< VT, PT >::maxidx_
protected

◆ sd_

template<class VT , class PT >
const SamplingData<PT> ValueSeriesEvFinder< VT, PT >::sd_
protected

◆ vs_

template<class VT , class PT >
const ValueSeries<VT>& ValueSeriesEvFinder< VT, PT >::vs_
protected

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