파일:Dirichlet distributions.png

testwiki
둘러보기로 이동 검색으로 이동
원본 파일 (885 × 763 픽셀, 파일 크기: 191 KB, MIME 종류: image/png)

이 파일은 위키미디어 공용에 있으며, 다른 프로젝트에서 사용하고 있을 가능성이 있습니다. 해당 파일에 대한 설명이 아래에 나와 있습니다.

파일 설명

설명 Several images of probability densities of the Dirichlet distribution as functions on the 2-simplex. Clockwise from top left: α = (6,2,2), (3,7,5), (6,2,6), (2,3,4).
출처 en:Image:Dirichlet_distributions.png
 이 다이어그램Mathematica(으)로 n에 의해서제작되었습니다.
저자 en:User:ThG
이 그림 파일은 벡터 SVG 형식으로 다시 만들어야 합니다. SVG의 장점에 대해서는 여기(영어)를 참고해 주십시오. 만약 이 그림의 SVG 버전이 이미 존재한다면 이 틀을 {{vector version available|새 파일 이름}}으로 대체해 주십시오.

라이선스

이 저작물은 완전히 공공의 재산으로서의 정보로만 구성되어 있으며, 창작성이 있는 요소가 포함되어 있지 않아 저작권 보호에 부적격하므로 퍼블릭 도메인입니다.
Public domain 이 작품은 저작자인 영어 위키백과ThG에 의해 퍼블릭 도메인으로 공개된 작품입니다. 이 공개 선언은 전 세계적으로 유효합니다.
만약 저작권의 포기가 법률적으로 가능하지 않은 경우,
ThG은 이 작품을 법적으로 허용되는 한도 내에서 누구나 자유롭게 어떤 목적으로도 제한 없이 사용할 수 있도록 허용합니다.

Mathematica Source code

(* matrix mapping standard basis in R^2 to two sides of equilateral triangle T *)
M = {{1, Cos[Pi/3]}, 
     {0, Sin[Pi/3]}};
Mi = Inverse[M];

(* map a point in the triangle T to the corresponding point on the standard 2-simplex S *) 
TtoS[xy_] := Module[{p1, p2}, {p1, p2} = Mi . xy; {p1, p2, 1 - p1 - p2}];

(* calculate the probability density as a function on T *)
f[xy_, a_] := Module[{a1, a2, a3, x, y, z, B},
    {a1, a2, a3} = a;
    {x, y, z} = TtoS[xy];
    B = Gamma[a1 + a2 + a3]/(Gamma[a1] * Gamma[a2] * Gamma[a3]);
    B*(x^(a1 - 1))*(y^(a2 - 1))*(z^(a3 - 1))];

(* recursively tesselate triangle (x1, x2, x3) by bisecting its edges and return
   a list of triangles as in input suitable for Graphics3D *)
Tesselate[x1_, x2_, x3_, alpha_] := 
  Module[ {d1 = (x2 - x1), d2 = (x3 - x2), d3 = (x1 - x3), m, g}, 
    m = Max[{d1.d1, d2.d2, d3.d3}];
    If[ m < 0.0002, (* stop when the length of every edge is below threshold *)
      {{EdgeForm[], (* don't display edges of triangles *)
          Polygon[ {
              {x1[[1]], x1[[2]], f[x1, alpha]}, 
              {x2[[1]], x2[[2]], f[x2, alpha]},
              {x3[[1]], x3[[2]], f[x3, alpha]}}]}},
      Module[{m1 = .5*(x1 + x2), m2 = .5*(x2 + x3), m3 = .5*(x3 + x1)},
        Join[
          Tesselate[x1, m1, m3, alpha],
          Tesselate[m1, x2, m2, alpha],
          Tesselate[m3, m1, m2, alpha],
          Tesselate[m3, m2, x3, alpha]] ]]] 

Show[Graphics3D[Tesselate[{0, 0},  {1, 0}, {Cos[Pi/3], Sin[Pi/3]}, 
      {7, 2, 3} (* alpha *) ]],
  (* stupid display options *)
  Boxed -> False, 
  PlotRange -> { {0, 1}, {0, 1}, {0, 15}}, 
  AxesEdge -> {None, None, {-1, -1}},
  Axes -> True,
  FaceGrids -> { {0, -1, 0}},
  BoxRatios -> {1, 1, .6}]

설명

이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다

이 파일에 묘사된 항목

다음을 묘사함

196,058 바이트

763 화소

885 화소

ca60cca91f54cd663bd147f8f086cf4d1224188a

파일 역사

날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.

날짜/시간섬네일크기사용자설명
현재2016년 10월 2일 (일) 17:522016년 10월 2일 (일) 17:52 판의 섬네일885 × 763 (191 KB)wikimediacommons>CmdrjamesonCompressed with pngout. Reduced by 145kB (43% decrease).

다음 문서 1개가 이 파일을 사용하고 있습니다: