get_avg_phi_log function

Compute log sample average of fourier transform and get mod