Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Aug 16, 2019
1 parent 7ef0c2b commit 795e5ac
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
21 changes: 11 additions & 10 deletions tikz/artificial-neuron/artificial-neuron.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@
\begin{tikzpicture}
\node[draw,circle,minimum size=25pt,inner sep=0pt] (x) at (0,0) {$\Sigma$ $\varphi$};

\node[inputNode] (x0) at (-2, 1.5) {$\tiny x_0$};
\node[inputNode] (x1) at (-2, 0.75) {$\tiny x_1$};
\node[inputNode] (x2) at (-2, 0) {$\tiny x_2$};
\node[inputNode] (x3) at (-2, -0.75) {$\tiny x_3$};
\node[inputNode] (xn) at (-2, -1.75) {$\tiny x_n$};
\node[inputNode] (x0) at (-2, 1.5) {\color{red}$\tiny x_0$};
\node[inputNode] (x1) at (-2, 0.75) {\color{red}$\tiny x_1$};
\node[inputNode] (x2) at (-2, 0) {\color{red}$\tiny x_2$};
\node[inputNode] (x3) at (-2, -0.75) {\color{red}$\tiny x_3$};
\node[inputNode] (xn) at (-2, -1.75) {\color{red}$\tiny x_n$};

\draw[stateTransition] (x0) to[out=0,in=120] node [midway, sloped, above=-2] {$w_0$} (x);
\draw[stateTransition] (x1) to[out=0,in=150] node [midway, sloped, above=-2] {$w_1$} (x);
\draw[stateTransition] (x2) to[out=0,in=180] node [midway, sloped, above=-2] {$w_2$} (x);
\draw[stateTransition] (x3) to[out=0,in=210] node [midway, sloped, above=-2] {$w_3$} (x);
\draw[stateTransition] (xn) to[out=0,in=240] node [midway, sloped, above=-2] {$w_n$} (x);
\draw[stateTransition] (x0) to[out=0,in=120] node [midway, sloped, above=-2] {\color{green!40!black}$w_0$} (x);
\draw[stateTransition] (x1) to[out=0,in=150] node [midway, sloped, above=-2] {\color{green!40!black}$w_1$} (x);
\draw[stateTransition] (x2) to[out=0,in=180] node [midway, sloped, above=-2] {\color{green!40!black}$w_2$} (x);
\draw[stateTransition] (x3) to[out=0,in=210] node [midway, sloped, above=-2] {\color{green!40!black}$w_3$} (x);
\draw[stateTransition] (xn) to[out=0,in=240] node [midway, sloped, above=-2] {\color{green!40!black}$w_n$} (x);
\color{blue}
\draw[stateTransition] (x) -- (2,0) node [midway,above=-0.1cm] {};
\draw[dashed] (0,-0.43) -- (0,0.43);
\node (dots) at (-2, -1.15) {$\vdots$};
Expand Down
Binary file modified tikz/trigonomatric-functions/trigonomatric-functions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions tikz/trigonomatric-functions/trigonomatric-functions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

\begin{document}
\begin{preview}
\begin{tikzpicture}[very thick,font=\sansmath\sffamily,scale=2]
\newcommand\anglePoint{40}
\begin{tikzpicture}[very thick,font=\sansmath\sffamily,scale=2.5]
\newcommand\anglePoint{50}
\tkzDefPoint(0,0){O}
\tkzDefPoint(1,0){D}
\tkzDefPoint(0,1){E}
Expand All @@ -22,7 +22,7 @@
\tkzDefPoint(\anglePoint:1){P}

% Axes
\draw[gray] (O) circle (1);
\draw[gray, fill=gray!10] (O) circle (1);
\node[gray,below right] at (1,0) {1};
\node[blue,left] at (\anglePoint/2:1) {b};
\node[gray,above right] at (0,1) {1};
Expand All @@ -33,7 +33,7 @@

% \node[circle,fill=black,inner sep=0pt,minimum size=3pt,label=left:{$C_1$}] (C1) at (0,0) {};
\tkzLabelPoints[below right,font=\sansmath\sffamily](O)
\tkzLabelPoints[above right,font=\sansmath\sffamily](D)
\tkzLabelPoints[below left,font=\sansmath\sffamily](D)
\tkzLabelPoints[above left,font=\sansmath\sffamily](E)
\tkzLabelPoints[above,font=\sansmath\sffamily](P)
\tkzLabelPoints[below,font=\sansmath\sffamily](C)
Expand All @@ -46,8 +46,8 @@
\tkzInterLL(O,P)(D,up)
\tkzGetPoint{T}

\tkzLabelPoints[below right,font=\sansmath\sffamily](T)
\tkzLabelPoints[below right,font=\sansmath\sffamily](K)
\tkzLabelPoints[right,font=\sansmath\sffamily](T)
\tkzLabelPoints[above,font=\sansmath\sffamily](K)
\draw (S) -- (P);
\draw (C) -- (P);
\draw (E) -- (K);
Expand Down

0 comments on commit 795e5ac

Please sign in to comment.