frequency function

Calculation of frequency and mean wind speed