June 2015
Beginner
348 pages
8h 44m
English
We learned in the previous Time for action section how to detrend a signal. This detrended signal could have a cyclical component. Let's try to visualize this. Some of the steps are a repetition of steps in the previous Time for action section, such as downloading the data and setting up matplotlib objects. These steps are omitted here.
amps = np.abs(fftpack.fftshift(fftpack.rfft(y)))
10 percent of the strongest component, throw it out:amps[amps < 0.1 * amps.max()] = 0
Read now
Unlock full access