mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 13:48:42 -05:00
Make Watterson simulator causal.
This commit is contained in:
parent
9fa08d3838
commit
c52f755afc
@ -47,7 +47,7 @@ subroutine watterson(c,npts,nsig,fs,delay,fspread)
|
||||
|
||||
nshift=nint(0.001*delay*fs)
|
||||
if(delay.gt.0.0) then
|
||||
c2(0:npts-1)=cshift(c(0:npts-1),nshift)
|
||||
c2(0:npts-1)=cshift(c(0:npts-1),-nshift) !negative shifts are right shifts
|
||||
else
|
||||
c2(0:npts-1)=0.0
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user