File:Dirac function approximation.gif
Aus Wikimedia Commons, dem freien Medienarchiv
Zur Navigation springen
Zur Suche springen
Dirac_function_approximation.gif (200 × 335 Pixel, Dateigröße: 89 KB, MIME-Typ: image/gif, Endlosschleife, 10 Bilder, 2,0 s)
Dateiinformationen
Strukturierte Daten
Bildtexte
BeschreibungDirac function approximation.gif | Illustration of approximating the Dirac delta function by gaussians. |
Datum | (UTC) |
Quelle | self-made with MATLAB |
Urheber | Oleg Alexandrov |
Public domainPublic domainfalsefalse |
Ich, der Urheberrechtsinhaber dieses Werkes, veröffentliche es als gemeinfrei. Dies gilt weltweit. In manchen Staaten könnte dies rechtlich nicht möglich sein. Sofern dies der Fall ist: Ich gewähre jedem das bedingungslose Recht, dieses Werk für jedweden Zweck zu nutzen, es sei denn, Bedingungen sind gesetzlich erforderlich. |
Source code (MATLAB)[Bearbeiten]
% Illustration of approximating the Dirac delta function with gaussians.
function main()
r = 3; % the power in the Bernoulli inequality
% KSmrq's colors
red = [0.867 0.06 0.14];
blue = [0, 129, 205]/256;
green = [0, 200, 70]/256;
yellow = [254, 194, 0]/256;
white = 0.99*[1, 1, 1];
% Set up the grid and other parameters
N = 300;
A = -2; B = 2;
C=-1; D = 6;
X = linspace(A, B, N);
% Set up the figure
lw = 3; % linewidth
fs = 18; % font size
for p=1:10
a=1/p;
% gaussian
Y=(1/(a*sqrt(pi)))*exp(-X.^2/a^2);
figure(1); clf;
set(gca, 'fontsize', fs);
set(gca, 'linewidth', 0.4*lw)
hold on;
plot_axes (A, B, C, D, lw/1.5);
plot(X, Y, 'color', blue, 'linewidth', lw);
axis equal; axis([A, B, C, D]);
set(gca, 'XTick', [-2, -1, 0, 1, 2]) % text labels on the x axis
grid on;
H=text(B-1.5, D-0.5, sprintf('a=1/%d', p), 'fontsize', fs);
% save to disk
file = sprintf('Frame%d.eps', 1000+p);
disp(file);
saveas(gcf, file, 'psc2')
pause(0.1);
end
% Converted to gif with the command
% convert -antialias -density 100 -delay 20 -loop 10000 Frame10* Dirac_function_approximation.gif
% then scaled in Gimp
function plot_axes (A, B, C, D, lw)
gray = 0.5*[1, 1, 1];
plot([A B], [0, 0], 'linewidth', lw, 'color', gray);
plot([0, 0], [C, D], 'linewidth', lw, 'color', gray);
Dateiversionen
Klicke auf einen Zeitpunkt, um diese Version zu laden.
Version vom | Vorschaubild | Maße | Benutzer | Kommentar | |
---|---|---|---|---|---|
aktuell | 22:51, 12. Jan. 2008 | 200 × 335 (89 KB) | Oleg Alexandrov (Diskussion | Beiträge) | tweak | |
22:22, 12. Jan. 2008 | 217 × 363 (99 KB) | Oleg Alexandrov (Diskussion | Beiträge) | {{Information |Description=Illustration of approximating the Dirac delta function by gaussians. |Source=self-made with MATLAB |Date=~~~~~ |Author= Oleg Alexandrov |Permission= |other_versions= }} {{ |
Du kannst diese Datei nicht überschreiben.
Dateiverwendung
Die folgende Seite verwendet diese Datei:
Globale Dateiverwendung
Die nachfolgenden anderen Wikis verwenden diese Datei:
- Verwendung auf ar.wikipedia.org
- Verwendung auf bg.wikipedia.org
- Verwendung auf bn.wikipedia.org
- Verwendung auf cs.wikipedia.org
- Verwendung auf da.wikipedia.org
- Verwendung auf de.wikipedia.org
- Verwendung auf el.wikipedia.org
- Verwendung auf en.wikipedia.org
- Verwendung auf en.wikibooks.org
- Verwendung auf fa.wikipedia.org
- Verwendung auf fi.wikipedia.org
- Verwendung auf fr.wikipedia.org
- Verwendung auf he.wikipedia.org
- Verwendung auf hi.wikipedia.org
- Verwendung auf hu.wikipedia.org
- Verwendung auf id.wikipedia.org
- Verwendung auf it.wikipedia.org
- Verwendung auf ka.wikipedia.org
- Verwendung auf ko.wikipedia.org
- Verwendung auf nl.wikipedia.org
- Verwendung auf no.wikipedia.org
- Verwendung auf pt.wikipedia.org
- Verwendung auf ro.wikipedia.org
- Verwendung auf simple.wikipedia.org
- Verwendung auf si.wikipedia.org
- Verwendung auf sl.wikipedia.org
- Verwendung auf sr.wikipedia.org
- Verwendung auf sv.wikipedia.org
- Verwendung auf uk.wikipedia.org
- Verwendung auf vi.wikipedia.org
- Verwendung auf zh.wikipedia.org