-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrayleigh.html
54 lines (43 loc) · 3.39 KB
/
rayleigh.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<title>Rayleigh distribution</title>
<meta name="viewport" content="width=device-width">
<link type="text/css" rel="stylesheet" media="screen" href="./css/page.css">
<link type="text/css" rel="stylesheet" media="screen" href="./css/chart.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/14.6.3/nouislider.min.css"/>
<script src="https://d3js.org/d3.v6.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/14.6.3/nouislider.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/wnumb/1.2.0/wNumb.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jstat@latest/dist/jstat.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_HTML&delayStartupUntil=configured"></script>
<script src="./js/mathjax_config.js"></script>
</head>
<body>
<div class="container">
<h1>Rayleigh distribution</h1>
<div id="chart"></div>
<div class="controls">
<div class="slider-label">$\sigma$</div>
<div id="slider_0"></div>
</div>
<div class="formula">
$$
f(x) =
\begin{cases}
\frac{x}{\sigma^2}e^{-x^2/(2\sigma^2)}, & \text{if $x \geq 0$,} \\
0, & \text{otherwise.}
\end{cases}
\\[16pt]
\text{where $\sigma$ is the scale parameter.}
$$
</div>
</div>
</body>
<script src="./js/dist/rayleigh.js"></script>
<script src="./js/rand.js"></script>
<script src="./js/chart_config.js"></script>
<script src="./js/chart_function.js"></script>
<script src="./js/interact.js"></script>
</html>