Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes

Attrib::Event Class Reference

Event attribute. More...

Inheritance diagram for Attrib::Event:
Attrib::Provider

List of all members.

Public Member Functions

 Event (Desc &)

Static Public Member Functions

static void initClass ()
static const char * attribName ()
static const char * eventTypeStr ()
static const char * tonextStr ()
static const char * gateStr ()
static const char * issingleeventStr ()

Protected Member Functions

 ~Event ()
bool getInputOutput (int input, TypeSet< int > &res) const
bool getInputData (const BinID &, int zintv)
bool computeData (const DataHolder &, const BinID &relpos, int z0, int nrsamples, int threadid) const
bool allowParallelComputation () const
const Interval< float > * reqZMargin (int input, int output) const
const Interval< float > * desZMargin (int input, int output) const
ValueSeriesEvent< float, float > findNextEvent (ValueSeriesEvent< float, float > nextev, int dir, VSEvent::Type, int, int) const
void singleEvent (const DataHolder &, int, int) const
void multipleEvents (const DataHolder &, int, int) const

Static Protected Member Functions

static ProvidercreateInstance (Desc &)
static void updateDesc (Desc &)
static VSEvent::Type getEventType (int type)

Protected Attributes

const DataHolderinputdata
bool issingleevent
bool tonext
VSEvent::Type eventtype
Interval< float > gate
int dataidx_

Detailed Description

Event attribute.

EventAttrib singleevent = eventtype = extremum, max, min, zerocrossing... tonext = gate =

Calculates properties of events ( peakedness, steepness, asymmetry) Calculates the distance between the sample and the next or previous eventtype Calculates the distance between the sample and the sample of max or min amplitude withing a time gate.


Constructor & Destructor Documentation

Attrib::Event::Event ( Desc  ) 
Attrib::Event::~Event (  )  [inline, protected]

Member Function Documentation

bool Attrib::Event::allowParallelComputation (  )  const [inline, protected, virtual]

Reimplemented from Attrib::Provider.

static const char* Attrib::Event::attribName (  )  [inline, static]
bool Attrib::Event::computeData ( const DataHolder ,
const BinID relpos,
int  z0,
int  nrsamples,
int  threadid 
) const [protected, virtual]

Reimplemented from Attrib::Provider.

static Provider* Attrib::Event::createInstance ( Desc  )  [static, protected]
const Interval<float>* Attrib::Event::desZMargin ( int  input,
int  output 
) const [protected, virtual]

Reimplemented from Attrib::Provider.

static const char* Attrib::Event::eventTypeStr (  )  [inline, static]
ValueSeriesEvent<float,float> Attrib::Event::findNextEvent ( ValueSeriesEvent< float, float >  nextev,
int  dir,
VSEvent::Type  ,
int  ,
int   
) const [protected]
static const char* Attrib::Event::gateStr (  )  [inline, static]
static VSEvent::Type Attrib::Event::getEventType ( int  type  )  [static, protected]
bool Attrib::Event::getInputData ( const BinID ,
int  zintv 
) [protected, virtual]

Reimplemented from Attrib::Provider.

bool Attrib::Event::getInputOutput ( int  input,
TypeSet< int > &  res 
) const [protected, virtual]

Reimplemented from Attrib::Provider.

static void Attrib::Event::initClass (  )  [static]
static const char* Attrib::Event::issingleeventStr (  )  [inline, static]
void Attrib::Event::multipleEvents ( const DataHolder ,
int  ,
int   
) const [protected]
const Interval<float>* Attrib::Event::reqZMargin ( int  input,
int  output 
) const [protected, virtual]

Reimplemented from Attrib::Provider.

void Attrib::Event::singleEvent ( const DataHolder ,
int  ,
int   
) const [protected]
static const char* Attrib::Event::tonextStr (  )  [inline, static]
static void Attrib::Event::updateDesc ( Desc  )  [static, protected]

Member Data Documentation

int Attrib::Event::dataidx_ [protected]
Interval<float> Attrib::Event::gate [protected]
bool Attrib::Event::issingleevent [protected]
bool Attrib::Event::tonext [protected]