specStats function

Calculate and plot statistics on a frequency spectrum