digital low-pass filtering and fft for accelerometer data

The library contains instructions on how to run the programs, please read them!
What you did above should have worked, but of course everything will be run together.
To print each value on a separate line, use Serial.println(fft_log_out[j]); // send out the data
Note that there are only N/2 unique values, where N is the number of samples input to the FFT operation.

fft_mag_log() - This gives the magnitude of each bin in the FFT. It sums the squares of the imaginary and real, and then takes the square root, and then takes the log base 2 of that value. Therefore, the output is compressed in a logarithmic fashion, and is essentially in decibels (times a scaling factor). It takes no variables, and returns no variables. It uses a lookup table to calculate the log of the square root, and scales the output over the full 8b range {the equation is 16*(log2((img2 + real2)1/2))}. It is only an 8b value, and the values are taken from fft_input[], and returned in fft_log_out[]. The output values are in sequential order of FFT frequency bins, and there are only N/2 total bins, as the second half of the FFT result is redundant for real inputs.