Advertisement
stiansjogren

SNR albertsheim

Sep 23rd, 2016
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.28 KB | None | 0 0
  1. function SNR = calcSNR(Pd, Pfa, n)
  2.     % n   - number of hits/scan
  3.     % Pd  - prob of detection
  4.     % Pfa - prob of false alarm
  5.     A = log(.62/Pfa); B = log(Pd/(1-Pd));
  6.     SNR = -5*log10(n) + (6.2 + 4.54/(sqrt(n+.44)))*log10(A + .12*B + 1.7*A*B);% SOme error here
  7.    
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement