frequency_analysis: Fix calculating avg_freq
Created by: bjackman
By default, area_under_curve uses method='trapz' which implicitly does a linear interpolation of the data. This is not desirable for cpu_frequency, which changes ~instantly and stays constant until the next data point.