get_avg_phi function

Compute Sample Average of Fourier Transform Magnitude