File:Pcm.svg

Summary

An example of 4-bit pulse code modulation (16 different binary-coded possibilities) showing quantization and sampling of a signal (red). Generated by myself using Inkscape to heavily modify gnuplot output.


See: 4-bit-linear-PCM.svg

Details

Generated curve and scale with the following gnuplot script:

Source code

Gnuplot code

set terminal svg size 1600 1200 fname "Times New Roman" fsize 48 enhanced
 set output "pcm.svg"
 set samples 1000
 
 set nokey
 set grid ytics lw 4
 set xtics 32
 set mxtics 32
 set ytics 1
 set noxzeroaxis
 set noyzeroaxis
 set noborder
 
 set xrange [0:32]
 set yrange [0:15]
 
 plot 7.5*sin(2*pi*x/32) + 7.5 lw 4

Floor function was then performed by hand in Inkscape, along with various other image quality tweaks.

Other versions

[edit]

.svg:

.png:

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
Category:License migration redundant#Pcm.svgCategory:GFDL#Pcm.svg
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
This licensing tag was added to this file as part of the GFDL licensing update.
Category:CC-BY-SA-3.0-migrated#Pcm.svg
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 2.5 Generic, 2.0 Generic and 1.0 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-2.5,2.0,1.0#Pcm.svg
You may select the license of your choice.
Category:Self-published work
Category:Images with Gnuplot source code Category:Media missing infobox template Category:Pulse-code modulation
Category:CC-BY-SA-2.5,2.0,1.0 Category:CC-BY-SA-3.0-migrated Category:Created with Gnuplot code Category:Files with no machine-readable author Category:Files with no machine-readable source Category:GFDL Category:Images with Gnuplot source code Category:License migration redundant Category:Media missing infobox template Category:Pulse-code modulation Category:Self-published work