comparison src/Modules/Features/ModuleGaussians.cc @ 20:fff25824d1d1

-Added a module to scale output values by the channel centre frequency -Fixed file input to support loading and processing of multiple files -Updated the aimc main file to generate profiles like in the recognition experiments
author tomwalters
date Mon, 22 Feb 2010 17:51:27 +0000
parents fcbf85ce59fb
children 491b1b1d1dc5
comparison
equal deleted inserted replaced
19:a2dddc107d55 20:fff25824d1d1
77 } 77 }
78 78
79 void ModuleGaussians::ResetInternal() { 79 void ModuleGaussians::ResetInternal() {
80 m_pSpectralProfile.clear(); 80 m_pSpectralProfile.clear();
81 m_pSpectralProfile.resize(m_iNumChannels, 0.0f); 81 m_pSpectralProfile.resize(m_iNumChannels, 0.0f);
82 m_pA.clear();
83 m_pA.resize(m_iParamNComp, 0.0f);
84 m_pMu.clear();
85 m_pMu.resize(m_iParamNComp, 0.0f);
82 } 86 }
83 87
84 void ModuleGaussians::Process(const SignalBank &input) { 88 void ModuleGaussians::Process(const SignalBank &input) {
85 if (!initialized_) { 89 if (!initialized_) {
86 LOG_ERROR(_T("Module ModuleGaussians not initialized.")); 90 LOG_ERROR(_T("Module ModuleGaussians not initialized."));