Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void fft(Complex[][] series) {
- for (int i = 0; i < series.length; i++) {
- int count = (int)Math.pow(2, Math.floor(Math.log10(series[i].length) / Math.log10(2)));
- Complex[] row = new Complex[count];
- for (int j = 0; j < row.length; j++) {
- row[j] = series[i][j];
- }
- FFT.fft(row);
- Complex[] temp = new Complex[row.length / 2];
- for (int j = 0; j < temp.length; j++) {
- temp[j] = row[j];
- }
- series[i] = temp;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement