Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Calibratio
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Unreal-Development
Tools
Calibratio
Commits
6c8402d4
Commit
6c8402d4
authored
Nov 13, 2019
by
Sebastian Pape
Browse files
Options
Downloads
Patches
Plain Diff
Fixed error in statistics function, added statistics button and added resources (image of device)
parent
9be72337
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
data/index.html
+13
-8
13 additions, 8 deletions
data/index.html
resources/IMG_20191112_113410.jpg
+0
-0
0 additions, 0 deletions
resources/IMG_20191112_113410.jpg
with
13 additions
and
8 deletions
data/index.html
+
13
−
8
View file @
6c8402d4
...
...
@@ -106,14 +106,18 @@
}
function
calcStatistics
(){
var
array
=
document
.
getElementById
(
"
results
"
).
value
.
split
(
"
,
"
);
if
(
array
.
length
==
0
)
return
;
var
array
=
document
.
getElementById
(
"
results
"
).
value
.
split
(
"
,
"
).
map
(
function
(
num
)
{
return
parseInt
(
num
);
}).
filter
(
function
(
num
)
{
return
!
isNaN
(
num
);});
if
(
array
.
length
<
2
){
document
.
getElementById
(
"
statistics
"
).
innerHTML
=
""
;
}
else
{
document
.
getElementById
(
"
statistics
"
).
innerHTML
=
""
+
"
Mean:
"
+
mean
(
array
)
+
"
<br />
"
+
"
Mean:
"
+
mean
(
array
)
.
toFixed
(
2
)
+
"
<br />
"
+
"
Median:
"
+
median
(
array
)
+
"
<br />
"
+
"
Variance:
"
+
variance
(
array
)
+
"
<br />
"
+
"
StandardDeviation:
"
+
standardDeviation
(
array
);
+
"
Variance:
"
+
variance
(
array
).
toFixed
(
2
)
+
"
<br />
"
+
"
StandardDeviation:
"
+
standardDeviation
(
array
).
toFixed
(
2
);
}
}
document
.
onload
=
function
(){
...
...
@@ -155,6 +159,7 @@
<div
class=
"button"
style=
"background-color: #dc3545;"
onclick=
"makeRequest('abort')"
>
Abort!
</div>
</div>
<div
class=
"box niceBorder"
><div
class=
"button"
onclick=
"getResults()"
>
Get Results!
</div></div>
<div
class=
"box niceBorder"
><div
class=
"button"
onclick=
"calcStatistics()"
>
Statistics!
</div></div>
</div>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
resources/IMG_20191112_113410.jpg
0 → 100644
+
0
−
0
View file @
6c8402d4
215 KiB
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment