Advertisement
martaczaska

czestotliwosc_autokor

May 31st, 2020
1,054
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. void czestotliwosc(int p){
  2.     long df = f_s >> 11; // dzielenie przez 2048
  3.     df = ((df << 15) + (1 << 14));                  //format Q15
  4.     int f_maks = (int)((p*df) >> 15);
  5.  
  6.     printf("Częstotliwosc znalezionego maksimum wynosi: ");
  7.     printf("%d \n", f_maks);
  8.  
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement