Advertisement
stiansjogren

calcSNR - correct

Oct 7th, 2016
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.27 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*A*B + 1.7*B);% SOme error here
  7.    
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement