Public Member Functions | Protected Member Functions | Protected Attributes

AGC< T > Class Template Reference

Inheritance diagram for AGC< T >:
ParallelTask Task NamedObject CallBacker

List of all members.

Public Member Functions

 AGC ()
 ~AGC ()
void setInput (const ValueSeries< T > &, int sz)
void setOutput (ValueSeries< T > &)
 Output can be the same as input.
void setSampleGate (const Interval< int > &)
const Interval< int > & getSampleGate () const
void setMuteFraction (float lvmf)
 The lowest fraction will be muted.
float getMuteFraction () const
bool doPrepare (int nrthreads)

Protected Member Functions

void computeEnergyMute ()
bool doWork (od_int64, od_int64, int)
int minThreadSize () const
od_int64 nrIterations () const

Protected Attributes

const ValueSeries< T > * input_
od_int64 size_
ValueSeries< T > * output_
Interval< int > samplerg_
float mutefraction_
TypeSet< T > energies_
energymute_
int threadsinenergycalc_
Threads::ConditionVarlock_

Detailed Description

template<class T>
class AGC< T >

Computes an AGC over a ValueSeries.


Constructor & Destructor Documentation

template<class T >
AGC< T >::AGC (  )  [inline]
template<class T >
AGC< T >::~AGC (  )  [inline]

Member Function Documentation

template<class T >
void AGC< T >::computeEnergyMute (  )  [inline, protected]
template<class T >
bool AGC< T >::doPrepare ( int  nrthreads  )  [inline, virtual]

Reimplemented from ParallelTask.

template<class T >
bool AGC< T >::doWork ( od_int64  start,
od_int64  stop,
int  threadidx 
) [inline, protected]
template<class T >
float AGC< T >::getMuteFraction (  )  const [inline]
template<class T >
const Interval< int > & AGC< T >::getSampleGate (  )  const [inline]
template<class T >
int AGC< T >::minThreadSize (  )  const [inline, protected, virtual]

Reimplemented from ParallelTask.

template<class T >
od_int64 AGC< T >::nrIterations (  )  const [inline, protected, virtual]

Implements ParallelTask.

template<class T >
void AGC< T >::setInput ( const ValueSeries< T > &  nvs,
int  sz 
) [inline]
template<class T >
void AGC< T >::setMuteFraction ( float  lvmf  )  [inline]

The lowest fraction will be muted.

template<class T >
void AGC< T >::setOutput ( ValueSeries< T > &  nvs  )  [inline]

Output can be the same as input.

template<class T >
void AGC< T >::setSampleGate ( const Interval< int > &  nrg  )  [inline]

Member Data Documentation

template<class T >
TypeSet<T> AGC< T >::energies_ [protected]
template<class T >
T AGC< T >::energymute_ [protected]
template<class T >
const ValueSeries<T>* AGC< T >::input_ [protected]
template<class T >
Threads::ConditionVar* AGC< T >::lock_ [protected]
template<class T >
float AGC< T >::mutefraction_ [protected]
template<class T >
ValueSeries<T>* AGC< T >::output_ [protected]
template<class T >
Interval<int> AGC< T >::samplerg_ [protected]
template<class T >
od_int64 AGC< T >::size_ [protected]
template<class T >
int AGC< T >::threadsinenergycalc_ [protected]