Image:DOG vs MHF.png

From Wikipedia, the free encyclopedia

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.

La bildo estas kopiita de wikipedia:en. La originala priskribo estas:

Contents

[edit] Summary

Comparison of Difference of Gaussians and Mexican Hat Function. This file was created at 04:58, 6 December 2005 (UTC) by JustinWick, using Mathematica 5.0. It is intended to illustrate that DoG is a reasonable approximation to MHF.

[edit] Licensing

Public domain I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.

In case this is not legally possible:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.


Afrikaans | Alemannisch | Aragonés | العربية | Asturianu | Български | Català | Česky | Cymraeg | Dansk | Deutsch | Eʋegbe | Ελληνικά | English | Español | Esperanto | Euskara | Estremeñu | فارسی | Français | Galego | 한국어 | हिन्दी | Hrvatski | Ido | Bahasa Indonesia | Íslenska | Italiano | עברית | Kurdî / كوردی | Latina | Lietuvių | Latviešu | Magyar | Македонски | Bahasa Melayu | Nederlands | ‪Norsk (bokmål)‬ | ‪Norsk (nynorsk)‬ | 日本語 | Polski | Português | Ripoarisch | Română | Русский | Shqip | Slovenčina | Slovenščina | Српски / Srpski | Svenska | ไทย | Tagalog | Türkçe | Українська | Tiếng Việt | Walon | ‪中文(简体)‬ | ‪中文(繁體)‬ | zh-yue-hant | +/-

[edit] Notes on Generation

To reproduce this plot in mathematica, use the following code:

<< "Statistics`NormalDistribution`";
DOG[mu_, s1_, s2_][x_] := PDF[NormalDistribution[mu, s1], x] - PDF[NormalDistribution[mu, s2], x]; 
MHF[x_] := ((2/(Sqrt[3]*Pi^(1/4)))*(1 - x^2))/E^(x^2/2);
Show[Plot[c*DOG[0, a, b][x] /. {a -> 1.3383326406221043,  b -> 0.7477302449634321, c -> -3.812773094633841}, {x, -5, 5}, 
PlotRange -> {-1,  1}, Frame -> True, Axes -> False, PlotStyle -> {RGBColor[0, 0, 1]}, PlotLabel -> "Difference of Gaussians"], 
Plot[MHF[x], {x, -5, 5}, PlotRange -> {-1, 1}, Frame -> True, Axes -> False, 
PlotStyle -> RGBColor[1, 0, 0], PlotLabel -> "Mexican Hat Function"], PlotLabel -> "Difference of Gaussians and Mexican Hat Function"]

Note, to fit the DoG best to the MHF, I utilized the following code:

NMinimize[{Hold[NIntegrate[Abs[c*DOG[0, a, b][x] - MHF[x]], {x, -5, 5}]], {a > 0, b > 0}}, {a, b, c}]

This uses least squares fitting, which may be slightly suboptimal.

date/time username edit summary
05:22, 6 December 2005 en:User:JustinWick (Explaination of how I created this image.)
04:58, 6 December 2005 en:User:JustinWick (Comparison of <a href="/wiki/Difference_of_Gaussians" title="Difference of Gaussians">Difference of Gaussians</a> and <a href="/w/index.php?title=Mexican_Hat_Function&action=edit" class="new" title="Mexican Hat Function">Mexican Hat Function</a>. This file was created at ~~~~~ by JustinWick, using Mathematica 5.0.)

[edit] Historio de la dosiero

Legend: (cur) = this is the current file, (del) = delete this old version, (rev) = revert to this old version.

Click on date to download the file or see the image uploaded on that date.

File history

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

Date/TimeDimensionsUserComment
current19:02, 18 March 2006486×900 (10 KB)Maksim (La bildo estas kopiita de wikipedia:en. La originala priskribo estas: == Summary == Comparison of Difference of Gaussians and Mexican Hat Function. This file was created at 04:58, 6 December 2005 (UTC) by JustinWick, using Mathematica 5.0. It i)
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):