Mercurial > hg > aimc
comparison src/Modules/SSI/ModuleSSI.cc @ 36:74196ff1cb98
-Added debug symbols option for GCC
-Fixed SSI bug - too early to try -1 for the other bits - oops again!
-Added boost libraries to EC2 script
author | tomwalters |
---|---|
date | Fri, 26 Feb 2010 16:58:26 +0000 |
parents | 9122efd2b227 |
children | c5f5e9569863 |
comparison
equal
deleted
inserted
replaced
35:b893a04a845e | 36:74196ff1cb98 |
---|---|
191 float curr_sample = input.sample(ch, sample); | 191 float curr_sample = input.sample(ch, sample); |
192 float next_sample = input.sample(ch, sample + 1); | 192 float next_sample = input.sample(ch, sample + 1); |
193 val = weight * (curr_sample | 193 val = weight * (curr_sample |
194 + frac_part * (next_sample - curr_sample)); | 194 + frac_part * (next_sample - curr_sample)); |
195 } else { | 195 } else { |
196 // Set out-of-range values to a negative number to signify that | 196 val = 0.0f; |
197 // they really don't exist, and shouldn't be used in feature | |
198 // calculations. | |
199 val = -1.0f; | |
200 } | 197 } |
201 output_.set_sample(ch, i, val); | 198 output_.set_sample(ch, i, val); |
202 } | 199 } |
203 } | 200 } |
204 PushOutput(); | 201 PushOutput(); |