Wie berechnet man SQNR?Python

Python-Programme
Anonymous
 Wie berechnet man SQNR?

Post by Anonymous »

Die Formel für SQNR (Verhältnis von Signal-zu-Quantisation-Noise) lautet:

Code: Select all

10*log10(fp^2/(fp-FP)^2))

FP repräsentiert das Signal für Gleitpunkt (Original).

Code: Select all

print(fp .shape) #(100,300,125)
print(FP.shape) #(100,300,125)
for i in range(100) :
#1. SQNR[i] = 10 * math.log10(((fp[i]**2).sum())/((fp[i]-FP[i])**2).sum())
#2. SQNR[i] = 10 * math.log10(((np.mean(fp[i])**2))/(np.mean(fp[i]-FP[i])**2))
#3. SQNR[i] = 10 * math.log10(np.mean(fp[i]**2)/(np.mean(fp[i]-FP[i])**2))

print(np.mean(SQNR))

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post