CLAM-Development
1.1
|
#include <Normalization.hxx>
Public Member Functions | |
Normalization () | |
Normalization (NormalizationConfig &c) | |
~Normalization () | |
const char * | GetClassName () const |
Override it in every subclass and retur the name of that class. | |
bool | Do (void) |
Supervised mode execution method (using ports) | |
bool | Do (Audio &in) |
bool | Do (const Audio &unnorm, Audio &norm) |
const ProcessingConfig & | GetConfig () const |
Configuration getter. | |
Protected Member Functions | |
TData | ComputeScaleFactorFromMaxEnergy (DataArray &inAudio) |
TData | ComputeScaleFactorFromAvgEnergy (DataArray &inAudio) |
TData | ComputeScaleFactorFromDominantEnergy (DataArray &inAudio) |
Definition at line 74 of file Normalization.hxx.
Definition at line 43 of file Normalization.cxx.
References CLAM::Processing::Configure().
Definition at line 49 of file Normalization.cxx.
References CLAM::Processing::Configure().
Definition at line 55 of file Normalization.cxx.
TData CLAM::Normalization::ComputeScaleFactorFromAvgEnergy | ( | DataArray & | inAudio | ) | [protected] |
Definition at line 172 of file Normalization.cxx.
References CLAM_sqrt(), CLAM::FifthOrder, CLAM::StatsTmpl< abs, T, U, initOrder >::GetEnergy(), CLAM::StatsTmpl< abs, T, U, initOrder >::GetMoments(), CLAM::Array< T >::GetPtr(), CLAM::OutControl::SendControl(), CLAM::Array< T >::SetPtr(), CLAM::Array< T >::SetSize(), and CLAM::Array< T >::Size().
Referenced by Do().
TData CLAM::Normalization::ComputeScaleFactorFromDominantEnergy | ( | DataArray & | inAudio | ) | [protected] |
Definition at line 216 of file Normalization.cxx.
References CLAM::Array< T >::AddElem(), CLAM_sqrt(), CLAM::FifthOrder, CLAM::StatsTmpl< abs, T, U, initOrder >::GetEnergy(), CLAM::StatsTmpl< abs, T, U, initOrder >::GetMoments(), CLAM::Array< T >::GetPtr(), CLAM::OutControl::SendControl(), CLAM::Array< T >::SetPtr(), CLAM::Array< T >::SetSize(), and CLAM::Array< T >::Size().
Referenced by Do().
TData CLAM::Normalization::ComputeScaleFactorFromMaxEnergy | ( | DataArray & | inAudio | ) | [protected] |
Definition at line 129 of file Normalization.cxx.
References CLAM_sqrt(), CLAM::FifthOrder, CLAM::StatsTmpl< abs, T, U, initOrder >::GetEnergy(), CLAM::StatsTmpl< abs, T, U, initOrder >::GetMoments(), CLAM::Array< T >::GetPtr(), CLAM::OutControl::SendControl(), CLAM::Array< T >::SetPtr(), CLAM::Array< T >::SetSize(), and CLAM::Array< T >::Size().
Referenced by Do().
bool CLAM::Normalization::Do | ( | void | ) | [virtual] |
Supervised mode execution method (using ports)
Implements CLAM::Processing.
Definition at line 68 of file Normalization.cxx.
bool CLAM::Normalization::Do | ( | Audio & | in | ) |
Definition at line 73 of file Normalization.cxx.
References ComputeScaleFactorFromAvgEnergy(), ComputeScaleFactorFromDominantEnergy(), ComputeScaleFactorFromMaxEnergy(), and CLAM::Audio::GetSize().
bool CLAM::Normalization::Do | ( | const Audio & | unnorm, |
Audio & | norm | ||
) |
Definition at line 99 of file Normalization.cxx.
References CLAM_ASSERT, ComputeScaleFactorFromAvgEnergy(), ComputeScaleFactorFromDominantEnergy(), ComputeScaleFactorFromMaxEnergy(), and CLAM::Audio::GetSize().
const char* CLAM::Normalization::GetClassName | ( | ) | const [inline, virtual] |
Override it in every subclass and retur the name of that class.
Implements CLAM::Processing.
Definition at line 101 of file Normalization.hxx.
const ProcessingConfig& CLAM::Normalization::GetConfig | ( | ) | const [inline, virtual] |
Configuration getter.
Gets the configuration parameters used to create the object.
Reimplemented from CLAM::Processing.
Definition at line 108 of file Normalization.hxx.