-
Notifications
You must be signed in to change notification settings - Fork 0
/
HRFdemo.html
49 lines (45 loc) · 1.5 KB
/
HRFdemo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>BOLD Signal Simulation</title>
<style>
.plots-container {
display: flex;
justify-content: space-around;
}
.plot {
width: 50%;
height: 400px;
background-color: #f0f0f0;
display: flex;
justify-content: space-around;
align-items: center;
margin-top: 20px;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<!-- <script src="updateBoldPlot.js"></script> -->
<!-- <script src="updateResidualsPlot.js"></script> -->
</head>
<body>
<div style="margin: 50px;">
<label for="intercept"> Beta0:</label>
<input type="range" id="intercept" min="-40" max="50" value="-40" step="0.5">
<span id="interceptValue">-40</span>
<label for="amplitude"> Beta1:</label>
<input type="range" id="amplitude" min="0" max="2" value="0.21" step="0.001">
<span id="amplitudeValue">0.21</span>
<p>MSE: <span id="mseValue">N/A</span></p>
<div class="plots-container">
<div class="plot" id="boldPlotContainer">
<canvas id="BoldPlot"></canvas>
</div>
<div class="plot" id="residualsPlotContainer">
<canvas id="residualsPlot"></canvas>
</div>
</div>
<p>This is a simple Demo of how changing the beta parameters alters the residual timesries and the Residual Mean Squares Error</p>
<script src="final_interactive_BOLDfit.js"></script>
</body>
</html>