原本檔案(SVG檔案,表面大細: 300 × 300 像素,檔案大細:1 KB)

摘要

描述

en:Information entropy of a en:Bernoulli trial X. If X can assume values 0 and 1, entropy of X is defined as H(X) = -Pr(X=0) log2 Pr(X=0) - Pr(X=1) log2 Pr(X=1). It has value if Pr(X=0)=1 or Pr(X=1)=1. The entropy reaches maximum when Pr(X=0)=Pr(X=1)=1/2 (the value of entropy is then 1). The image was created in the following steps. First I have created a DVI version starting from a LaTeX/Pstricks source. Here is the code:

%Plot of information entropy of Bernoulli variable
%
%latex binary_entropy_plot; dvips binary_entropy_plot
%open .ps file in gimp, choose strong antialias in both text and graphics,
%resulution 500, color mode, crop, scale to 45%, save as .png
\documentclass[12pt]{article}
\usepackage{pst-plot}
\begin{document}
\psset{unit=4cm}        
\begin{pspicture}(0,0)(1.01,1)
\psgrid[gridlabels=0pt,gridcolor=lightgray,subgriddiv=10,subgridcolor=lightgray](0,0)(0,0)(1,1)
\newrgbcolor{myblue}{0 0 0.7}
\psaxes[arrows=->,arrowsize=2pt 4,Dx=0.5,Dy=0.5](0,0)(0,0)(1.1,1.1)
\psplot[plotstyle=curve,plotpoints=100,linewidth=1.8pt,linecolor=myblue]{0.0001}{0.9999}{-1 x x log 2 log div mul 1 x sub 1 x sub log 2 log div mul add mul}
\rput(0.5,-0.22){$\Pr(X=1)$}
\rput{90}(-0.28,0.5){$H(X)$}
\end{pspicture}
\end{document}
compile it with latex to get the DVI. Then it was converted to PS with dvips. Finally it was converted to SVG using ps2svg.sh; it needed some post-processing with Inkscape
日期
來源 Own work based on: Binary entropy plot.png by Brona
作者
Vector:

Newer version by Rubber Duck
SVG genesis
InfoField
 
The SVG code is valid.
 
This diagram was created with a text editor.
Previous version had been created with Inkscape (40763 bytes)  d  now 3.08% of previous size
 
Please do not replace the simplified code of this file with a version created with Inkscape or any other vector graphics editor
 
 This diagram uses embedded text that can be easily translated using a text editor.

協議

我,呢份作品嘅作者,決定用以下許可發佈呢件作品:
GNU head 根據自由軟體基金會發佈嘅無固定段落、封面文字同封底文字GNU自由文件授權條款第1.2或打後嘅版本,你獲授權可以重製、散佈同埋修改爾份文件。授權條款嘅副本喺章節GNU自由文件授權條款
w:en:Creative Commons
署名 相同方式分享
呢個檔案用共享創意 姓名標示-非商業性-相同方式分享3.0 未本地化版本條款授權。
你可以:
  • 去分享 – 複製、發佈同傳播呢個作品
  • 再改 – 創作演繹作品
要遵照下面嘅條件:
  • 署名 – 你一定要畀合適嘅表彰、畀返指向呢個授權條款嘅連結,同埋寫明有無改過嚟。你可以用任何合理方式去做,但唔可以用任何方式暗示授權人認可咗你或者你嘅使用方式。
  • 相同方式分享 – 如果你用任何方式改過呢個作品,你必須要用返原本或者相似嘅條款發佈。
This licensing tag was added to this file as part of the GFDL licensing update.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

圖中顯示嘅係

4月 2007

image/svg+xml

a9cd604177c23863a984861678b72545aed6298f

1,258 字節

300 像素

300 像素

檔案歷史

撳個日期/時間去睇響嗰個時間出現過嘅檔案。

日期/時間縮圖尺寸用戶註解
現時2015年2月9號 (一) 16:07響2015年2月9號 (一) 16:07嘅縮圖版本300 × 300(1 KB)Krishnavedalasimplified drawing
2007年4月22號 (日) 15:19響2007年4月22號 (日) 15:19嘅縮圖版本169 × 163(40 KB)Alejo2083{{Information |Description=Information entropy of a Bernoulli trial ''X''. If ''X'' can assume values 0 and 1, entropy of ''X'' is defined as ''H''(''X'') = -Pr(''X''=0) log<sub>2</sub> Pr(''X''=0) - Pr(''X''=1) log<sub>2</sub> Pr(''X''=1). It has

以下嘅2版用到呢個檔:

全域檔案使用情況

下面嘅維基都用緊呢個檔案:

Metadata