generated from marius/TUM_Slides
More work on presentation
This commit is contained in:
parent
da61687db3
commit
74e8413532
15 changed files with 1240 additions and 5 deletions
34
graphics/background/sign-based-overlay.typ
Normal file
34
graphics/background/sign-based-overlay.typ
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#import "@preview/cetz:0.3.4": canvas
|
||||
#import "@preview/cetz-plot:0.1.1": plot, chart
|
||||
|
||||
#let ymax = 1/calc.sqrt(2*calc.pi)
|
||||
|
||||
#let line_style = (stroke: (paint: black, thickness: 3pt))
|
||||
#let dashed = (stroke: (dash: "dashed"))
|
||||
#canvas({
|
||||
|
||||
plot.plot(size: (11,6),
|
||||
legend: "north",
|
||||
legend-style: (orientation: ltr, item: (spacing: 0.5)),
|
||||
x-tick-step: none,
|
||||
x-ticks: ((0, [0]), (100, [0])),
|
||||
y-label: $cal(Q)(1, x)$,
|
||||
x-label: $x$,
|
||||
y-tick-step: none,
|
||||
y-ticks: ((0, [0]), (ymax, [1])),
|
||||
axis-style: "left",
|
||||
x-min: -3,
|
||||
x-max: 3,
|
||||
y-min: 0,
|
||||
y-max: ymax,{
|
||||
plot.add(
|
||||
plot.sample-fn(
|
||||
(x) => 1/calc.sqrt(2*calc.pi)*calc.exp(-(calc.pow(x,2)/2)),
|
||||
(-3, 3),
|
||||
300),
|
||||
style: (stroke: (paint: red, thickness: 3pt)),
|
||||
// label: [PDF einer Normalverteilung]
|
||||
)
|
||||
plot.add(((-3,0), (0,0), (0,ymax), (3,ymax)), style: line_style, /*label: [$cal(Q)(1,x)$]*/)
|
||||
})
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue