File:Logistic cdf.svg
Summary
| Description |
English: The cumulative distribution function of a logistic distribution. |
| Date | |
| Source | Own work |
| Author | Krishnavedala |
Source code python: |
|---|
from numpy import *
from matplotlib.pyplot import *
from mpl_toolkits.axes_grid.axislines import SubplotZero
e = lambda mu,s,x: exp( (mu-x)/s )
cdf = lambda mu,s,x: 1./ ( 1. + e(mu,s,x) )
fig = figure(figsize=(6,5))
ax = SubplotZero(fig,111)
fig.add_subplot(ax)
ax.grid(True)
ax.minorticks_on()
x = linspace(-5,20,100)
mu = [5,9,9,6,2]
s = [2,3,4,2,1]
for b in arange(5):
ax.plot(x,cdf(mu[b],s[b],x),lw=1.5,label=r'$\mu=%d,\, s=%d$'%(mu[b],s[b]))#'$c={}^1\!/_2$')
ax.set_ylim(0,1)
ax.set_xlim(-5,20)
ax.legend(loc='lower right',frameon=False)
fig.savefig("test.svg",bbox_inches="tight",pad_inches=.15)
|
Licensing
| I, the copyright holder of this work, release this work into the public domain. This applies worldwide. In some countries this may not be legally possible; if so: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law. |