Skip to content
Browse files

Included usage for #stdevp

  • Loading branch information...
1 parent f58038b commit 11def2097d72cc977ad2225b244f58cef9e31420 @lucianot committed Apr 13, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 README.md
View
7 README.md
@@ -18,13 +18,18 @@ Or install it yourself as:
## Usage
-Just call `standard_deviation` or `stdev` on a array with numbers.
+Just call `standard_deviation` or `stdev` on an array with numbers:
``` ruby
[1, 2, 3, 4, 5].stdev => 1.5811388300841898
[521.0, BigDecimal("1234.45"), 1_120].standard_deviation => 383.168958598336
```
+For population standard deviation, call `stdevp`:
+
+``` ruby
+[1, 2, 3, 4, 5].stdevp => 1.4142135623731
+```
## Benchmarks

0 comments on commit 11def20

Please sign in to comment.
Something went wrong with that request. Please try again.