I have found some code for a simple DFT algorithm here: Discrete Fourier transform
But I have read the number of Bins would be half the number of samples, but this gives the same number of entries in the output array as are in the input. So my question is, how does the bin size relate to the number of samples and the Fourier transform size