Skip to content

Commit

Permalink
Added few more things to fftWithHanning
Browse files Browse the repository at this point in the history
  • Loading branch information
wulffern committed Nov 9, 2024
1 parent f51e05d commit f085f54
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cicsim/simcalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,14 @@ def fftWithHanning(self,ser):

data = {}
data["sndr"] = 20*np.log10(s/n)

data["amp"] = max(ydB)
data["sndrfs"] = data["sndr"] - data["amp"]
data["sfdr"] = max(ydB) - np.max(ydB[noisebins])
data["enob"] = (data["sndr"]-1.76)/6.02


data["enobfs"] = (data["sndrfs"]-1.76)/6.02
data["fbin"] = fbin
data["nbpt"] = M
return (data,ydB)


Expand Down

0 comments on commit f085f54

Please sign in to comment.