File:Convolution Animation (Gaussian).gif

Aus Wikimedia Commons, dem freien Medienarchiv
Zur Navigation springen Zur Suche springen

Convolution_Animation_(Gaussian).gif(360 × 222 Pixel, Dateigröße: 805 KB, MIME-Typ: image/gif, Endlosschleife, 161 Bilder)

Bildtexte

Kurzbeschreibungen

Ergänze eine einzeilige Erklärung, was diese Datei darstellt.
Beschreibung
English: A diagram showing the convolution of two Gaussian functions, (red) and (dashed blue). Also sohwn is the time-reversed and shifted g(τ−t) in blue, the product f(t)g(τ−t) (green) and the convolution h(t)=f(t)∗g(t) (black, equal to the area of the product at the particular τ)
Datum
Quelle Eigenes Werk
Urheber Inductiveload
Genehmigung
(Weiternutzung dieser Datei)
Public domain 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.

Mathematica Code

[Bearbeiten]
(*Function definitions*)
f[t_] := Exp[-5 t^2];
g[t_] := Exp[-10 t^2]/2;
h[y_] := Module[
   {t},
   Convolve[f[t], g[t], t, y]
   ];

(*Parts of the drawing that only need to be computed once*)
constplots = Plot[
   {f[t], g[t], h[t]},
   {t, -2, 2},
   PlotStyle -> {Red, {Blue, Dashed}, Black},
   ClippingStyle -> False,
   Axes -> False,
   Exclusions -> False
   ];

anim =
  Table[Show[
    {
     (*The plots we generated earlier*)
     constplots,
     
     (*Plot the time reversed g[t], g[\[Tau]-t]*)
     Plot[g[\[Tau] - t],
      {t, -5, 5},
      PlotPoints -> 100,
      ClippingStyle -> False,
      PlotStyle -> Blue,
      Axes -> False],
     
     (*Plot the product of the f[t] and g[\[Tau]-t]*)
     Plot[f[t]*g[\[Tau] - t],
      {t, -5, 5},
      PlotPoints -> 100,
      ClippingStyle -> False,
      Filling -> Axis,
      FillingStyle -> Directive[Green, Opacity[0.2]],
      PlotStyle -> Green,
      Axes -> False],
     
     (*Plot the embellishments*)
     Graphics[
      {{Blue, Line[{{\[Tau], -0.05}, {\[Tau], 1.1}}]},
       {Red, Text[f, {.2, .95}, Background -> None]},
       {Blue, Text[g, {.2, .5}, Background -> None]},
       {Blue, 
        Text["g(\[Tau]-t)", {\[Tau] - 0.35, .4}, Background -> None]},
       {Green, 
        Text["f(t)g(\[Tau]-t)", {\[Tau] - 0.35, -0.04}, 
         Background -> None]},
       {Black, Text[Star[f, g], {0, .17}, Background -> None]},
       {Blue, Text["\[Tau]", {\[Tau], -0.1}, Background -> White]}
       }]
     },
    PlotRange -> {{-1.9, 1.9}, {-.2, 1}}],
   
   {\[Tau], -2, 2, .025}(*Table index is the time delay*)
   ];

ListAnimate[anim]

Export["anim.gif", anim]

Dateiversionen

Klicke auf einen Zeitpunkt, um diese Version zu laden.

Version vomVorschaubildMaßeBenutzerKommentar
aktuell04:06, 5. Mär. 2009Vorschaubild der Version vom 04:06, 5. Mär. 2009360 × 222 (805 KB)Inductiveload (Diskussion | Beiträge){{Information |Description={{en|1=A diagram showing the convolution of two Gaussian functions, <math>f(t)=e^{-5t^2}</math> (red) and <math>g(t)=\frac{1}{2} e^{-10 t^2}</math> (dashed blue). Also sohwn is the time-reversed and shifted ''g(τ−t)'' in b

Keine Seiten verwenden diese Datei.

Globale Dateiverwendung

Die nachfolgenden anderen Wikis verwenden diese Datei:

Metadaten