comparison src/Modules/Features/ModuleGaussians.cc @ 141:bbf4728ffa0e

Windows build fixes.
author tomwalters
date Tue, 02 Nov 2010 23:46:56 +0000
parents 4abed4cf1e87
children f03d4455b262
comparison
equal deleted inserted replaced
140:3cd890830891 141:bbf4728ffa0e
25 * \version \$Id$ 25 * \version \$Id$
26 */ 26 */
27 27
28 #include <math.h> 28 #include <math.h>
29 29
30 #ifdef _MSC_VER
31 #include <float.h>
32 #endif
33
30 #include "Modules/Features/ModuleGaussians.h" 34 #include "Modules/Features/ModuleGaussians.h"
31 #include "Support/Common.h" 35 #include "Support/Common.h"
32 36
33 namespace aimc { 37 namespace aimc {
34 ModuleGaussians::ModuleGaussians(Parameters *params) : Module(params) { 38 ModuleGaussians::ModuleGaussians(Parameters *params) : Module(params) {
118 } else { 122 } else {
119 output_.set_sample(output_component_count_ - 1, 0, -1000.0); 123 output_.set_sample(output_component_count_ - 1, 0, -1000.0);
120 } 124 }
121 125
122 for (int ch = 0; ch < input.channel_count(); ++ch) { 126 for (int ch = 0; ch < input.channel_count(); ++ch) {
123 m_pSpectralProfile[ch] = pow(m_pSpectralProfile[ch], 0.8); 127 m_pSpectralProfile[ch] = pow(m_pSpectralProfile[ch], 0.8f);
124 } 128 }
125 129
126 RubberGMMCore(2, true); 130 RubberGMMCore(2, true);
127 131
128 float mean1 = m_pMu[0]; 132 float mean1 = m_pMu[0];