Timeline for Help me understand this simple code snippet to get the magnitude frequency response
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 22, 2012 at 0:23 | comment | added | Hilmar | Difficult to say why one would quantize. Could be a reference code or a model for a fixed point implementation. Could be part of a quantization noise study. Could be some data watermarking or embedding. | |
| Mar 21, 2012 at 17:18 | comment | added | stackoverflowuser2010 | What would be the point of performing that quantization? If I change the code to be: "double value = Math.sqrt(real[i] * real[i] + imaginary[i] * imaginary[i]);" then the result would exactly match the Matlab output of "y = abs(fft(samples));" ? By the way, I'm a software engineer with just a bit of DSP knowledge. | |
| Mar 21, 2012 at 16:22 | history | edited | Hilmar | CC BY-SA 3.0 | added 409 characters in body |
| Mar 21, 2012 at 16:14 | history | answered | Hilmar | CC BY-SA 3.0 |