CLAM::LPC_AutoCorrelation Class Reference

#include <LPC_AutoCorrelation.hxx>

List of all members.

Public Member Functions

 LPC_AutoCorrelation ()
virtual ~LPC_AutoCorrelation ()
const char * GetClassName () const
 Override it in every subclass and retur the name of that class.
const ProcessingConfigGetConfig () const
 Configuration getter.
bool Do ()
 Supervised mode execution method (using ports).
bool Do (const Audio &in, LPModel &out)
bool Do (const Audio &in, DataArray &A, DataArray &K, TData &E)

Protected Member Functions

bool ConcreteConfigure (const ProcessingConfig &cfg)
 Configuration method interface.
void ComputeAutocorrelation (const Array< TData > &signal, Array< TData > &acCoeffs)
void SolveSystemByLevinsonDurbin (const Array< TData > &R, Array< TData > &A, Array< TData > &K, TData &E)

Protected Attributes

InPort< AudiomAudioIn
OutPort< LPModelmLPModelOut
OutPort< SpectrummSpectrumOut
LPCConfig mCurrentConfig

Detailed Description

Definition at line 49 of file LPC_AutoCorrelation.hxx.


Constructor & Destructor Documentation

CLAM::LPC_AutoCorrelation::LPC_AutoCorrelation (  ) 

Definition at line 44 of file LPC_AutoCorrelation.cxx.

References CLAM::DynamicType::UpdateData().

CLAM::LPC_AutoCorrelation::~LPC_AutoCorrelation (  )  [virtual]

Definition at line 52 of file LPC_AutoCorrelation.cxx.


Member Function Documentation

void CLAM::LPC_AutoCorrelation::ComputeAutocorrelation ( const Array< TData > &  signal,
Array< TData > &  acCoeffs 
) [protected]

Definition at line 176 of file LPC_AutoCorrelation.cxx.

Referenced by Do().

bool CLAM::LPC_AutoCorrelation::ConcreteConfigure ( const ProcessingConfig  )  [protected, virtual]

Configuration method interface.

The Processing base class forces all the concrete classes derived from it to implement this method, which must actually perform the specific configuration tasks.

Note that the user can not call this method directly. He will use Configure instead. The argument is expected to be an object of the necesary concrete configuration class.

Parameters:
Reference to the configuration object.
Returns:
false if the object is not yet fully configured. (For example, if some important configuration attribute such as number of ports was set to zero in the config object)

true if the processing object is left in a consistent state, and can be executed.

Exceptions:
This method must throw a bad_cast exception if the argument is not an object of the expected configuration class.

Reimplemented from CLAM::Processing.

Definition at line 155 of file LPC_AutoCorrelation.cxx.

bool CLAM::LPC_AutoCorrelation::Do ( const Audio in,
DataArray A,
DataArray K,
TData E 
)
bool CLAM::LPC_AutoCorrelation::Do ( const Audio in,
LPModel out 
)

Definition at line 78 of file LPC_AutoCorrelation.cxx.

bool CLAM::LPC_AutoCorrelation::Do (  )  [virtual]

Supervised mode execution method (using ports).

Returns:
A boolean telling whether it has been output

Implements CLAM::Processing.

Definition at line 56 of file LPC_AutoCorrelation.cxx.

const char * CLAM::LPC_AutoCorrelation::GetClassName (  )  const [inline, virtual]

Override it in every subclass and retur the name of that class.

Implements CLAM::Processing.

Definition at line 88 of file LPC_AutoCorrelation.hxx.

const ProcessingConfig & CLAM::LPC_AutoCorrelation::GetConfig (  )  const [inline, virtual]

Configuration getter.

Gets the configuration parameters used to create the object.

Returns:
Const reference to the configuration object. The usual way to perform a configuration change in the processing object is to take a copy of this reference, to change it and to send it with the Configure method. If not overriden, it returns a NullProcessingConfig.

Reimplemented from CLAM::Processing.

Definition at line 93 of file LPC_AutoCorrelation.hxx.

References mCurrentConfig.

void CLAM::LPC_AutoCorrelation::SolveSystemByLevinsonDurbin ( const Array< TData > &  R,
Array< TData > &  A,
Array< TData > &  K,
TData E 
) [protected]

Definition at line 211 of file LPC_AutoCorrelation.cxx.


Member Data Documentation

Definition at line 67 of file LPC_AutoCorrelation.hxx.

Definition at line 71 of file LPC_AutoCorrelation.hxx.

Referenced by Do(), and GetConfig().

Definition at line 68 of file LPC_AutoCorrelation.hxx.

Definition at line 69 of file LPC_AutoCorrelation.hxx.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.3