must divide spectrum length by 2 to get histogram length