File:Nyquist Shannon theorem sine visualisation animation.gif

Nyquist_Shannon_theorem_sine_visualisation_animation.gif(256 × 192 pixels, file size: 2.39 MB, MIME type: image/gif, looped, 160 frames, 16 s)

Captions

Captions

Add a one-line explanation of what this file represents

Summary edit

Description
English: Top: Actual signal

Middle: Sampled signal

Bottom: Reconstruction of the signal
Date
Source Own work
Author Enormator

The script used to generate this animation:

#!/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.gif[1-160] ani.gif

Licensing edit

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current20:57, 22 December 2013Thumbnail for version as of 20:57, 22 December 2013256 × 192 (2.39 MB)Enormator (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: