Advertisement
rfmonk

snr.py

Apr 3rd, 2014
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. import math
  2. signal_power = 9
  3. noise_power = 10
  4. ratio = signal_power / noise_power
  5. decibels = 10 * math.log10(ratio)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement