Suppose I have a list of amplitude (straight line signal):
x = [1,1,1,0,1,1,1,1]
By intuition, zero value in list x makes the noise of straight signal.
If we modified some value, such as 2, we get more noise level.
y = [1,1,1,0,1,2,1,1]
Hence by my intuition, SNR of list x is greater than SNR of list y.
So how do I calculate SNR from a list?
I know that formula of SNR basically if signal amplitude is voltage.
SNR = 20*log(S_i/N_i)
S_i is value of a list signal in an index.
But I have no idea how to get
Assume we are using volt unit.
I expect I can compute SNR programmatically from scratch without any external library with python.