fixed analyze to zero out negative frequencies