rust-lang-nursery / rust-cookbook

https://rust-lang-nursery.github.io/rust-cookbook
Creative Commons Zero v1.0 Universal
2.25k stars 284 forks source link

Standard deviation function actually calculates population standard deviation #609

Closed etemesi-ke closed 4 years ago

etemesi-ke commented 4 years ago

The example at standard deviation actually calculates the population standard deviation eg for a population of [1,2,3] the the function returns 0.816.. and not 2 this can be confusing as the title indicates it actually gives the standard deviation