Image:Pulse density modulation.svg

From Wikipedia, the free encyclopedia

Pulse_density_modulation.svg (SVG file, nominally 607 × 494 pixels, file size: 32 KB)

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.
Description
English: Self-made using en:Python (programming language), en:NumPy and en:Matplotlib. Here's my implementation of the algorithm derived in en:pulse-density modulation:
from pylab import *
from numpy import *
 
def pdm(x):
    y = zeros_like(x)
    qe = zeros_like(x)
 
    qe[-1] = 0 # inital [[:en:quantization error]] is 0
    for n in range(x.size):
        y[n] = 2*( x[n] > qe[n-1] ) - 1
        qe[n] = y[n] - x[n] + qe[n-1]
 
    return y, qe
 
t = arange(500)
x = sin(2*pi/500 * t)
y, qe = pdm(x)
 
plot( t, y, label="PDM sine wave" )
plot( t, x, label="PCM sine wave", linewidth=5 )
 
axis((-25, 525, -1.25, 1.5))
legend(loc='upper right')
 
xticks(fontsize=16)
yticks(fontsize=16)
xlabel("Discrete time (n)", fontsize=18)
ylabel("Signal amplitude",fontsize=18)
 
savefig("pdm.svg")
Source

Transfered from en.wikipedia Transfer was stated to be made by User:moxfyre.

Date

2007-10-23 (original upload date)

Author

Original uploader was Moxfyre at en.wikipedia

Permission
(Reusing this image)

CC-BY-SA-3.0,2.5,2.0,1.0; Released under the GNU Free Documentation License.


[edit] License information

Moxfyre at en.wikipedia, the copyright holder of this work, has published or hereby publishes 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".

Aragonés | العربية | Asturianu | Български | বাংলা | ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী | Brezhoneg | Bosanski | Català | Cebuano | Česky | Dansk | Deutsch | Ελληνικά | English | Esperanto | Español | Eesti | Euskara | فارسی | Suomi | Français | Gaeilge | Galego | עברית | Hrvatski | Magyar | Bahasa Indonesia | Ido | Íslenska | Italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Kurdî / كوردی | Latina | Lëtzebuergesch | Lietuvių | Bahasa Melayu | Nnapulitano | Nederlands | ‪Norsk (nynorsk)‬ | ‪Norsk (bokmål)‬ | Occitan | Polski | Português | Română | Русский | Slovenčina | Slovenščina | Shqip | Српски / Srpski | Svenska | తెలుగు | ไทย | Türkçe | Українська | اردو | Tiếng Việt | Volapük | Yorùbá | ‪中文(中国大陆)‬ | ‪中文(台灣)‬ | +/-

Some rights reserved
Creative Commons Attribution iconCreative Commons Share Alike icon
This file is licensed under the Creative Commons Attribution ShareAlike license versions 3.0, 2.5, 2.0, and 1.0

Български | Català | Česky | Dansk | Deutsch | Ελληνικά | English | Español | Euskara | Estremeñu | Français | עברית | Italiano | 日本語 | 한국어 | Lietuvių | Nederlands | ‪Norsk (bokmål)‬  | Occitan | Polski | Piemontèis | Português | Русский | 中文 | +/-

You may select the license of your choice.


[edit] Original upload log

The original description page is/was here. All following user names refer to en.wikipedia.

  • 2007-10-23 06:56 Moxfyre 607×494×0 (33019 bytes) Self-made using algorithm derived in [[pulse-density modulation]]

File history

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

Date/TimeDimensionsUserComment
current01:38, 17 December 2007607×494 (32 KB)Moxfyre ({{Information |Description={{en|Self-made using en:Python (programming language), en:NumPy and en:Matplotlib. Here's my implementation of the algorithm derived in en:pulse-density modulation: <source lang="python"> from pylab import )
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):