File:Levy0 LdistributionPDF.svg
From testwiki
Jump to navigation
Jump to search
Original file (SVG file, nominally 484 × 428 pixels, file size: 82 KB)
Contents
This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.
Summary
| DescriptionLevy0 LdistributionPDF.svg |
English: Probability density function for the Levy distribution for c=1/2, 1, 2, 4, 8. Plotted on log-log scale. Created using python using numpy and matplotlib libraries. |
| Date | |
| Source | Own work |
| Author | Krishnavedala |
Source Code
|
|---|
from numpy import *
from matplotlib.pyplot import *
from mpl_toolkits.axes_grid.axislines import SubplotZero
pdf = lambda c,mu,x: sqrt(c/(2.*pi)) * exp(-0.5*c / (x-mu)) / (x-mu)**1.5
fig = figure(figsize=(6,5))
ax = SubplotZero(fig,111)
fig.add_subplot(ax)
ax.grid(True)
ax.minorticks_on()
x = logspace(-1.6,1.6)
ax.loglog(x,pdf(.5,0.,x),c='r',lw=1.5,label=r'$c=1/2$')#'$c={}^1\!/_2$')
ax.loglog(x,pdf(1.,0.,x),c='k',lw=1.5,label=r'$c=1$')
ax.loglog(x,pdf(2.,0.,x),c='c',lw=1.5,label=r'$c=2$')
ax.loglog(x,pdf(4.,0.,x),c='b',lw=1.5,label=r'$c=4$')
ax.loglog(x,pdf(8.,0.,x),c='g',lw=1.5,label=r'$c=8$')
ax.set_ylim(1e-4,1)
ax.set_xlim(0.05,15)
ax.legend(loc=4,frameon=False)
ax.set_xticks((0.1,1.0,10.))
ax.set_xticklabels((r'0.1',r'1.0',r'10.0'))
ax.set_xlabel(r'x $-\!\rightarrow$')
fig.savefig("Levy0_LdistributionPDF.svg",bbox_inches="tight",pad_inches=.15)
|
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
| This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
| The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
Captions
Add a one-line explanation of what this file represents
Items portrayed in this file
depicts
some value
25 September 2011
83,992 byte
image/svg+xml
58bb24b6cec93fcc40124cf1aee2dfce2ff755c3
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 17:50, 25 September 2011 | 484 × 428 (82 KB) | wikimediacommons>Krishnavedala |
File usage
There are no pages that use this file.