mirror of
https://github.com/Zenithsiz/ist-pe-proj.git
synced 2026-02-03 22:23:56 +00:00
Solved problem 4.
This commit is contained in:
parent
fba2f7284b
commit
bcb1a403f9
1
4/answer.txt
Normal file
1
4/answer.txt
Normal file
@ -0,0 +1 @@
|
||||
1.50632911392405
|
||||
@ -38,6 +38,9 @@ occurrences <- mapply(function(x, is_step) {
|
||||
}, nums_cumsum, steps)
|
||||
occurrences <- occurrences[!is.na(occurrences)]
|
||||
|
||||
occurrences_mean <- mean(occurrences)
|
||||
message("Occurrences mean: ", occurrences_mean)
|
||||
|
||||
# TODO: Calculate expected value (theoretical) and
|
||||
# compare it to the experimental value discovered here
|
||||
# TODO: Is the mean really `21`? That'd make sense, but
|
||||
# might be too simple?
|
||||
message("Absolute deviation: ", abs(occurrences_mean - 21))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user