Вы находитесь на странице: 1из 1

Part VI

Data Visualization
by Till Tantau

0.8

0.6
2
0.4 e−x
0.2 P10
i=1 xi , where xi ∼ U (−1, 1)
0
−5 −2.5 0 2.5 5

\tikz \datavisualization [scientific axes=clean]


[
visualize as smooth line=Gaussian,
Gaussian={pin in data={text={$e^{-x^2}$},when=x is 1}}
]
data [format=function] {
var x : interval [-7:7] samples 51;
func y = exp(-\value x*\value x);
}
[
visualize as scatter,
legend={south east outside},
scatter={
style={mark=*,mark size=1.4pt},
label in legend={text={
$\sum_{i=1}^{10} x_i$, where $x_i \sim U(-1,1) $}}}
]
data [format=function] {
var i : interval [0:1] samples 20;
func y = 0;
func x = (rand + rand + rand + rand + rand +
rand + rand + rand + rand + rand);
};

756

Вам также может понравиться