File:Nonbayesian-categorical-mixture.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 178 × 156 pixels, file size: 16 KB)

    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

    Description
    English: Plate diagram of graphical non-Bayesian categorical mixture model.
    Date
    Source Own work
    Author Benwing
    SVG development
    InfoField
     The SVG code is valid.
    V
     This symbol was created with PGF/TikZ.

    Source code

    TIKZ (tikz) – This Wikidata item has no property P154 (logo). Click here to edit the Wikidata item
    TIKZ (tikz) – This Wikidata item has no property P154 (logo). Click here to edit the Wikidata item
    This media was created with PGF/TikZ (pair of languages for producing vector graphics from a geometric/algebraic description)
    Here is a listing of the source used to create this file.

    Deutsch ∙ македонски ∙ English ∙ +/−

    \documentclass{article}
    \usepackage{tikz,amsmath}
    %\usepackage{siunitx}
    \usetikzlibrary{arrows,snakes,backgrounds,patterns,matrix,shapes,fit,calc,shadows,plotmarks}
    \usepackage[graphics,tightpage,active]{preview}
    \PreviewEnvironment{tikzpicture}
    \PreviewEnvironment{equation}
    \PreviewEnvironment{equation*}
    \newlength{\imagewidth}
    \newlength{\imagescale}
    \pagestyle{empty}
    \thispagestyle{empty}
    
    \usepackage{standalone}
    
    \begin{document}
    
    \begin{tikzpicture}
    \tikzstyle{main}=[circle, minimum size = 10mm, thick, draw =black!80, node distance = 16mm]
    \tikzstyle{hyparam}=[rectangle, minimum size = 5mm, thick, draw =black!80, fill = black!10, node distance = 16mm]
    \tikzstyle{param}=[rectangle, minimum size = 5mm, thick, draw =black!80, node distance = 16mm]
    \tikzstyle{connect}=[-latex, thick]
    \tikzstyle{selector}=[-latex, -|, snake=snake,segment amplitude=.4mm,segment length=2mm,line after snake=1mm, thick]
    \tikzstyle{shortconnect}=[-latex, thin]
    \tikzstyle{box}=[rectangle, draw=black!100]
    \tikzstyle{switch}=[circle, minimum size = 1mm, fill = black!100, draw=black!100]
      \node[param] (phi) [label=below:$\boldsymbol\phi$] {[K]};
      \node[main] (z) [right of=phi,label=below:$z_i$] {K};
      \node[main, fill = black!10] (x) [right of= z,label=below:$x_i$] {V};
      \node[param] (theta) [above of=z,yshift=10mm, label=below:$\boldsymbol\theta$] {[V]};
      \path (phi) edge [connect] (z)
            (z) edge [selector] (x)
            (theta) edge [connect] (x);
      \node[rectangle, inner sep=0mm, fit= (z) (x),label=below right:N, xshift=9mm] {};
      \node[rectangle, inner sep=4.4mm,draw=black!100, fit= (z) (x), xshift=1mm] {};
      \node[rectangle, inner sep=2mm, fit= (theta),label=below right:K, yshift=-2mm, xshift=3mm] {};
      \node[rectangle, inner sep=6.4mm,draw=black!100, fit= (theta), yshift=-2mm, xshift=3mm] {};
    \end{tikzpicture}
    
    \end{document}
    

    Licensing

    Benwing, the copyright holder of this work, hereby publishes it under the following licenses:
    GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
    w:en:Creative Commons
    attribution
    This file is licensed under the Creative Commons Attribution 3.0 Unported license.
    Attribution:
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    You may select the license of your choice.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    1 April 2012

    16,676 byte

    image/svg+xml

    68fe40f896e20239f6aa93ca438d10cedfc554f8

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current10:41, 2 April 2012Thumbnail for version as of 10:41, 2 April 2012178 × 156 (16 KB)wikimediacommons>Benwingupdate for new format for categorical and switching nodes

    There are no pages that use this file.