Created
March 5, 2014 02:23
-
-
Save diogomonica/9360033 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<title>fft.js</title> | |
<script src='lib/real.js'></script> | |
<script src='lib/complex.js'></script> | |
<script> | |
var input = new Float64Array(32); | |
var result = new Float64Array(64); | |
for (var j = 0; j < 32; j++){ | |
input[j] = j; | |
} | |
console.log(input); | |
console.log(result); | |
fft = new FFT.complex(32, false); | |
fft.simple(result, input, 'real') | |
console.log(result); | |
</script> | |
</head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment