Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Chapter 9 homework (2nd edition)
Avatar
madara
Member
Members
March 20, 2021 - 7:22 pm
Member Since: June 30, 2013
Forum Posts: 3
sp_UserOfflineSmall Offline

Hi Will (or anyone else who knows),

I am doing the homework in Python and have the following as a solution for 1/2 Nyquist.  This is adding another delay (2 samples) in addition to the one sample delay which seems to work very well.  However, when trying to use the same idea for 1/4 Nyquist, I found that it does not seem to translate well.  That is, having 4 delay likes (each one more sample in time more than the last) is perhaps not the real solution after all.  Can you give me any advice?

# 1/2 Nyquist
x = wpf.halfNyq()
y = np.full_like(x,0,dtype=float)
a0, a1 = 0.5, 0.5
xn1, xn2 = 0.0, 0.0

for n in range(np.size(x)):
    y[n] = a0 * x[n] + a1 * xn2
    xn2 = xn1
    xn1 = x[n]

Thank you very much!  So far, the book is really great!

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
10 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 51

Skyler: 48

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

clau_ste: 39

jim: 34

JimmyM: 33

Gwen: 32

Member Stats:

Guest Posters: 1

Members: 691

Moderators: 1

Admins: 5

Forum Stats:

Groups: 13

Forums: 41

Topics: 754

Posts: 2881

Newest Members:

Niklas, Wutru, Tim Campbell, Danny Jonel, Valentin, joelr, PseudoSpaceMusic, duo.dirtykidz, Paul, Reakenzo

Moderators: W Pirkle: 569

Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 569, VariableCook: 3