Keywords: Nyquist Shannon theorem sine visualisation animation.gif en Top Actual signal Middle Sampled signal Bottom Reconstruction of the signal 2013-12-22 21 47 50 own Enormator The script used to generate this animation <pre> /bin/bash mkdir -p frames imgw 32 outw 256 outsize outw x64 for i in 1 160 do rate `echo scale 1; i 0/5 0 bc` rrate `echo scale 1; 32- rate bc` if i -le 80 ; then rrate rate fi convert -size outsize canvas -fx sin i+0 5 /w 2 Pi rate-Pi +1 /2 frames/high i gif convert -size imgw x1 canvas -fx sin i+0 5 /w 2 Pi rate-Pi +1 /2 -interpolate nearest-neighbor -interpolative-resize outsize\ frames/low i gif convert -size outsize canvas -fx sin i+0 5 /w 2 Pi rrate-Pi +1 /2 frames/recons i gif convert frames/high i gif frames/low i gif frames/recons i gif -append frames/ i gif done convert -loop 0 -delay 10 frames/ d gif1-160 ani gif </pre> cc-zero Uploaded with UploadWizard Nyquist Shannon theorem |