JuliaLang / Microbenchmarks

Microbenchmarks comparing the Julia Programming language with other languages
https://julialang.org/benchmarks/
Other
88 stars 48 forks source link

new std(x) function in lines 67-71 #47

Open ArieBeresteanu opened 2 years ago

ArieBeresteanu commented 2 years ago

var(x)=E(x^2)=(E(x))^2. This form can save a few calculations compared to taking deviations from the mean. Saving the need to call mean(x) and relying only on Fortran functions.