#include <stdlib.h>
#include <stdio.h>
#include <math.h>

int IsPowerOfTwo ( unsigned x );

unsigned NumberOfBitsNeeded ( unsigned PowerOfTwo );

unsigned ReverseBits ( unsigned index, unsigned NumBits );

double Index_to_frequency ( unsigned NumSamples, unsigned Index );

void Spectrum(unsigned NumSamples, double* RealOut, double* ImgOut, int Bands, int* StopFreq, double* Spectrum);
