A DFT is used to compute the magnitude and phase of the frequencies desired to
be detected in a frame of sampled data by performing 2 dot products for each such
frequency. The two dot products are calculated using the samples in the frame and
an equal number of equally spaced cosine and sine coefficients for each frequency
to be detected.