2019-06-02 16:02:15 +00:00
|
|
|
using Statistics
|
|
|
|
using CSV
|
|
|
|
|
|
|
|
|
2019-06-02 17:09:55 +00:00
|
|
|
file_measure = joinpath(@__DIR__, "data", "walk.csv")
|
2019-06-02 16:02:15 +00:00
|
|
|
|
|
|
|
measure = CSV.read(file_measure, header=false) |> Matrix{Float64}
|
|
|
|
|
|
|
|
deltas = measure[2:end,1] - measure[1:end-1,1]
|
|
|
|
|
|
|
|
print("Fréquence moyenne :\t")
|
|
|
|
print(1/(Statistics.mean(deltas)))
|
|
|
|
println(" Hz")
|
|
|
|
print("Delta moyen :\t\t")
|
|
|
|
print(Statistics.mean(deltas))
|
|
|
|
println(" s")
|
|
|
|
print("Écart type :\t\t")
|
2019-06-02 17:09:55 +00:00
|
|
|
print(Statistics.std(deltas))
|
2019-06-02 16:02:15 +00:00
|
|
|
println(" s");
|